/* Taro Games house style: the look shared by every game (dark panels, IBM Plex Sans + Crimson Pro, spring motion).
   Games link this first, then their own stylesheet, so a game's own rule always wins over one here. Fonts are
   self-hosted (the pages' policy allows only this site's own files). The site's own pieces in the header (the
   "Taro Games" link back to the hub) and the toasts use the site tokens (house/tokens.css: Jost, --tg-*). */
@import url("/house/tokens.css");
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:100 700;font-display:swap;src:url(../fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:100 700;font-display:swap;src:url(../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Crimson Pro";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/crimson-pro-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Crimson Pro";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/crimson-pro-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Crimson Pro";font-style:italic;font-weight:100 900;font-display:swap;src:url(../fonts/crimson-pro-latin-wght-italic.woff2) format("woff2")}

:root{
  /* light by default; house/theme.js sets data-theme="dark" from the device or the sun/moon button */
  --h-bg:#f4f2ee;--h-panel:#ffffff;--h-panel2:#f0eee9;--h-line:#e2dfd8;--h-text:#18171c;--h-muted:#6f6c76;--h-on:#ffffff;
  --h-good:#3ddc97;--h-ok:#ffd166;--h-meh:#ff9f43;--h-bad:#ff5d6c;--h-accent:#ffc857;
  --h-ease:cubic-bezier(.2,.9,.25,1);--h-spring:cubic-bezier(.34,1.56,.64,1);
  --h-sans:"IBM Plex Sans",system-ui,-apple-system,sans-serif;--h-serif:Crimson Pro,Georgia,serif;
  color-scheme:light;
}
:root[data-theme="dark"]{--h-bg:#121214;--h-panel:#1c1c20;--h-panel2:#25252b;--h-line:#2e2e35;--h-text:#f5f3ef;--h-muted:#9b99a3;--h-on:#111111;color-scheme:dark}
/* smooth swap when the player flips the theme */
.theme-anim,.theme-anim *{transition:background-color .4s,color .4s,border-color .4s,fill .4s,stroke .4s!important}

/* header: small "TAROGAME" over the game's logo, icon buttons on the right */
.hbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(12px,env(safe-area-inset-top)) 0 6px}
.hbrand{line-height:1;text-decoration:none;color:var(--h-text);display:block}
.hbrand .by{font:600 10.5px/1 var(--tg-font);letter-spacing:.16em;text-transform:uppercase;color:var(--h-muted);display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin-bottom:5px}
/* a small back chevron: the line is the way home to every game */
.hbrand .by::before{content:"";width:5px;height:5px;flex:none;border:solid currentColor;border-width:0 0 1.6px 1.6px;transform:rotate(45deg);margin:0 1px 0 2px;opacity:.85}
.hbrand:hover .by{color:var(--h-text)}
.hbrand .logo{font:700 30px/1 var(--h-serif);letter-spacing:-.03em;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.hbrand .logo i{font-style:normal;display:inline-block;transition:color .6s var(--h-ease),transform .6s var(--h-spring)}
.hbrand .logo i.lit{transform:translateY(-3px)}
.hicons{display:flex;gap:8px}
.hicon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--h-panel);border:1px solid var(--h-line);color:var(--h-text);cursor:pointer;padding:0;transition:transform .2s var(--h-spring),background .2s}
.hicon:hover{background:var(--h-panel2)}.hicon:active{transform:scale(.9)}
.hicon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hicon svg .fill{fill:currentColor;stroke:none}
@media (max-width:380px){.hicons{gap:6px}.hicon{width:36px;height:36px;border-radius:12px}}

/* buttons */
.hcta{height:54px;border-radius:999px;background:var(--h-text);color:var(--h-on);font:700 16px/1 var(--h-sans);display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;cursor:pointer;transition:transform .25s var(--h-spring),box-shadow .3s;box-shadow:0 10px 26px -12px rgba(0,0,0,.45)}
.hcta:hover{transform:translateY(-2px)}.hcta:active{transform:scale(.96)}
.hcta.ghost{background:var(--h-panel);color:var(--h-text);border:1px solid var(--h-line);box-shadow:none}

/* end-of-day card */
.hsum{background:var(--h-panel);border:1px solid var(--h-line);border-radius:28px;padding:22px 20px 18px;text-align:center;box-shadow:0 22px 50px -26px rgba(0,0,0,.45);animation:hUp .6s var(--h-ease) both}
@keyframes hUp{from{opacity:0;transform:translateY(14px)}}
.hsum[hidden]{display:none}
.hsum .eyebrow{font:500 11.5px/1 var(--h-sans);letter-spacing:.2em;text-transform:uppercase;color:var(--h-muted)}
.hsum .big{font:700 clamp(54px,15vw,76px)/1 var(--h-serif);letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin-top:10px}
.hsum .big.pop{animation:hPop .5s var(--h-spring)}
@keyframes hPop{40%{transform:scale(1.15)}}
.hsum .verdict{font:italic 500 21px/1.3 var(--h-serif);margin-top:6px;min-height:1.3em}
.hsum .sub{color:var(--h-muted);font-size:14px;margin-top:4px}
.hstats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0 14px}
.hstat{background:var(--h-bg);border:1px solid var(--h-line);border-radius:16px;padding:12px 6px 10px}
.hstat b{display:block;font:700 23px/1.1 var(--h-serif);font-variant-numeric:tabular-nums}
.hstat span{font-size:10.5px;color:var(--h-muted);text-transform:uppercase;letter-spacing:.12em}
.hbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hnext{color:var(--h-muted);text-align:center;font-size:13px;margin-top:12px}
.hnext b{color:var(--h-text);font-variant-numeric:tabular-nums}

