/* WORDSHIFT web pages (placeholder home, /feedback). Warm peach + cream, glossy candy tiles, Fredoka.
   The in-game widget (feedback-widget.js) carries its own copy of these tokens inside its shadow DOM. */
:root {
  color-scheme: light;
  --peach-1: #FCEBDF;
  --peach-2: #F9DCCB;
  --peach-3: #F5CFBA;
  --cream: #FFF9F1;
  --cream-2: #FBEFE2;
  --line: #EED9C6;
  --ink: #6B4128;
  --ink-2: #94694F;
  --ink-3: #B89782;
  --focus: #6FA9EA;
  --green-1: #8ED06C; --green-2: #5DAE45; --green-edge: #3F8A2E;
  --radius: 26px;
  --font: "Fredoka", "Vazirmatn", "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--ink); font: 400 17px/1.5 var(--font);
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(255, 228, 240, .9), rgba(255, 228, 240, 0) 60%),
    radial-gradient(90% 50% at 100% 30%, rgba(255, 240, 214, .8), rgba(255, 240, 214, 0) 70%),
    linear-gradient(180deg, var(--peach-1), var(--peach-2) 55%, var(--peach-3));
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Leaves and blossoms in the corners (decoration only). */
.sprig { position: fixed; z-index: 0; width: clamp(150px, 30vw, 300px); aspect-ratio: 260 / 230; pointer-events: none;
         background: url(/assets/sprig.svg) no-repeat center / contain; filter: drop-shadow(0 6px 10px rgba(120, 70, 40, .12)); }
.sprig.tl { top: -18px; left: -30px; transform: rotate(180deg) scaleX(-1); }
.sprig.tr { top: -24px; right: -34px; transform: rotate(180deg); }
.sprig.bl { bottom: -20px; left: -36px; transform: scaleX(1); }
.sprig.br { bottom: -16px; right: -30px; transform: scaleX(-1); }
@media (max-width: 560px) { .sprig { width: 150px; opacity: .9; } .sprig.tl, .sprig.tr { width: 120px; } }

/* Candy letter tile. Size with --s. */
.tile {
  --s: 56px; --face: #A9D3FB; --face-2: #74AEEC; --edge: #4F8BD3; --t-ink: #273B7A;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .26);
  background: linear-gradient(180deg, var(--face), var(--face-2));
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .8), inset 0 -3px 0 rgba(0, 0, 0, .05),
              0 calc(var(--s) * .08) 0 var(--edge), 0 calc(var(--s) * .16) calc(var(--s) * .26) rgba(120, 70, 40, .2);
  color: var(--t-ink); font-weight: 600; font-size: calc(var(--s) * .58); line-height: 1; user-select: none;
}
.tile::before { content: ""; position: absolute; left: 12%; right: 12%; top: 6%; height: 36%; border-radius: 999px;
                background: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); pointer-events: none; }
.tile > * { position: relative; }
.tile svg { width: 58%; height: 58%; }
.t-blue   { --face: #A9D3FB; --face-2: #74AEEC; --edge: #4F8BD3; --t-ink: #273B7A; }
.t-green  { --face: #CDEAAF; --face-2: #A2D27E; --edge: #77AE56; --t-ink: #2F4D22; }
.t-purple { --face: #DCC8FA; --face-2: #B99CEF; --edge: #8E6FD0; --t-ink: #3E2A73; }
.t-yellow { --face: #FFE590; --face-2: #FFC846; --edge: #DE9A22; --t-ink: #6A3D0E; }
.t-pink   { --face: #FFC0CD; --face-2: #F592A9; --edge: #D3627F; --t-ink: #6E1F36; }
.t-cream  { --face: #FFFEFA; --face-2: #F7EBDD; --edge: #E3CDB7; --t-ink: #7A5038; }

/* Cream panel and pills, like the game's top bar and buttons. */
.card { position: relative; z-index: 1; background: linear-gradient(180deg, #FFFCF7, var(--cream)); border-radius: var(--radius);
        box-shadow: 0 2px 0 #fff inset, 0 6px 0 #EBD3BE, 0 18px 40px rgba(130, 80, 45, .14); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
        border-radius: 999px; background: linear-gradient(180deg, #FFFDF8, #F8EADB); color: var(--ink); text-decoration: none;
        font: 600 18px/1 var(--font); border: 0; cursor: pointer;
        box-shadow: inset 0 2px 0 #fff, 0 4px 0 #E2C8B0, 0 10px 18px rgba(130, 80, 45, .14); transition: transform .08s, box-shadow .08s; }
.pill:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 #E2C8B0, 0 4px 8px rgba(130, 80, 45, .12); }
.pill svg { width: 20px; height: 20px; }

.btn-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 24px;
          border: 0; border-radius: 20px; cursor: pointer; color: #fff; font: 600 20px/1 var(--font); letter-spacing: .2px;
          text-shadow: 0 2px 0 rgba(40, 95, 28, .45); text-decoration: none;
          background: linear-gradient(180deg, var(--green-1), var(--green-2));
          box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), 0 6px 0 var(--green-edge), 0 14px 22px rgba(70, 120, 40, .25);
          transition: transform .08s, box-shadow .08s, filter .15s; }
.btn-go:active { transform: translateY(4px); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), 0 2px 0 var(--green-edge), 0 6px 10px rgba(70, 120, 40, .2); }
.btn-go:disabled { filter: saturate(.4) brightness(1.05); cursor: default; }
.btn-go svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
