/* UI polish: app shell, menus, modals, panels (UI_AUDIT_2026-10-11 cross-cutting + non-board screens). Loaded after game-feel.css. */

/* ============================================================
   X1 / X3 / X9 — type + ink tokens
   Nunito Sans is the humanist body face (system-ui fallback), Alegreya SC is
   the quieter heading serif. Rye stays for the wordmark, app-bar titles,
   result headlines and big numerals.
   ============================================================ */
:root {
  --font-body: "Nunito Sans", system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-heading: "Alegreya SC", Georgia, "Times New Roman", serif;
  --ink-soft: #4f5a46;
  --ui-ink-soft: #4f5a46;
  --ui-gold-rule: #c7994a;
  --ui-bronze: #8a6a2e;
  --ui-ease-pop: cubic-bezier(.2,.8,.3,1);
}
html, body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }

/* Shared inline-SVG icon (X8). */
.ui-icon { display: block; width: 1em; height: 1em; flex: 0 0 auto; }
.ui-chevron { display: inline-grid; place-items: center; margin-left: auto; font-size: 20px; color: currentColor; opacity: .8; }

/* ============================================================
   X2 — one button system: .ui-primary / .ui-secondary / .ui-quiet
   Legacy .btn-banner / .btn-tile are restyled onto the same tokens.
   ============================================================ */
