/* Existing Guessname shared chrome, locally served without external font imports. */
/* Guessname's playful light world, inspired by the broad visual rhythm of Funbrain.
   This stylesheet is loaded after legacy page styles so every game shares one system. */


:root {
  color-scheme: light;
  --bg: #72a5a0;
  --panel: #f8f5ef;
  --panel2: #fffdf8;
  --panel-deep: #f2ece2;
  --tile: #fffdf8;
  --tile-dark: #e9e3da;
  --line: #d8d0c5;
  --line-soft: #e5ded4;
  --text: #242221;
  --muted: #57534e;
  --quiet: #635e59;
  --accent: #087b78;
  --accent-ink: #fff;
  --accent-soft: #d7f3ef;
  --accent-border: #a8d9d3;
  --ambient: transparent;
  --error: #a93631;
  --green: #20764c;
  --red: #aa3433;
  --fb-teal: #2fc6bd;
  --fb-gold: #f4b95d;
  --fb-coral: #f16e63;
  --fb-ink: #25201f;
  --fb-paper: #f8f5ef;
  --fb-violet: #ac8cc6;
}
html { background: var(--bg); }
body,
body[data-ui] {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: GuessNunito, 'Trebuchet MS', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before,
body[data-ui]::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 82px;
  background: var(--fb-ink);
  opacity: 1;
  mask-image: none;
  pointer-events: none;
}
body.did-win::after { background: radial-gradient(circle at center, rgba(47,198,189,.25), transparent 68%); }
body.did-lose::after { background: radial-gradient(circle at center, rgba(241,110,99,.22), transparent 68%); }
* { scrollbar-color: #4f8782 #e9e3da; }
::selection { background: #f9d475; color: var(--fb-ink); }
a { text-underline-offset: 3px; }
:where(a, button, input, select):focus-visible { outline: 3px solid #e99233; outline-offset: 3px; }
button { touch-action: manipulation; }

/* Persistent top region and page widths */
body[data-ui] :is(.app, .shell) { position: relative; width: min(100% - 32px, 1080px); margin-inline: auto; padding-top: 18px; }
body[data-ui="clue"] .app { max-width: 940px; }
body[data-ui="estimate"] .shell { max-width: 980px; }
body[data-ui] :is(.header, .top) { position: relative; z-index: 2; min-height: 50px; background: var(--fb-ink); }
body[data-ui] :is(.home, .top > .brand) { color: #fff; text-decoration: none; }
body[data-ui] .site-brand,
body[data-ui] :is(.home, .top > .brand) small { color: #7de0d4; font-family: GuessNunito, sans-serif; font-weight: 1000; letter-spacing: .14em; }
body[data-ui="clue"] .header .brand,
body[data-ui="logo-play"] .top .brand strong { color: #fff; text-transform: none; letter-spacing: -.025em; font-family: GuessNunito, sans-serif; }
body[data-ui] :is(.header .game-icon, .top .mark, .top .mark-icon) { box-shadow: none; transform: none; border: 3px solid #fff; border-radius: 13px; background: #fff; }
body[data-ui] .top .mark { color: var(--fb-ink); }
body[data-ui] :is(.language, .language-bar, .language-control) { color: #f2f1ef; }
body[data-ui] :is(.language, .language-bar, .language-control) :is(select, #directoryLanguage) {
  min-height: 39px;
  border: 1px solid #98d9d2;
  border-radius: 10px;
  background: #fffdf8;
  color: var(--fb-ink);
  font-weight: 800;
}
body[data-ui] .top .back { color: #eefaf8; }
body[data-ui] .game-directory-nav { margin-top: 18px; margin-bottom: 16px; }
body[data-ui] .game-directory-nav a {
  background: var(--fb-teal);
  color: var(--fb-ink);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}
body[data-ui] .game-directory-nav a:hover { background: #84e3d7; }
body[data-ui] .game-directory-nav a::after { border-color: var(--fb-ink); }

/* The seven ways to play remain visible throughout the site. */
body[data-ui] .section-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  position: relative;
  z-index: 1;
  gap: 8px;
  margin: 23px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body[data-ui="clue"] .app > .section-nav { grid-column: 1 / -1; }
body[data-ui="clue"].nav-ready .game-directory-nav { display: none; }
body[data-ui="logo-play"] .section-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
body[data-ui] .section-nav a {
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid #235d59;
  border-radius: 999px;
  background: #e6f7ef;
  color: #173c3a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
}
body[data-ui] .section-nav a:nth-child(2) { background: #fff0bd; color: #524018; }
body[data-ui] .section-nav a:nth-child(3) { background: #f0dff2; color: #4f3755; }
body[data-ui] .section-nav a:nth-child(4) { background: #e6e9ff; color: #343d67; }
body[data-ui] .section-nav a:nth-child(5) { background: linear-gradient(90deg,#ffe1ec 50%,#deedff 50%); color: #402b3d; }
body[data-ui] .section-nav a:nth-child(6) { background:#fff2cf; color:#513c18; }
body[data-ui] .section-nav a:nth-child(7) { background:#def0e9; color:#19483e; }
body[data-ui] .section-nav a:hover { background: #fff; color: var(--fb-ink); transform: translateY(-2px); }
body[data-ui] .section-nav a[aria-current] { background: var(--fb-teal); color: var(--fb-ink); border-color: #154d4a; }

