/* Stickee Studios portal, POC. Colors are the Stickee Words light theme
   (sticky-words-poc/public/style.css, :root[data-theme="light"]). */
:root {
  --page: #dcebc8; --panel: #fff8ea; --well: #fffdf6; --border: #dcb98c;
  --wood: #c9925a; --wood-dark: #a8642a; --text: #3b2a1a; --strong: #2a1c0f; --dim: #6f5a44;
  --orange: #c2410c; --blue: #1670b0; --blue-fill: #7cc8f2; --gold: #ffcc4d;
  --good: #15803d; --bad: #c8283f; --moss: #23402c;
  --t-blue: #dcefff; --e-blue: #7cb6e8; --t-purple: #efe2ff; --e-purple: #b48ae6;
  --t-orange: #ffe7cc; --e-orange: #f0a35c; --t-green: #e0f4d2; --e-green: #8cc56b;
  --t-pink: #ffe0e6; --e-pink: #ee8a9e; --t-yellow: #fff3c4; --e-yellow: #e6c154;
  --t-slate: #e3e8f5; --e-slate: #8e9cc7;
  --display: 'Fredoka', "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/fredoka-600.woff2) format('woff2');
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; }
body { font-family: var(--body); color: var(--text); background: var(--page); min-height: 100vh; line-height: 1.45; }
/* the forest behind everything: a fixed layer, since phones ignore background-attachment */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--page) url(/img/meadow-bg.jpg) center / cover no-repeat; }
a { color: var(--blue); }
.wrap { max-width: 600px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- header: a slim parchment sheet, the logo left, Play top right ---------- */
.sign {
  background: #f8f2e4;
  background-image:
    radial-gradient(ellipse 60% 70% at 18% 20%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(ellipse 50% 60% at 88% 92%, rgba(201,178,132,.28), transparent 70%),
    radial-gradient(ellipse 40% 50% at 60% 10%, rgba(201,178,132,.14), transparent 70%),
    repeating-linear-gradient(112deg, rgba(150,120,70,.05) 0 1px, transparent 1px 6px);
  border: 3px solid #dccbaa; border-radius: 14px;
  box-shadow: 0 5px 0 #c7b088, 0 10px 20px rgba(60,40,10,.16), inset 0 0 0 1px rgba(255,255,255,.6);
  position: relative;
}
.header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 14px 12px; }
.logo { display: flex; flex-direction: column; gap: 14px; width: 268px; flex: none; position: relative; padding-bottom: 8px; text-decoration: none; }
.l1, .l2 { display: flex; justify-content: space-between; align-items: flex-end; }
.c1 { --cl: #ffb866; --c: #f08a24; --cd: #b8580c; }
.c2 { --cl: #b2e480; --c: #7bc043; --cd: #4b8a22; }
.c3 { --cl: #c9a4f7; --c: #9b5de5; --cd: #6836b4; }
.c4 { --cl: #8fcbf7; --c: #3fa0e8; --cd: #1d6cb6; }
.c5 { --cl: #ff93ad; --c: #ef476f; --cd: #b4224c; }
.c6 { --cl: #ffe28f; --c: #f6c543; --cd: #c48f12; }
.l1 span {
  font: 700 46px/1 var(--display); position: relative; color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--cl) 18%, var(--c) 48%, var(--c) 78%, var(--cd) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 var(--cd)) drop-shadow(0 6px 5px rgba(60,30,10,.28));
}
.l1 span::after { content: ""; position: absolute; left: 38%; bottom: -8px; width: 9px; height: 13px; border-radius: 0 0 9px 9px; background: var(--c); }
.l1 span:nth-child(2n)::after { display: none; }
.l2 span {
  font: 700 23px/1 var(--display); color: var(--cd); width: 34px; height: 36px; border-radius: 10px 10px 12px 12px;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(180deg, var(--cl) 0%, var(--c) 45%, var(--c) 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.12), 0 3px 0 var(--cd), 0 6px 5px rgba(60,30,10,.22);
}
.l2 span::after { content: ""; position: absolute; bottom: -9px; left: 10px; width: 9px; height: 12px; border-radius: 0 0 8px 8px; background: var(--c); }
.pill { font: 600 13px var(--display); color: var(--text); background: var(--panel); border: 2px solid var(--border); border-radius: 999px; padding: 6px 12px; box-shadow: 0 3px 0 var(--border); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.pill.gold { background: var(--gold); border-color: #d9a520; box-shadow: 0 3px 0 #b8860b; color: var(--strong); }
.header .pill { margin-top: 2px; }
@media (max-width: 559px) {
  .logo { width: 176px; gap: 10px; padding-bottom: 6px; }
  .l1 span { font-size: 31px; }
  .l1 span::after { width: 6px; height: 9px; bottom: -6px; }
  .l2 span { width: 23px; height: 25px; font-size: 15px; border-radius: 7px 7px 9px 9px; }
  .l2 span::after { width: 6px; height: 9px; bottom: -7px; left: 7px; }
  .header { padding: 8px 8px 10px; }
  .header .pill { font-size: 11.5px; padding: 5px 8px; gap: 4px; }
}

/* ---------- games menu: one row of small game icons, Stickee Words opens its Challenge Games with +/− ---------- */
.gmenu { padding: 8px 10px; }
.gm-row { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: stretch; }
.gm-item { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.gm-link { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; padding: 5px 6px; border-radius: 12px; color: var(--text); text-decoration: none; }
a.gm-link:hover, a.gm-link:focus-visible { background: var(--well); box-shadow: inset 0 0 0 2px var(--border); }
.gm-name { font: 600 15px/1.15 var(--display); color: var(--strong); min-width: 0; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; overflow: hidden; }
.gm-sub { font: 400 11px/1.2 var(--body); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-icon {
  flex: none; width: 34px; height: 36px; border-radius: 10px 10px 12px 12px; position: relative;
  display: grid; place-items: center; font: 700 22px/1 var(--display); color: var(--cd);
  background: linear-gradient(180deg, var(--cl) 0%, var(--c) 45%, var(--c) 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.12), 0 3px 0 var(--cd), 0 5px 5px rgba(60,30,10,.2);
}
.gm-icon.words::after { content: ""; position: absolute; bottom: -8px; left: 9px; width: 8px; height: 10px; border-radius: 0 0 7px 7px; background: var(--c); }
.gm-icon.eye { --cl: #fff8e6; --c: #efe3c6; --cd: #a98a4e; }
.gm-icon.eye svg { width: 24px; height: 24px; display: block; }
.gm-item.soon .gm-link { cursor: default; }
.gm-item.soon .gm-icon { opacity: .85; }
.gm-toggle {
  flex: none; width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--border); background: var(--well);
  color: var(--orange); font: 700 20px/1 var(--display); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 0 var(--border);
}
.gm-toggle:hover, .gm-toggle:focus-visible { border-color: var(--wood); background: #fff; }
.gm-toggle span { position: relative; top: -1px; }
.gm-modes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 2px dashed var(--border); }
.gm-modes[hidden] { display: none; }
@media (min-width: 560px) { .gm-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gm-modes a {
  display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px 8px; border-radius: 12px; text-decoration: none; color: var(--strong);
  background: var(--tile-bg); border: 2px solid var(--tile-edge); box-shadow: 0 2px 0 var(--tile-edge); font: 600 13px/1.15 var(--display);
}
.gm-modes a:hover, .gm-modes a:focus-visible { transform: translateY(-1px); box-shadow: 0 3px 0 var(--tile-edge); }
.gm-modes .n { flex: none; font: 700 11px/1 var(--display); color: var(--dim); width: 12px; text-align: right; }
.gm-modes .ico { flex: none; font-size: 15px; line-height: 1; min-width: 20px; text-align: center; }
.gm-modes .ico.three { font-size: 11px; letter-spacing: -1px; }
.gm-modes .ico.wild { color: #c48f12; font-weight: 700; }
.gm-modes .gm-name { font-size: 13px; }
.gm-modes .gm-sub { font-size: 10.5px; }
@media (max-width: 559px) {
  .gm-item { flex-basis: 100%; }
  .gm-modes .gm-sub, .gm-modes .n { display: none; }
}
@media (max-width: 359px) {
  .gm-modes a { padding: 6px; gap: 5px; }
  .gm-modes .gm-name { font-size: 12px; }
  .logo { width: 150px; gap: 8px; }
  .l1 span { font-size: 27px; }
  .l2 span { width: 20px; height: 22px; font-size: 13px; }
  .header .pill { font-size: 11px; padding: 5px 7px; }
}

/* ---------- panels and stickers ---------- */
.panel { background: var(--panel); border: 3px solid var(--wood); border-radius: 16px; box-shadow: 0 4px 0 var(--wood-dark), 0 10px 22px rgba(60,40,10,.18); padding: 14px; }
h1, h2, h3 { font-family: var(--display); color: var(--orange); font-weight: 600; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blob { width: 36px; height: 33px; flex: none; }
.sub { color: var(--dim); font-size: 13px; margin-top: 2px; }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 560px) { .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sticker { background: var(--tile-bg); border: 3px solid var(--tile-edge); border-radius: 16px; box-shadow: 0 3px 0 var(--tile-edge); padding: 12px; position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: transform .25s; color: var(--text); text-decoration: none; }
a.sticker:hover, a.sticker:focus-visible { transform: scale(1.03) rotate(-1deg); }
.sticker .name { font: 600 17px var(--display); color: var(--strong); }
.sticker .meta { font-size: 12px; color: var(--dim); }
.sticker .badge { position: absolute; top: -10px; right: -8px; font: 700 11px var(--display); background: var(--gold); border: 2px solid #d9a520; border-radius: 999px; padding: 3px 8px; transform: rotate(8deg); color: var(--strong); }
.blue { --tile-bg: var(--t-blue); --tile-edge: var(--e-blue); }
.purple { --tile-bg: var(--t-purple); --tile-edge: var(--e-purple); }
.orange { --tile-bg: var(--t-orange); --tile-edge: var(--e-orange); }
.green { --tile-bg: var(--t-green); --tile-edge: var(--e-green); }
.pink { --tile-bg: var(--t-pink); --tile-edge: var(--e-pink); }
.yellow { --tile-bg: var(--t-yellow); --tile-edge: var(--e-yellow); }
.slate { --tile-bg: var(--t-slate); --tile-edge: var(--e-slate); }
.board { background: var(--moss); border: 3px solid var(--wood-dark); border-radius: 10px; padding: 6px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; width: 100%; max-width: 190px; }
.board i { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,.06); }
.board b { aspect-ratio: 1; border-radius: 4px; font: 700 11px/1 var(--display); color: #fff; display: grid; place-items: center; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font: 600 11px var(--display); color: var(--strong); background: var(--tile-bg); border: 2px solid var(--tile-edge); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.btn { font: 700 15px var(--display); letter-spacing: .02em; border: 3px solid #d9a520; background: linear-gradient(180deg, #ffd96a, #ffcc4d); color: var(--strong); border-radius: 12px; padding: 9px 14px; box-shadow: 0 4px 0 #b8860b; text-align: center; display: block; text-decoration: none; }
.btn.wood { background: linear-gradient(180deg, #d4a06a, #b97f48); border-color: var(--wood-dark); color: #fff8ea; box-shadow: 0 4px 0 #7a4a1c; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (min-width: 560px) { .row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.row .sticker { min-height: 92px; padding: 10px; }
.row .sticker .name { font-size: 15px; }
.footer { text-align: center; font-size: 12px; color: var(--dim); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding-top: 4px; }
.footer a { color: var(--blue); text-decoration: none; }
.footer .line { width: 100%; }

/* ---------- text pages ---------- */
.article p, .article li { font-size: 15px; line-height: 1.55; }
.article p + p, .article ul, .article ol { margin-top: 10px; }
.article ul, .article ol { padding-left: 22px; }
.article h2 { margin-top: 22px; }
.article h3 { margin-top: 16px; }
.article .meta { color: var(--dim); font-size: 13px; margin-top: 2px; }
.article b { color: var(--strong); }
.hcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; padding: 12px; border: 3px solid var(--tile-edge); border-radius: 16px; background: var(--tile-bg); box-shadow: 0 3px 0 var(--tile-edge); }
@media (min-width: 560px) { .hcard { grid-template-columns: 180px minmax(0, 1fr); align-items: center; } }
.hcard img { width: 100%; max-width: 240px; height: auto; border-radius: 12px; border: 3px solid var(--wood-dark); background: var(--moss); display: block; }
.hcard h3 { margin-top: 0; }
.hint { font-size: 13px; color: var(--dim); }
.post + .post { margin-top: 22px; padding-top: 18px; border-top: 2px dashed var(--border); }
.cta { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .sticker, a.sticker:hover { transition: none; transform: none; } }