.ui-primary, .ui-secondary, .ui-quiet, .btn-banner, .btn-tile {
  text-transform: none;
  font-family: var(--font-body);
}
.ui-primary, .btn-banner {
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #0a2b17;
  border-radius: 12px;
  color: #fffdf3;
  background: linear-gradient(#2f7a45, #174c2a);
  box-shadow: 0 3px 0 #092415, inset 0 1px 0 #6fae6f80;
  font: 800 16px/1.1 var(--font-body);
  letter-spacing: .4px;
  text-shadow: 0 1px 0 #0a2b1780;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, filter 120ms ease-out;
}
.ui-primary:hover, .btn-banner:hover { filter: brightness(1.07); }
.ui-primary:active, .btn-banner:active { transform: translateY(2px); box-shadow: 0 1px 0 #092415, inset 0 1px 0 #6fae6f80; }
.btn-banner-sm { min-height: 48px; font-size: 16px; }
.btn-banner.has-grain::before { display: none; }

.ui-secondary, .btn-tile {
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid #8a7754;
  border-radius: 12px;
  color: #20271d;
  background: #fff8e7;
  box-shadow: 0 2px 0 #c5b795;
  font: 800 16px/1.1 var(--font-body);
  letter-spacing: .3px;
  text-shadow: none;
}
.ui-secondary:hover, .btn-tile:hover { background: #fffcf1; }
.ui-secondary:active, .btn-tile:active { transform: translateY(1px); box-shadow: 0 1px 0 #c5b795; }
.btn-tile.is-active { color: #fff1c8; background: linear-gradient(#205f35, #0f3b22); border-color: #0a2b17; }

.ui-quiet {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #2e6b33;
  background: transparent;
  box-shadow: none;
  font: 800 15px/1.1 var(--font-body);
  letter-spacing: .2px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.ui-quiet:hover { background: #2e6b3312; }

/* Destructive: one rust-outline style in pause + leave confirm (§7 P3). */
.ui-secondary.danger, .danger-outline, .redesign-modal .pause-leave {
  border: 2px solid #9f472c !important;
  color: #9f472c !important;
  background: #fff4ee !important;
  box-shadow: 0 2px 0 #d9b5a3 !important;
}
.redesign-modal .pause-leave { margin-top: 6px; }

.ui-primary:focus-visible, .ui-secondary:focus-visible, .ui-quiet:focus-visible,
.btn-banner:focus-visible, .btn-tile:focus-visible { outline: 3px solid #d8a53d; outline-offset: 3px; }

/* ============================================================
   X3 — mid serif for modal titles + section headings
   ============================================================ */
.redesign-modal h2,
.modal-shell.redesign-modal h2,
.htp-carousel h3,
.stats-recent-title,
.settings-group h2,
#tutorial-exit-confirm h2,
.home-screen-help-card h2 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: .2px !important;
  text-transform: none;
}
.redesign-modal h2 { font-size: 28px !important; line-height: 1.05 !important; color: #20271d; }
.difficulty-shell h2 { font-size: 28px !important; }
/* Replace the heavy 3px double ink rule with a gold diamond-and-rule ornament. */
.modal-shell.redesign-modal h2 { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 6px !important; }
.modal-shell.redesign-modal:not(.difficulty-shell) h2::after {
  content: ""; display: block; width: 120px; height: 7px; margin: 9px auto 2px;
  background:
    linear-gradient(#c7994a, #c7994a) left center/50px 1px no-repeat,
    linear-gradient(#c7994a, #c7994a) right center/50px 1px no-repeat,
    linear-gradient(45deg, transparent 30%, #c7994a 30% 70%, transparent 70%) center/7px 7px no-repeat;
}
.leave-confirm-modal h2 { font-size: 28px !important; }

/* ============================================================
   X4 — modal scrim + enter animation
   ============================================================ */
.modal-backdrop.redesign-backdrop,
#tutorial-exit-confirm,
.home-screen-help {
  background: rgba(9, 22, 14, .72) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
@keyframes uiScrimIn { from { opacity: 0; } }
@keyframes uiShellIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-backdrop.redesign-backdrop,
#tutorial-exit-confirm { animation: uiScrimIn 160ms ease-out both; }
.modal-backdrop.redesign-backdrop > .redesign-modal,
#tutorial-exit-confirm .tut-exit-card { animation: uiShellIn 200ms var(--ui-ease-pop) both; }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.redesign-backdrop, #tutorial-exit-confirm,
  .modal-backdrop.redesign-backdrop > .redesign-modal, #tutorial-exit-confirm .tut-exit-card { animation: none !important; }
}
body.reduced-motion .modal-backdrop.redesign-backdrop,
body.reduced-motion #tutorial-exit-confirm,
body.reduced-motion .modal-backdrop.redesign-backdrop > .redesign-modal,
body.reduced-motion #tutorial-exit-confirm .tut-exit-card { animation: none !important; }

/* Parchment modal frame shared by pause, leave, about, difficulty, online. */
.redesign-modal { color: #20271d; font-family: var(--font-body); }
.redesign-modal .modal-body, .redesign-modal .modal-body p { color: #3d4636; font: 600 15px/1.45 var(--font-body); }
.modal-status { color: #4f5a46 !important; font: 700 13px var(--font-body) !important; letter-spacing: .2px; }
.confirm-copy { color: #3d4636 !important; font: 600 15px/1.4 var(--font-body) !important; }
.confirm-note { color: #4f5a46 !important; font: 600 12px/1.35 var(--font-body) !important; }
.redesign-modal .modal-btn-stack { display: grid; gap: 10px; }
.redesign-modal .modal-btn-stack > button, .redesign-modal .modal-btn-row > button { width: 100%; }
.redesign-modal .modal-btn-row { display: grid; grid-auto-flow: row; gap: 10px; margin-top: 16px; }
.redesign-modal .online-option { display: block; min-height: 64px; padding: 10px 16px; text-align: left; }
.redesign-modal .online-option small { color: #e4efd0; }

/* ============================================================
   X7 — unified green app bar (How to play + Journal join Record/Settings)
   ============================================================ */
#screen-panel-how-to-play,
#screen-panel-journal { background: radial-gradient(circle at 50% -10%, #315c38 0, #143b26 48%, #092218 100%); }
#screen-panel-how-to-play .panel-header,
#screen-panel-journal .panel-header {
  position: relative;
  height: auto;
  min-height: calc(64px + env(safe-area-inset-top));
  display: flex; align-items: center;
  padding: env(safe-area-inset-top) 10px 0;
  border: 0;
  background: linear-gradient(145deg, #174329, #0a2a19);
  box-shadow: inset 0 -1px 0 #d0a34f55;
  color: #fff3ce;
}
#screen-panel-how-to-play .panel-title,
#screen-panel-journal .panel-title {
  top: env(safe-area-inset-top); bottom: 0;
  display: grid; place-items: center;
  color: #fff1c5;
  font: 400 clamp(25px, 7vw, 30px)/1 var(--font-display);
  letter-spacing: .5px;
  text-shadow: 0 2px 0 #092015, 0 0 7px #d1a65455;
  text-transform: none;
}
.screen.panel .panel-back {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 44px !important; height: 44px !important; min-height: 44px !important;
  padding: 0;
  border: 2px solid #c6a057 !important;
  border-radius: 10px !important;
  color: #fff0bf !important;
  background: linear-gradient(#255e39, #123d25) !important;
  box-shadow: inset 0 0 0 2px #0c2d1b, 0 3px 0 #472f18 !important;
  font-size: 24px !important;
}
.screen.panel .panel-back .ui-icon { width: 24px; height: 24px; stroke-width: 2.5; }

/* ============================================================
   §8 How to play — parchment leaf, real pictograms, mini board
   ============================================================ */
#screen-panel-how-to-play.is-active { height: 100dvh; max-height: 100dvh; overflow: hidden; }
#screen-panel-how-to-play .panel-body.htp-carousel {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  margin: 6px 6px 0;
  padding: 18px 16px 18px;
  overflow-y: auto;
  border: 2px solid #a77a37; border-bottom: 0;
  border-radius: 14px 14px 0 0;
  color: #20271d;
  background: radial-gradient(circle at 45% 8%, #fffdf0 0, #f6ebce 55%, #e8d3a4 130%);
  box-shadow: inset 0 0 0 3px #fff9e0, inset 0 0 32px #9f793d3b;
  display: flex; flex-direction: column;
}
#screen-panel-how-to-play .htp-nav {
  margin: 0 6px calc(6px + env(safe-area-inset-bottom));
  padding: 10px 14px 12px;
  border: 2px solid #a77a37; border-top: 1px solid #c9b88f;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#f1e3bf, #e6d3a3);
  box-shadow: inset 0 0 0 3px #fff9e04d;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
}
.htp-carousel .htp-page.is-active {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1 0 auto; width: 100%;
}
.htp-carousel h3 { margin: 0 0 8px; color: #174c2a; font-size: 26px !important; line-height: 1.05; }
.htp-carousel p { color: #2c3428; font: 600 16px/1.45 var(--font-body); }
.htp-carousel .htp-lede { color: #20271d; font-size: 18px; font-weight: 700; }
.htp-kicker, .htp-carousel .htp-kicker {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px;
  color: var(--ui-bronze);
  font: 800 12px/1 var(--font-body);
  letter-spacing: 2px; text-transform: uppercase;
}
.htp-kicker::after { content: ""; flex: 0 0 28px; height: 1px; background: var(--ui-gold-rule); }
.htp-hero-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0 0 14px;
  overflow: hidden;
  border: 2px solid #8c692e;
  border-radius: 12px;
  background: #2b3b22 url('assets/how-to-play/jungle-duel-rules-hero.webp') center/cover no-repeat;
  box-shadow: 0 3px 0 #b99c6b, 0 0 0 4px #f7e8bf inset;
}
.htp-hero-frame .htp-hero { display: block; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
.htp-rule-callout {
  padding: 12px 14px;
  border: 2px solid #c7994a;
  border-radius: 12px;
  color: #2c3428;
  background: linear-gradient(135deg, #fff6d8, #f1dca6);
  box-shadow: 0 3px 0 #b99c6b, inset 0 0 0 3px #fff5da;
  font: 600 15px/1.45 var(--font-body);
}
.htp-rule-callout strong { color: #174c2a; font: 700 17px/1.2 var(--font-heading); letter-spacing: .2px; }

/* Page 2: move pictograms (same SVGs as the move picker), in green medallions. */
.htp-move-grid { gap: 10px; margin: 12px 0 0; }
.htp-move {
  grid-template-columns: 60px 1fr; gap: 12px; min-height: 76px; padding: 10px 12px;
  border: 2px solid #aa8651; border-radius: 14px;
  background: linear-gradient(145deg, #fff8e4, #ead5a8);
  box-shadow: 0 3px 0 #b99c6b, inset 0 0 0 3px #fff5da;
  color: #20271d;
}
.htp-move strong { display: block; color: #20271d; font: 700 18px/1.15 var(--font-heading); letter-spacing: .2px; }
.htp-move span { display: block; margin-top: 2px; color: #4f5a46; font: 600 14px/1.35 var(--font-body); }
.htp-move-art {
  width: 56px; height: 56px;
  border: 2px solid #caa55c; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5c9b53, #183b24 70%);
  box-shadow: 0 2px 0 #102b19, inset 0 0 0 2px #263920;
}
.htp-move-art svg { width: 40px; height: 40px; display: block; }
.htp-move-art .card-glyph { fill: #f7ecc8; }
.htp-move-art .divider-glyph { stroke: #f2d27d; stroke-width: 1.4; stroke-dasharray: 3 2; }
.htp-move-art .arrow-glyph { fill: none; stroke: #f2d27d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.htp-move-art .facedown-hatch { stroke: #2e5a35; stroke-width: 1.4; }

/* Page 3: mini board built from the real card + clearing art. */
.htp-mini-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 56px 64px 56px;
  gap: 6px 10px;
  width: 100%; max-width: 330px;
  margin: 10px auto 8px;
  padding: 22px 12px 22px;
  border: 2px solid #5b4225;
  border-radius: 14px;
  background: linear-gradient(#5a1f1422, transparent 34%, transparent 66%, #1f5a2e26), #24361f url('assets/board-bg.webp') center/cover;
  box-shadow: inset 0 0 0 2px #c7994a66, 0 3px 0 #b99c6b;
}
.htp-mini-side {
  position: absolute; left: 12px;
  color: #f2d27d; font: 800 10px/1 var(--font-body); letter-spacing: 1.8px; text-transform: uppercase;
  text-shadow: 0 1px 2px #000;
}
.htp-mini-side.rival { top: 6px; color: #ffc9ad; }
.htp-mini-side.you { bottom: 6px; }
.htp-mini-cell { border: 1px dashed #d3ce9f44; border-radius: 6px; background: #0b231a55; }
.htp-mini-cell.r1 { grid-row: 1; } .htp-mini-cell.r3 { grid-row: 3; }
.htp-mini-cell.c1, .htp-mini-clearing.c1 { grid-column: 1; }
.htp-mini-cell.c2, .htp-mini-clearing.c2 { grid-column: 2; }
.htp-mini-cell.c3, .htp-mini-clearing.c3 { grid-column: 3; }
.htp-mini-clearing {
  grid-row: 2; position: relative; overflow: hidden;
  border: 2px solid #c7994a; border-radius: 8px;
  background: #2f4a28;
  box-shadow: 0 2px 4px #0008;
}
.htp-mini-clearing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.htp-mini-clearing b {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  color: #fff6d6; font: 400 26px/1 var(--font-display); text-shadow: 0 2px 0 #1b1208, 0 0 8px #000a;
}
.htp-mini-clearing small {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2px 0 3px;
  color: #f7dfa3; background: #0d2a1ccc;
  font: 800 9px/1 var(--font-body); letter-spacing: .8px; text-align: center; text-transform: uppercase;
}
.htp-mini-clearing.bridge { border-color: #f2d27d; box-shadow: 0 0 0 2px #f2d27d55, 0 2px 4px #0008; }
.htp-mini-card {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border: 2px solid #3a2a17; border-radius: 6px;
  background: #405636;
  box-shadow: 0 2px 3px #0009;
}
.htp-mini-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.htp-mini-card b {
  position: absolute; left: 3px; top: 3px;
  display: grid; place-items: center; width: 20px; height: 20px;
  border: 1.5px solid #3a2a17; border-radius: 50%;
  color: #20271d; background: #f6ecd3;
  font: 400 13px/1 var(--font-display);
}
.htp-mini-card em {
  position: absolute; right: 3px; bottom: 3px;
  padding: 2px 5px; border-radius: 999px;
  color: #20271d; background: #f2d27d;
  font: 800 9px/1 var(--font-body); font-style: normal; letter-spacing: .5px; text-transform: uppercase;
}
.htp-mini-card.placed { border-color: #f2d27d; box-shadow: 0 0 0 2px #f2d27d88, 0 0 12px #f2d27d88; }
.htp-mini-card.theirs { border-color: #b5654a; }
.htp-mini-card.neighbor, .htp-mini-card.theirs { opacity: .78; }
.htp-mini-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.htp-mini-arrows path { fill: none; stroke: #f2d27d; stroke-width: 3; stroke-dasharray: 5 5; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px #000); }
@media (prefers-reduced-motion: no-preference) {
  body:not(.reduced-motion) .htp-mini-arrows path { animation: htpArrowFlow 1.2s linear infinite; }
}
@keyframes htpArrowFlow { to { stroke-dashoffset: -20; } }
.htp-mini-legend { display: grid; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; color: #2c3428; font: 700 14px/1.35 var(--font-body); }
.htp-mini-legend li { display: flex; align-items: center; gap: 8px; }
.htp-mini-legend i { flex: 0 0 22px; height: 0; border-top: 3px dashed #c7994a; }

/* Page 4: animals — art left, name + value, power text as the rule. */
.htp-carousel .htp-animals.htp-animal-guide { gap: 10px; margin-top: 6px; }
.htp-animal-guide .htp-animal.htp-animal-row {
  display: grid; grid-template-columns: 96px 1fr; align-items: stretch;
  min-height: 84px; padding: 0; overflow: hidden;
  border: 2px solid #aa8651; border-radius: 14px;
  background: linear-gradient(145deg, #fff8e4, #ead5a8);
  box-shadow: 0 3px 0 #b99c6b;
}
.htp-animal-row .htp-animal-art { width: 96px; height: 100%; min-height: 84px; object-fit: cover; object-position: center 30%; background: #405636; border-right: 2px solid #aa8651; }
.htp-animal-row .htp-animal-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 12px; min-width: 0; }
.htp-animal-row .htp-a-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.htp-animal-row .htp-a-name { color: #20271d; font: 400 20px/1 var(--font-display); letter-spacing: .4px; }
.htp-animal-row .htp-a-str {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 32px; height: 32px; min-width: 0; padding: 0; margin: 0;
  border: 2px solid #caa55c; border-radius: 50%;
  color: #fff1c5; background: radial-gradient(circle at 35% 30%, #5c9b53, #183b24 70%);
  font: 400 18px/1 var(--font-display);
}
.htp-animal-row .htp-a-power { margin: 0; padding: 0; border: 0; color: #20271d; font: 600 14px/1.35 var(--font-body); }

/* Page 5 finale */
.htp-finale { border: 2px solid #5b4225; border-radius: 14px; box-shadow: 0 3px 0 #b99c6b, inset 0 0 0 2px #d8ad5b80; }
.htp-finale h3 { color: #fff1c5; font-size: 30px !important; }
.htp-finale p { color: #fbf3dc; }
.htp-finale .htp-kicker { color: #f2d27d; }
.htp-finale .htp-kicker::after { background: #f2d27d; }
.htp-tutorial-link { align-self: center; margin-top: 10px; }

/* Pager */
.htp-dots { gap: 6px; }
.htp-dot { width: 8px !important; height: 8px !important; border-radius: 999px !important; background: #c9b88f !important; transition: width 180ms ease-out, background 180ms ease-out; }
.htp-dot.is-active { width: 20px !important; background: #174c2a !important; }
#htp-next {
  min-width: 120px; height: auto; min-height: 48px; padding: 0 20px;
  border: 2px solid #0a2b17; border-radius: 12px;
  color: #fffdf3; background: linear-gradient(#2f7a45, #174c2a);
  box-shadow: 0 3px 0 #092415, inset 0 1px 0 #6fae6f80;
  font: 800 16px/1.1 var(--font-body); letter-spacing: .4px;
}
#htp-back { min-height: 44px; }
#htp-back[hidden] { display: none; }

/* ============================================================
   §1 Welcome
   ============================================================ */
.welcome-card {
  background: radial-gradient(120% 80% at 50% 0%, #fffaf0 0, #f4e7c8 55%, #e8d3a4 100%) !important;
  box-shadow: 0 2px 0 #b38a4a, 0 24px 60px #000c, inset 0 0 0 1px #fff7e0, inset 0 0 0 6px #f1e2bd, inset 0 0 0 7px #b8935099 !important;
  isolation: isolate;
}
.welcome-card > * { position: relative; z-index: 1; }
.welcome-kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--ui-bronze) !important;
  font: 800 12px/1 var(--font-body) !important;
  letter-spacing: 2.5px !important;
}
.welcome-kicker::before, .welcome-kicker::after { content: ""; width: 24px; height: 1px; background: var(--ui-gold-rule); }
.welcome-card h1 { text-shadow: 0 1px 0 #fff6dc, 0 -1px 0 #7a5a2a33; }
.welcome-card p { color: #3d4636 !important; }
.welcome-note { color: #4f5a46 !important; font-weight: 600 !important; }
.welcome-google .google-mark { width: 22px; height: 22px; box-shadow: 0 0 0 1px #0000001a; font-size: 15px; }

/* ============================================================
   §2 Guest home
   ============================================================ */
/* Settings gear: SVG medallion (footer Settings link removed). */
.home-top-settings { color: #ffe9af; }
.home-top-settings .ui-icon { width: 24px; height: 24px; }
body.guest-mode #screen-home.v2 .home-band-kicker { display: none; }
/* Hero band shows the jungle vista (waterfall + peak) so the Solo card owns the lion. */
#screen-home.v2 .home-band-art { object-position: 50% 30%; transform: scale(1.75); transform-origin: 82% 30%; }

#screen-home.v2 .home-wordmark-plaque { margin-top: -56px; }
.home-solo-card { min-height: 196px !important; margin-bottom: 12px !important; }
.home-solo-copy { padding: 16px 16px !important; }
.home-solo-copy p { font-size: 14px !important; }

/* Returning-guest chip: last duel + rematch. */
.home-last-duel {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; margin: 0 0 12px; padding: 6px 8px 6px 14px;
  border: 1px solid #b99c6b; border-radius: 999px;
  color: #20271d; background: #fff8e7cc;
  box-shadow: 0 2px 0 #d8c69c;
  font: 600 14px/1.2 var(--font-body);
  cursor: pointer; text-align: left;
}
.home-last-duel[hidden] { display: none; }
.home-last-duel b { font-weight: 800; }
.home-last-duel-cta {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 7px 8px 7px 12px; border-radius: 999px;
  color: #fffdf3; background: linear-gradient(#2f7a45, #174c2a);
  font: 800 13px/1 var(--font-body);
}
.home-last-duel-cta .ui-icon { width: 16px; height: 16px; }

/* "New here?" gets the gold tutorial treatment. */
.guest-practice {
  display: flex !important; align-items: center; gap: 12px;
  width: 100%; min-height: 72px; margin: 0 0 12px; padding: 10px 14px 10px 10px !important;
  border: 2px solid #c7994a !important; border-radius: 14px !important;
  color: #20271d;
  background: linear-gradient(135deg, #fff6d8, #f1dca6) !important;
  box-shadow: 0 3px 0 #b99c6b, inset 0 0 0 3px #fff5da !important;
  text-align: left; cursor: pointer;
}
.guest-practice strong { display: block; color: #174c2a; font: 800 16px/1.2 var(--font-body); }
.guest-practice small { display: block; margin-top: 3px; color: #4f5a46; font: 600 13px/1.3 var(--font-body); }
.guest-practice-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 44px; height: 44px;
  border: 2px solid #caa55c; border-radius: 50%;
  color: #f9edc8; background: radial-gradient(circle at 35% 30%, #5c9b53, #183b24 70%);
  box-shadow: 0 2px 0 #102b19, inset 0 0 0 2px #263920;
  font-size: 22px;
}
.guest-practice .ui-chevron { color: #174c2a; }

/* Utility cards: tighter title, legible subtitle, SVG medallions. */
.home-utility-card .utility-icon { color: #f9edc8; }
.home-utility-card .utility-icon .ui-icon { width: 24px; height: 24px; }
.home-utility-card strong { font-size: 17px !important; line-height: 1.05 !important; }
.home-utility-card > span:last-child, .home-utility-card span:not(.utility-icon) { color: #4f5a46 !important; font-size: 12px !important; font-weight: 600 !important; }
#screen-home.v2 .home-card-row .home-utility-card { min-height: 100px; }

/* Sign-in card spans the full column and gets a chevron. */
.home-signin-card { width: 100% !important; margin: 12px 0 !important; min-height: 84px !important; }
.home-signin-card .signin-lock::before, .home-signin-card .signin-lock::after { display: none !important; }
.home-signin-card .signin-lock { color: #efd28a; }
.home-signin-card .signin-lock .ui-icon { width: 24px; height: 24px; }
.home-signin-card > span:nth-child(2) { flex: 1 1 auto; }
.home-signin-card .ui-chevron { color: #f2d27d; }
.home-signin-card > span:nth-child(2) > span { color: #e2e3bf !important; font-size: 13px !important; }
.home-bottom-links { margin: 8px 0 0 !important; }
.home-bottom-links button { color: #2e6b33 !important; font: 700 14px var(--font-body) !important; }

/* Signed-in variants: SVG glyph sizing + 12px floor. */
.account-quick-icon .ui-icon { width: 20px; height: 20px; }
.account-mode-card i .ui-icon { width: 22px; height: 22px; }
.account-quick-row small, .account-mode-card small { font-size: 11px !important; }
.home-player-copy small, .home-player-title { font-size: 11px !important; }
.home-player-next { font-size: 11px !important; }
.home-band-kicker small { font-size: 12px !important; }

@media (max-width: 360px) {
  #screen-home.v2 .home-title { font-size: 34px !important; letter-spacing: 1px !important; }
  #screen-home.v2 .home-wordmark-plaque { padding-left: 12px; padding-right: 12px; }
  .home-utility-card > span:last-child { font-size: 11px !important; }
  .home-utility-card strong { font-size: 16px !important; }
  .guest-practice small { font-size: 12px; }
}

/* ============================================================
   §3 Difficulty picker
   ============================================================ */
.difficulty-shell .difficulty-intro { color: #4f5a46 !important; font: 600 15px/1.35 var(--font-body) !important; }
.difficulty-option { position: relative; color: #20271d; }
.difficulty-option .difficulty-copy strong { color: #20271d !important; font-family: var(--font-display); font-weight: 400; line-height: 1; }
.difficulty-option.is-selected .difficulty-copy strong { color: #174c2a !important; }
.difficulty-option .difficulty-copy span { color: #4f5a46 !important; font: 600 14px/1.3 var(--font-body) !important; }
.difficulty-option .difficulty-copy em {
  position: static !important;
  display: inline-block;
  margin: 6px 0 0 !important;
  padding: 3px 8px !important;
  border-radius: 999px;
  color: #fff8dc !important;
  background: #2e713e !important;
  font: 800 10px/1.2 var(--font-body) !important;
  font-style: normal !important;
  letter-spacing: .8px !important;
  text-transform: uppercase;
}
.difficulty-option .difficulty-medallion { transition: transform 160ms var(--ui-ease-pop), box-shadow 160ms ease-out; }
.difficulty-option.is-selected {
  border: 2px solid #2e6b33 !important;
  box-shadow: 0 0 0 3px #2e6b3326, 0 3px 0 #1d4a26 !important;
}
.difficulty-option.is-selected .difficulty-medallion { transform: scale(1.06); box-shadow: 0 0 0 3px #e3b85a, 0 2px 0 #6a4b24; }
.difficulty-start { min-height: 54px; font-size: 17px !important; }
.difficulty-back { width: 100%; min-height: 44px !important; margin-top: 8px !important; }

/* ============================================================
   §7 Pause + leave confirm
   ============================================================ */
.redesign-modal .modal-btn-stack .ui-primary, .redesign-modal .modal-btn-stack .ui-secondary { min-height: 52px; }
.leave-confirm-modal .modal-btn-row { margin-top: 4px; }

/* ============================================================
   §12 About
   ============================================================ */
.redesign-modal .welcome-kicker { margin-bottom: 10px; }
.info-card { border-color: #c7994a !important; background: #fff9e7 !important; box-shadow: inset 0 0 0 2px #fff5da; }
.info-card p { color: #3d4636 !important; font: 600 14px/1.35 var(--font-body) !important; }
.about-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.about-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #2e6b33; font: 800 14px var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.about-links button {
  min-height: 44px !important; padding: 0 8px !important;
  color: #2e6b33 !important;
  font: 800 14px var(--font-body) !important;
  text-underline-offset: 3px;
}
#about-credits { color: #3d4636; font: 600 14px/1.4 var(--font-body); }

/* ============================================================
   §9 Tutorial
   ============================================================ */
body.tutorial-active #header-bar .wordmark,
body.tutorial-active #round-pips,
body.tutorial-active #round-label,
body.tutorial-active #menu-btn { visibility: hidden; }
#tutorial-pips {
  top: calc(8px + env(safe-area-inset-top)) !important;
  height: 28px; padding: 0 12px !important;
  display: none; align-items: center;
  border: 1px solid #c7994a; border-radius: 999px !important;
  color: #f7dfa3 !important; background: #0d2a1c !important;
  box-shadow: 0 2px 6px #0007;
  font: 800 12px/26px var(--font-body) !important; letter-spacing: .6px !important;
}
#tutorial-pips.is-active { display: inline-flex !important; }
#tutorial-pips .tut-pip-dots { color: #f2d27d; font-size: 10px; }
#tutorial-exit {
  top: calc(6px + env(safe-area-inset-top)) !important; right: max(10px, env(safe-area-inset-right)) !important;
  min-width: 56px !important; height: 32px !important; padding: 0 14px !important;
  border: 1px solid #c7994a !important; border-radius: 999px !important;
  color: #f7dfa3 !important; background: #0d2a1ccc !important;
  font: 800 13px/1 var(--font-body) !important; letter-spacing: .3px !important;
}
#tutorial-exit::after { content: ""; position: absolute; inset: -6px -4px; }
#tutorial-overlay .tut-strip { background: rgba(7, 22, 14, .72) !important; }
#tutorial-overlay .tut-cutout {
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 0 0 3px #f2d27d, 0 0 18px 4px #f2d27d88 !important;
  animation: tutHaloBreathe 1.2s ease-in-out infinite !important;
}
@keyframes tutHaloBreathe {
  0%, 100% { box-shadow: 0 0 0 3px #f2d27d, 0 0 14px 2px #f2d27d66; }
  50% { box-shadow: 0 0 0 4px #ffe093, 0 0 26px 8px #f2d27daa; }
}
body.reduced-motion #tutorial-overlay .tut-cutout { animation: none !important; }
@media (prefers-reduced-motion: reduce) { #tutorial-overlay .tut-cutout { animation: none !important; } }
.tutorial-anchor { outline-color: #f2d27d !important; }
.tutorial-action-anchor::before {
  border: 1px solid #c7994a !important; border-radius: 999px !important;
  color: #f7dfa3 !important; background: #0d2a1c !important;
  font: 800 11px/1 var(--font-body) !important; padding: 4px 8px !important;
}
#tutorial-bubble {
  overflow: visible;
  border: 2px solid #7b5a2f !important;
  border-radius: 16px !important;
  color: #20271d !important;
  background: radial-gradient(120% 80% at 50% 0%, #fffaf0 0, #f4e7c8 60%, #ead7ab 100%) !important;
  box-shadow: 0 14px 34px #000a, inset 0 0 0 3px #fff7e0, inset 0 0 0 4px #b8935066 !important;
  font: 600 16px/1.45 var(--font-body) !important;
}
#tutorial-bubble.is-active { max-height: none; }
#tutorial-bubble .tut-kicker { color: var(--ui-bronze) !important; font: 800 12px/1 var(--font-body) !important; letter-spacing: 1.6px !important; text-transform: uppercase; }
#tutorial-bubble .tut-title { color: #174c2a; font: 700 22px/1.1 var(--font-heading) !important; letter-spacing: .2px; }
#tutorial-bubble .tut-hand { color: #2e6b33 !important; }
#tutorial-bubble .tut-correction { border-left-color: #c7994a !important; background: #f2d27d33 !important; border-radius: 0 8px 8px 0; }
#tutorial-bubble .tut-next {
  min-height: 48px !important; min-width: 112px; padding: 0 18px !important;
  border: 2px solid #0a2b17 !important; border-radius: 12px !important;
  color: #fffdf3 !important; background: linear-gradient(#2f7a45, #174c2a) !important;
  box-shadow: 0 3px 0 #092415, inset 0 1px 0 #6fae6f80 !important;
  font: 800 16px/1.1 var(--font-body) !important; letter-spacing: .4px !important;
  text-transform: none !important;
}
#tutorial-bubble .tut-next:hover { filter: brightness(1.07) !important; }
#tutorial-bubble .tut-next.secondary {
  border-color: #8a7754 !important; color: #20271d !important; background: #fff8e7 !important;
  box-shadow: 0 2px 0 #c5b795 !important;
}
/* Pointer triangle toward the spotlit element (direction set by layoutNow). */
#tutorial-bubble::before, #tutorial-bubble::after {
  content: ""; position: absolute; left: var(--pointer-x, 50%);
  width: 0; height: 0; transform: translateX(-50%);
  border: solid transparent; pointer-events: none; display: none;
}
#tutorial-bubble[data-pointer="up"]::before { display: block; bottom: 100%; border-width: 0 12px 12px; border-bottom-color: #7b5a2f; }
#tutorial-bubble[data-pointer="up"]::after { display: block; bottom: calc(100% - 3px); border-width: 0 10px 10px; border-bottom-color: #fffaf0; }
#tutorial-bubble[data-pointer="down"]::before { display: block; top: 100%; border-width: 12px 12px 0; border-top-color: #7b5a2f; }
#tutorial-bubble[data-pointer="down"]::after { display: block; top: calc(100% - 3px); border-width: 10px 10px 0; border-top-color: #ead7ab; }

#tutorial-exit-confirm .tut-exit-card {
  border: 2px solid #7b5a2f !important; border-radius: 18px !important;
  background: radial-gradient(circle at 45% 0, #fffef0, #ecd8ae 92%) !important;
  box-shadow: 0 18px 42px #071207aa, inset 0 0 0 4px #fff8dd !important;
  text-align: center;
}
#tutorial-exit-confirm h2 { font-size: 26px !important; color: #20271d; }
#tutorial-exit-confirm p { color: #3d4636; font: 600 15px/1.45 var(--font-body); }
#tutorial-exit-confirm .tut-exit-actions { gap: 10px !important; }
#tutorial-exit-confirm button.ui-primary {
  border: 2px solid #0a2b17; color: #fffdf3; background: linear-gradient(#2f7a45, #174c2a);
  box-shadow: 0 3px 0 #092415, inset 0 1px 0 #6fae6f80; min-height: 52px; border-radius: 12px;
}
#tutorial-exit-confirm button.ui-secondary {
  border: 2px solid #8a7754; color: #20271d; background: #fff8e7; box-shadow: 0 2px 0 #c5b795; min-height: 52px; border-radius: 12px;
}

/* ============================================================
   §10 Record
   ============================================================ */
.stats-summary.stats-summary-4 { grid-template-columns: repeat(4, 1fr) !important; }
.stats-summary span { color: #f3ddb0 !important; font: 800 11px/1.1 var(--font-body) !important; letter-spacing: .6px !important; text-transform: uppercase; }
.stats-summary strong { font-size: 30px !important; }
.stats-empty h2 { margin-top: 4px !important; }
.stats-empty .stats-empty-icon {
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 60%, transparent 100%);
}
.stats-empty p { color: #3d4636 !important; }
.stats-streak-vine {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 10px 14px;
  border: 2px solid #c7994a; border-radius: 14px;
  background: linear-gradient(135deg, #fff6d8, #f1dca6);
  box-shadow: 0 3px 0 #b99c6b, inset 0 0 0 3px #fff5da;
}
.stats-streak-copy span { display: block; color: var(--ui-bronze); font: 800 11px/1 var(--font-body); letter-spacing: 1.4px; text-transform: uppercase; }
.stats-streak-copy strong { display: block; margin-top: 2px; color: #174c2a; font: 400 28px/1 var(--font-display); }
.stats-vine-track { position: relative; height: 28px; }
.stats-vine-track::before, .stats-vine-track i {
  content: ""; position: absolute; inset: 0;
  background: url('assets/progress-vine.webp') center/100% 100% no-repeat;
}
.stats-vine-track::before { filter: grayscale(1) brightness(.9) opacity(.45); }
.stats-vine-track i { clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0); filter: drop-shadow(0 0 3px #f2d27d88); }
.stats-streak-vine.hot strong { color: #9f472c; }
.stats-local { margin: 0 0 8px !important; padding: 0 !important; border: 0 !important; color: #4f5a46 !important; font: 700 13px/1.3 var(--font-body) !important; text-align: left !important; }
.stats-recent-title { margin: 16px 0 6px !important; color: #174c2a; font-size: 20px !important; }
.stats-recent-list { border-top: 1px solid #c9b88f; }
.stats-recent-row {
  display: grid !important; grid-template-columns: 32px 1fr auto auto !important; align-items: center; gap: 12px !important;
  min-height: 56px; padding: 8px 4px !important;
  border-bottom: 1px solid #c9b88f !important;
  background: transparent !important;
  font: 600 14px var(--font-body) !important;
}
.stats-result-medal {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 2px solid #caa55c; border-radius: 50%;
  color: #fff8dc; font: 800 14px/1 var(--font-body);
  box-shadow: 0 2px 0 #0003;
}
.stats-recent-row.won .stats-result-medal { background: radial-gradient(circle at 35% 30%, #5c9b53, #183b24 70%); }
.stats-recent-row.lost .stats-result-medal { background: radial-gradient(circle at 35% 30%, #c4704f, #6e2a17 70%); border-color: #d9a07f; }
.stats-recent-row.shared .stats-result-medal { color: #20271d; background: radial-gradient(circle at 35% 30%, #fbe7a6, #c7994a 75%); }
.stats-row-copy strong { display: block; color: #20271d; font: 800 15px/1.1 var(--font-body); }
.stats-row-copy .stats-mode { display: block; margin-top: 2px; color: #4f5a46 !important; font: 600 12px/1.2 var(--font-body) !important; letter-spacing: 0 !important; }
.stats-row-score { color: #20271d; font: 400 18px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stats-recent-row .stats-time { color: #4f5a46 !important; font: 600 12px var(--font-body) !important; min-width: 56px; text-align: right; }
.stats-none { color: #4f5a46; font: 600 14px var(--font-body); }
.stats-play-again { width: 100%; margin-top: 18px; }
.stats-flourish {
  height: 130px; margin: 10px auto 0; opacity: .4;
  background: url('assets/ui/record-empty-trail-v2.webp') center/contain no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
/* P3: replace the "broken rule" panel footer with a gold diamond ornament. */
#screen-panel-stats .panel-body::after,
#screen-panel-settings .panel-body::after {
  left: 50% !important; right: auto !important; bottom: 14px !important;
  width: 120px; height: 7px !important; transform: translateX(-50%);
  opacity: 1 !important;
  background:
    linear-gradient(#c7994a, #c7994a) left center/48px 1px no-repeat,
    linear-gradient(#c7994a, #c7994a) right center/48px 1px no-repeat,
    linear-gradient(45deg, transparent 30%, #c7994a 30% 70%, transparent 70%) center/7px 7px no-repeat !important;
}

/* ============================================================
   §11 Settings
   ============================================================ */
.settings-group h2 { font-size: 21px !important; gap: 10px !important; color: #153d25 !important; }
.settings-group-icon { width: 30px !important; height: 30px !important; font-size: 15px !important; }
.settings-label { color: #20271d; font: 700 16px/1.25 var(--font-body) !important; }
.settings-help { color: #4f5a46 !important; font: 600 12px/1.35 var(--font-body) !important; }
.settings-seg button {
  min-width: 84px !important; min-height: 44px !important;
  color: #20271d !important; background: #fff8e7 !important;
  font: 700 14px/1 var(--font-body) !important; letter-spacing: .2px !important;
  text-transform: none !important;
}
.settings-seg button.is-active { color: #fff8e7 !important; background: #174c2a !important; box-shadow: inset 0 0 0 2px #2f6d40 !important; }
.settings-btn {
  min-height: 44px !important; padding: 0 14px !important;
  border: 2px solid #8a7754 !important; border-radius: 10px !important;
  color: #20271d !important; background: #fff8e7 !important;
  font: 800 14px/1 var(--font-body) !important; letter-spacing: .2px !important;
  text-transform: none !important; white-space: nowrap;
}
.settings-btn.settings-danger { border-color: #9f472c !important; color: #9f472c !important; background: #fff4ee !important; }
.settings-advanced { margin: 8px 0 0; border-top: 1px solid #a98b58; }
.settings-advanced > summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 4px;
  color: #4f5a46; font: 800 14px var(--font-body); letter-spacing: .4px;
  cursor: pointer; list-style: none;
}
.settings-advanced > summary::-webkit-details-marker { display: none; }
.settings-advanced > summary .ui-icon { width: 20px; height: 20px; transition: transform 160ms ease-out; }
.settings-advanced[open] > summary .ui-icon { transform: rotate(180deg); }
.settings-advanced .settings-seed-row { border-bottom: 0; }
.settings-advanced .settings-seed-row .settings-control { grid-template-columns: 1fr auto auto !important; }
.settings-seed-value { font: 700 15px var(--font-body) !important; font-variant-numeric: tabular-nums; }
.next-seed-chip { display: inline-block; margin: 6px 4px 0; padding: 4px 10px; border-radius: 999px; color: #fff8dc; background: #2e713e; font: 800 11px var(--font-body); letter-spacing: .8px; }

/* ============================================================
   §13 Jungle Trail map
   ============================================================ */
#story-chapter-select {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 4px;
  width: auto !important; min-width: 44px; padding: 0 10px !important;
  white-space: nowrap !important;
  font: 800 13px/1 var(--font-body) !important;
}
#story-chapter-select .ui-icon { width: 16px; height: 16px; }
#story-back .ui-icon { width: 24px; height: 24px; stroke-width: 2.5; }
.story-top { grid-template-columns: 48px 1fr auto !important; }
.story-top p { font-size: 11px !important; }
.trail-scroll { scroll-padding-top: 80px; scroll-padding-bottom: 140px; }
.story-trail .story-node.locked { filter: grayscale(.6) brightness(.75) !important; opacity: .85 !important; }
.story-trail .story-node.open:not(.current)::before { box-shadow: 0 0 0 2px #d9a94e, 0 2px 3px #070a08cc !important; }
.story-node-lock {
  position: absolute; z-index: 6; right: 4%; top: 2%;
  display: grid; place-items: center; width: 20px; height: 20px;
  border: 1px solid #b8b29b; border-radius: 50%;
  color: #efe6c6; background: #1f2a22;
  box-shadow: 0 1px 3px #000a;
}
.story-node-lock .ui-icon { width: 12px; height: 12px; stroke-width: 2.5; }
.story-preview h2 { font-family: var(--font-display) !important; font-weight: 400 !important; font-size: 24px !important; }
.story-preview-heading > span:first-child { font-size: 11px !important; }
.story-preview-copy > small { font-size: 11px !important; }
.story-preview p { font-size: 12px !important; }
#story-play .ui-icon { width: 20px; height: 20px; }

/* ============================================================
   X9 contrast floor — remaining 9-11px copy in shell screens
   ============================================================ */
.home-trail-copy > span, .home-trail > strong { font-size: 13px; }
.journal-identity span { font-size: 11px !important; }
.journal-tab { font-size: 12px !important; text-transform: none; }
.achievement-meta span { font-size: 11px; }

/* ============================================================
   X10 — desktop / tablet painted backdrop
   ============================================================ */
@media (min-width: 600px) {
  html, body { background: #0b1f14 !important; }
  body { background: #0b1f14 url('assets/ui/welcome-jungle-night.webp') center/cover fixed no-repeat !important; }
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 30%, #050f0acc 100%);
  }
  #app-outer {
    z-index: 1;
    box-shadow: 0 0 0 1px #c7994a55, 0 30px 80px #000a !important;
  }
}
.settings-group-icon .ui-icon { width: 16px; height: 16px; }

/* ============================================================
   Welcome screen v2 (approved mockup, 2026-10-12): ivory panel with a fine double gold
   border, faint fern corners, gold-ringed crest, green-and-gold title, emerald Google
   button with the multicolour G, ivory guest button. Jungle stays visible above and below.
   ============================================================ */
#screen-welcome::after { background: linear-gradient(#07170aa6, #07170a33 30%, #07170a33 70%, #07170ab3); }
#screen-welcome .welcome-card { width: min(100%, 400px); padding: 30px 26px 24px; border: 2px solid #c9a24f; border-radius: 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9b27a' stroke-width='1.6' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M6 6c18 6 34 22 44 46'/%3E%3Cpath d='M14 9c-2 8 2 14 9 15M22 15c-2 8 3 13 10 13M30 23c-1 8 4 12 10 11M37 32c0 7 4 10 9 9M18 8c8-3 14 0 16 7M27 14c8-2 13 2 14 9M35 22c7-1 11 3 12 10'/%3E%3C/g%3E%3C/svg%3E") left 8px top 8px / 72px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg transform='translate(80 0) scale(-1 1)' fill='none' stroke='%23c9b27a' stroke-width='1.6' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M6 6c18 6 34 22 44 46'/%3E%3Cpath d='M14 9c-2 8 2 14 9 15M22 15c-2 8 3 13 10 13M30 23c-1 8 4 12 10 11M37 32c0 7 4 10 9 9M18 8c8-3 14 0 16 7M27 14c8-2 13 2 14 9M35 22c7-1 11 3 12 10'/%3E%3C/g%3E%3C/svg%3E") right 8px top 8px / 72px no-repeat,
    linear-gradient(#fffbea, #f5ead0);
  box-shadow: 0 20px 44px #000b, 0 0 0 1px #fff6 inset; }
#screen-welcome .welcome-card::before { display: none; }
#screen-welcome .welcome-card::after { inset: 7px; border: 1px solid #c9a24fa6; border-radius: 16px; }
#screen-welcome .welcome-crest { width: 118px; height: 118px; margin: 0 auto 16px; border: 0;
  box-shadow: 0 0 0 4px #d9b25e, 0 0 0 6px #6e4b16, 0 0 0 7px #e9c46a66, 0 8px 18px #0006; }
#screen-welcome .welcome-kicker { margin: 0 0 8px; color: #1f3324; font: 800 13px var(--font-body); letter-spacing: 4px; }
#screen-welcome .welcome-kicker::before, #screen-welcome .welcome-kicker::after { width: 40px; height: 1.5px; background: #c9a24f; }
#screen-welcome .welcome-card h1 { color: #174a2a; letter-spacing: 1.5px;
  text-shadow: 0 1px 0 #f2d27d, 0 2px 0 #b8862a, 0 3px 0 #7a5418, 0 6px 10px #0002; }
#screen-welcome .welcome-card p { margin: 18px auto 22px; max-width: 300px; color: #1f3324 !important; font: 600 16px/1.45 var(--font-body); }
#screen-welcome .welcome-actions { gap: 12px; }
#screen-welcome .welcome-google { min-height: 56px; border: 1.5px solid #d9b25e; border-radius: 14px; color: #fff;
  background: linear-gradient(#2c7d4c, #15552f); box-shadow: 0 3px 0 #0b3a1f, 0 8px 16px #0004, inset 0 1px 0 #ffffff2a;
  font: 800 17px/1 var(--font-body); text-transform: none; letter-spacing: .2px; }
#screen-welcome .welcome-google .google-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0004; font-size: 0; }
#screen-welcome .welcome-google .google-mark svg { width: 18px; height: 18px; }
#screen-welcome .welcome-actions .ui-secondary { min-height: 54px; border: 1.5px solid #c9a24f; border-radius: 14px; color: #173d26;
  background: #fffaf0; box-shadow: 0 2px 0 #c9a24f55; font: 800 17px/1 var(--font-body); text-transform: none; }
#screen-welcome .welcome-note { margin: 16px 0 0 !important; color: #3f5a44 !important; font-size: 13px !important; }
@media (max-width: 360px) {
  #screen-welcome .welcome-card { padding: 24px 18px 20px; background-size: 56px, 56px, auto; }
  #screen-welcome .welcome-crest { width: 96px; height: 96px; }
}