/* toast + share fallback + confetti canvas */
.htoast{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));transform:translate(-50%,24px);opacity:0;background:var(--h-text);color:var(--h-on);padding:12px 22px;border-radius:99px;font:600 15px/1.25 var(--tg-font);transition:all .4s var(--h-spring);z-index:60;pointer-events:none;max-width:calc(100vw - 32px);text-align:center;box-shadow:0 14px 34px -14px rgba(0,0,0,.5)}
.htoast.show{opacity:1;transform:translate(-50%,0)}
.hshare{position:fixed;inset:0;display:grid;place-items:center;background:var(--tg-scrim);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:70;padding:16px}
.hshare>div{background:var(--h-panel);border:1px solid var(--h-line);border-radius:24px;padding:20px;width:min(420px,100%);box-shadow:var(--tg-shadow-sheet)}
.hshare textarea{width:100%;min-height:150px;background:var(--h-bg);color:var(--h-text);border:1px solid var(--h-line);border-radius:12px;padding:10px;font:14px/1.4 var(--h-sans);resize:vertical}
.hshare p{margin:0 0 10px;color:var(--h-muted);font-size:14px}
#hfx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:40}
@media (prefers-reduced-motion:reduce){.hsum,.hsum .big.pop{animation:none}.htoast{transition:none}}

/* end-card extras: where you rank today, and a link to the leaderboard */
.hrank{margin:12px 0 0;font-weight:700;font-size:14px;min-height:1.2em;color:var(--h-text)}
.hrank:empty{display:none}
.hlink{border:0;background:none;color:var(--h-muted);font:700 13.5px/1 var(--h-sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 6px 0;display:inline-block}
.hlink[hidden]{display:none}
.hlink:hover{color:var(--h-text)}
.hicons{flex-wrap:nowrap}
@media (max-width:420px){.hicons{gap:5px}.hicon{width:34px;height:34px;border-radius:11px}.hicon svg{width:17px;height:17px}}
/* with the Settings gear (house/theme.js) a header can hold seven icons: when they don't fit beside the logo
   (phones), the row wraps under it, right-aligned, instead of pushing the page sideways */
.hbar{flex-wrap:wrap;row-gap:6px}.hicons{margin-left:auto}
/* mobile pass: the icons wrap under the logo on phones anyway, so they can be full 40px tap targets
   (seven of them still fit a 350px screen; narrower ones keep the 34px above) */
@media (min-width:350px) and (max-width:420px){.hicons{gap:4px}.hicon{width:40px;height:40px;border-radius:12px}.hicon svg{width:19px;height:19px}}
