/* ==========================================================================
   THRENYX CLIENT — shell, surfaces, controls.
   Premium game client, not a website: no white panels, no rounded SaaS cards.
   ========================================================================== */

html, body { height: 100%; overflow: hidden; }
body {
  background: #040406;
  color: var(--bone);
  font-size: 16px;
  touch-action: manipulation;
  overscroll-behavior: none;
}
#app {
  position: relative;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  overflow: clip; /* hidden still lets focus/scripts scroll it sideways */
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(233, 196, 111, 0.09), transparent 60%),
    radial-gradient(90% 50% at 50% 110%, rgba(139, 92, 246, 0.07), transparent 70%),
    linear-gradient(180deg, #0b0a10 0%, #07070b 55%, #050507 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 120px rgba(0, 0, 0, 0.9);
}
@media (min-width: 481px) {
  body { background: radial-gradient(ellipse at 50% 30%, #121019 0%, #040406 70%); }
}
/* ambient resonance rings behind every screen */
#app::before {
  content: ''; position: absolute; inset: -40%; pointer-events: none; z-index: 0;
  background: repeating-radial-gradient(circle at 50% 18%, rgba(233, 196, 111, 0.035) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 55%);
}

.screen {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) 16px calc(env(safe-area-inset-bottom, 0px) + 84px);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: screenIn 0.35s var(--ease-out);
}
.screen--full { padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 calc(env(safe-area-inset-bottom, 0px) + 10px); overflow: hidden; }
.screen > * { flex-shrink: 0; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- top resource bar ---------------------------------------------------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  height: calc(env(safe-area-inset-top, 0px) + 48px);
  padding: env(safe-area-inset-top, 0px) 12px 0;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.95), rgba(5, 5, 8, 0));
}
.topbar .brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.32em; color: var(--gold); font-size: 17px; margin-right: auto; padding-left: 4px; }
.res { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.res i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.res--tickets i { background: linear-gradient(135deg, #f6d98a, #a3791e); border-radius: 3px; transform: rotate(8deg); }
.res--embers i { background: radial-gradient(circle at 40% 35%, #ffd2a0, #ff5a2a 60%, #7a1d08); }
a.res { color: inherit; text-decoration: none; }
.res--chimes i { background: radial-gradient(circle at 40% 35%, #fff, #b9c6dc 50%, #53607a); }

/* --- bottom nav ------------------------------------------------------------ */
.nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(env(safe-area-inset-bottom, 0px) + 70px);
  padding: 0 6px env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(to top, rgba(5, 5, 8, 0.98) 60%, rgba(5, 5, 8, 0));
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  position: relative;
}
.nav a .ico { width: 24px; height: 24px; }
.nav a.on { color: var(--gold); }
.nav a.on::before { content: ''; position: absolute; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 196, 111, 0.22), transparent 70%); }
.nav a .dot { position: absolute; top: 9px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--crown); box-shadow: 0 0 8px var(--crown); }

/* --- type ---------------------------------------------------------------- */
.h-display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: 0.06em; text-transform: uppercase; margin: 6px 0 2px; }
.kicker { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lore { font-family: var(--font-display); font-style: italic; font-size: 17px; color: #cfc6b6; line-height: 1.35; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* --- buttons ------------------------------------------------------------- */
.btn {
  --c: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 4px;
  font-family: var(--font-ui); font-weight: 800; font-size: 17px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #1b1307;
  background: linear-gradient(180deg, #fbe7ae 0%, #e9c46f 45%, #b88a2a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 -2px 0 rgba(0, 0, 0, 0.25) inset, 0 8px 24px rgba(233, 196, 111, 0.22);
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), filter 0.2s, box-shadow 0.2s;
  -webkit-user-select: none; user-select: none;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
}
.btn:active { transform: scale(0.97); filter: brightness(1.1); }
.btn[disabled] { filter: grayscale(1) brightness(0.45); pointer-events: none; }
.btn--ghost { color: var(--bone); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.btn--dark { color: var(--gold); background: linear-gradient(180deg, #1c1a22, #0e0d12); box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.45), 0 6px 18px rgba(0, 0, 0, 0.5); }
.btn--big { min-height: 64px; font-size: 20px; width: 100%; }
.btn--sm { min-height: 40px; font-size: 14px; padding: 0 16px; }
.btn .sub { font-size: 12px; letter-spacing: 0.12em; opacity: 0.75; font-weight: 600; }
.btn--pulse::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  background-size: 250% 100%; animation: btnsheen 2.6s ease-in-out infinite; mix-blend-mode: overlay;
}
@keyframes btnsheen { 0%, 40% { background-position: 150% 0; } 100% { background-position: -150% 0; } }

/* --- panels ---------------------------------------------------------------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(24, 22, 30, 0.85), rgba(12, 11, 16, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 14px 16px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.panel--gold { box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.35), 0 12px 30px rgba(0, 0, 0, 0.45); }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.tag { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(255, 255, 255, 0.07); color: var(--muted); border-radius: 2px; }
.tag--new { background: var(--crown); color: #1b0a02; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(233, 196, 111, 0.35), transparent); margin: 6px 0; }
.progress { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #b88a2a, #f6d98a); border-radius: 3px; }

/* --- toast + modal ----------------------------------------------------- */
.toast {
  position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 60;
  transform: translateX(-50%);
  padding: 10px 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px;
  background: rgba(10, 9, 14, 0.95); box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--gold); animation: toastIn 2.6s var(--ease-out) forwards; white-space: nowrap; pointer-events: none;
}
@keyframes toastIn { 0% { opacity: 0; transform: translate(-50%, -10px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.modal {
  position: fixed; inset: 0; margin: 0 auto; max-width: 480px; z-index: 50; overflow-y: auto; /* pinned to the screen (in the game's column), so its ✕ is always in view */
  background: rgba(3, 3, 5, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 20px 16px; animation: fadeIn 0.25s ease-out;
  overflow-y: auto;
}
.modal__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); }
.modal__close .ico { width: 26px; height: 26px; }
@keyframes fadeIn { from { opacity: 0; } }

/* --- home ---------------------------------------------------------------- */
.hero {
  position: relative; margin: 0 -16px; padding: 30px 20px 22px; text-align: center;
  background: radial-gradient(80% 90% at 50% 0%, rgba(233, 196, 111, 0.12), transparent 70%);
}
.hero .logo { font-family: var(--font-display); font-weight: 700; font-size: 46px; letter-spacing: 0.42em; padding-left: 0.42em; color: transparent; background: linear-gradient(180deg, #fff6d8, #e9c46f 55%, #9b7219); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 18px rgba(233, 196, 111, 0.25)); }
.hero .season { font-size: 12px; letter-spacing: 0.5em; color: var(--muted); margin-top: 6px; padding-left: 0.5em; }
.star { position: absolute; top: 10px; right: 18%; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 240, 200, 0.8); animation: fall 6s ease-in infinite; }
@keyframes fall { 0%, 70% { transform: translate(0, 0); opacity: 0; } 72% { opacity: 1; } 100% { transform: translate(-120px, 160px); opacity: 0; } }
.star::after { content: ''; position: absolute; right: 0; top: 0; width: 90px; height: 1px; transform-origin: right; transform: rotate(-53deg); background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.7)); }
.now { display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 92px; text-align: left; border: 0; color: var(--bone); cursor: pointer; }
.tile b { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }
.tile span { font-size: 13px; color: var(--muted); }
.tile .ico { width: 22px; height: 22px; color: var(--gold); }

/* --- lists -------------------------------------------------------------- */
.objective { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.objective .chk { width: 18px; height: 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.5); display: grid; place-items: center; font-size: 13px; color: var(--gold); flex: none; }
.objective.done { color: var(--muted); }
.objective.done .chk { background: rgba(233, 196, 111, 0.2); }

/* Painted screen backgrounds (client/art/ui/*.png via manifest.json) */
#app.has-bg { isolation: isolate; }
#app.has-bg::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(4, 4, 7, 0.55), rgba(4, 4, 7, 0.78)), var(--screen-bg) center / cover no-repeat; }
.rk { background-size: cover; background-position: center; }
.result, .scene { background-size: cover; background-position: center top; }
.pack--art { background-color: transparent !important; box-shadow: none !important; }

/* The Long Road */
.road-tile { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px; text-align: left; border: 0; color: var(--bone); cursor: pointer; }
.road-tile b { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.road-tile span { font-size: 13px; color: var(--muted); }
.road-lives { display: flex; gap: 3px; font-size: 20px; }
.road-lives i { font-style: normal; color: rgba(255, 255, 255, 0.15); }
.road-lives i.on { color: #ff5a6a; text-shadow: 0 0 10px rgba(255, 60, 80, 0.6); }
.road-relics { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.road-relic { font-size: 12px; color: var(--muted); padding: 5px 9px; border-radius: 6px; background: rgba(233, 196, 111, 0.06); box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.22); }
.road-relic b { color: var(--gold); margin-right: 4px; }
.road-map { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.road-floor { display: grid; grid-template-columns: 22px 1fr 1fr; gap: 8px; align-items: stretch; position: relative; }
.road-floor:has(.k-boss) { grid-template-columns: 22px 1fr; }
.road-floor__n { align-self: center; font-family: var(--font-display); font-size: 13px; color: var(--muted); text-align: center; }
.road-node { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; border: 0; border-radius: 6px; text-align: left; color: var(--bone); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); cursor: pointer; }
.road-node .ico { width: 16px; height: 16px; color: var(--gold); }
.road-node b { font-size: 13px; letter-spacing: 0.04em; }
.road-node small { font-size: 11px; color: var(--muted); }
.road-node.k-elite .ico { color: #c58bff; }
.road-node.k-rest .ico { color: #ff9b5a; }
.road-node.k-shrine .ico { color: #7fd0ff; }
.road-node.k-boss { background: linear-gradient(180deg, rgba(120, 20, 30, 0.35), rgba(20, 10, 14, 0.6)); box-shadow: inset 0 0 0 1px rgba(255, 90, 90, 0.45); }
.road-node.k-boss .ico { color: #ff6a6a; }
.road-floor.ahead .road-node { opacity: 0.45; }
.road-floor.past .road-node { opacity: 0.3; }
.road-floor.past .road-node.taken { opacity: 0.8; box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.5); }
.road-floor.now .road-node { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 18px -4px rgba(233, 196, 111, 0.6); animation: roadPulse 2.4s ease-in-out infinite; }
.road-floor.now .road-floor__n { color: var(--gold); }
.road-node[disabled] { cursor: default; }
@keyframes roadPulse { 50% { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 26px -2px rgba(233, 196, 111, 0.8); } }
.road-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; justify-items: center; margin-top: 6px; }
.road-card, .road-swap__cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.road-card em, .road-swap__cell em { font-style: normal; font-size: 10px; font-weight: 800; color: #7dffa0; letter-spacing: 0.04em; }
.road-rewards { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.road-reward { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 10px; border: 0; text-align: left; color: var(--bone); cursor: pointer; }
.road-reward b { display: block; font-size: 15px; margin: 2px 0; }
.road-reward span { font-size: 12.5px; color: var(--muted); }
.road-reward__art { display: grid; place-items: center; min-height: 56px; }
.road-reward__art .ico { width: 34px; height: 34px; color: var(--gold); }
.road-swap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.road-swap__cell { border: 0; background: none; padding: 0; cursor: pointer; color: var(--bone); }

/* weekly season track */
.season { position: relative; margin: 14px 8px 0 4px; }
.season__bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.season__bar i { display: block; height: 100%; background: linear-gradient(90deg, #a8812f, var(--gold)); box-shadow: 0 0 10px rgba(233, 196, 111, 0.6); }
.season__step { position: absolute; top: -5px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; text-align: center; }
.season__step:last-child { transform: translateX(-80%); }
.season__step b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; background: #15131b; box-shadow: inset 0 0 0 1px rgba(233, 196, 111, 0.4); color: var(--muted); }
.season__step.on b { background: var(--gold); color: #1a1408; box-shadow: 0 0 10px rgba(233, 196, 111, 0.7); }
.season__step span { font-size: 9.5px; line-height: 1.15; color: var(--muted); }
.season__step.on span { color: var(--gold); }
/* daily puzzle */
.pz-order { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 16px; background: rgba(8, 7, 12, 0.92); box-shadow: 0 0 0 1.5px currentColor, 0 0 16px -2px currentColor; font-weight: 800; font-size: 15px; }
.pz-order .ico { width: 16px; height: 16px; }
.pz-order b { color: #fff; }
.pz-order small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.pz-terrain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.pz-stars { font-size: 30px; color: var(--gold); letter-spacing: 4px; text-shadow: 0 0 14px rgba(233, 196, 111, 0.7); }
.pz-stars span { color: rgba(255, 255, 255, 0.15); text-shadow: none; }
/* hero mastery */
.mastery { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.mastery__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mastery__step { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.mastery__step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #15131b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); font-size: 12px; }
.mastery__step.next b { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.mastery__step.on b { background: var(--gold); color: #1a1408; box-shadow: 0 0 10px rgba(233, 196, 111, 0.6); }
.mastery__step.on span { color: var(--gold); }
.mastery__next { font-size: 13px; text-align: center; }
.mastery__bar { height: 5px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.mastery__bar i { display: block; height: 100%; background: var(--gold); }
/* splash: Firstfall */
.splash { position: absolute; inset: 0; z-index: 200; background: radial-gradient(120% 70% at 50% 60%, #0d0b12 0%, #040406 70%); cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: opacity 0.6s ease, transform 0.6s ease; }
.splash.is-leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash__art { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.8s ease 0.1s; }
.splash.is-struck .splash__art { opacity: 0.8; }
.splash__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__title { position: absolute; left: 0; right: 0; top: 34%; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.splash__title h1 { margin: 0; display: flex; font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 13vw, 64px); letter-spacing: 0.2em; padding-left: 0.2em; color: var(--gold-hi); text-shadow: 0 0 22px rgba(233, 196, 111, 0.55), 0 0 60px rgba(233, 196, 111, 0.25); }
.splash__title h1 span { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(1.15); }
.splash.is-struck .splash__title h1 span { animation: splashLetter 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
@keyframes splashLetter { to { opacity: 1; filter: blur(0); transform: none; } }
.splash__title p { margin: 0; font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); opacity: 0; }
.splash.is-struck .splash__title p { animation: splashFade 1s ease 1.05s forwards; }
.splash__tap { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 9%); text-align: center; font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--bone); opacity: 0; }
.splash.is-struck .splash__tap { animation: splashFade 0.8s ease 1.5s forwards, splashPulse 2.2s ease-in-out 2.3s infinite; }
@keyframes splashFade { to { opacity: 0.85; } }
@keyframes splashPulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.35; } }
/* Long-press is a game gesture (open a pack, inspect a card, preview a move):
   stop iOS offering "Save image" and selecting text, except in text fields */
#app { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#app input, #app textarea { -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }
#app img { -webkit-user-drag: none; }
.opening .pack { touch-action: none; }
/* lighter effects (iPhone memory): no glow filters, no rarity/holo layers on board cards */
#app.lite .bond__glow, #app.lite .card__rfx, #app.lite .card__holo, #app.lite .card__env, #app.lite .card__pulse { display: none !important; }
#app.lite .rk.shake { animation: none !important; }
/* lighter effects, board and hand cards: no blended glare, grade or motes */
#app.lite .rk .card__glare, #app.lite .rk .card__grade, #app.lite .rk .card__motes, #app.lite .rk .card__shine { display: none !important; }
/* lighter effects: decorative loops stop and glow filters go (each loop repaints
   or holds a layer for as long as its screen is up). Guidance (coach, waiting
   dots, drop targets) still moves. */
#app.lite .star, #app.lite .card__sweep, #app.lite .pack__sheen, #app.lite .card__foil { display: none !important; }
#app.lite .lane__slot, #app.lite .rk.danger::after, #app.lite .r-mythic .card__gem, #app.lite .r-immortal .card__gem, #app.lite .r-mythic .card__frame,
#app.lite .r-immortal .card__layer--art, #app.lite .card__trim, #app.lite .bond__line,
#app.lite .road-floor.now .road-node, #app.lite .ls-badge, #app.lite .lane__charged, #app.lite .rk-ohand.thinking .card { animation: none !important; }
#app.lite .hero .logo, #app.lite .card__gem { filter: none !important; }
/* lighter effects: no full-screen blurs (costly on iPhone), and once a match's
   result covers the board, the board stops drawing (the effects canvas stays
   for the Spoils sparks) */
#app.lite .modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(3, 3, 5, 0.94); }
#app.lite .result { animation: fadeIn 0.4s !important; }
#app.lite .rk.covered > :not(.result):not(canvas) { visibility: hidden; }
/* links inside game text (legal links, consent) */
.modal .lore a, .modal .muted a, .screen .muted a { color: var(--gold); }
/* text-style buttons (sign-in window) */
.linkish { background: none; border: 0; padding: 4px 0; color: var(--gold); font: inherit; cursor: pointer; text-align: left; }
