/* House paper: the shared look for The Daily Menu (same family as Pourdle and the Dinner and Drinks app).
   Paper, ink, one persimmon primary. Menu lines, tickets, stamps. Animation only when the player causes it. */
@font-face{font-family:Archivo;src:url(/fonts/archivo.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
:root{color-scheme:light dark;--bg:#F2F1EC;--ink:#111;--card:#FBFAF7;--muted:#56544E;--line:rgba(17,17,17,.14);
  --acc:#E8501E;--accd:#CC4313;--acch:#B23A0F;--acct:#B93C0F;--ok:#2E7A3A;--bad:#B3261E;--gold:#7E5600;
  /* Station tiers: muted food tints used only as a narrow stub on a cream row, never as full colored rows */
  --lemon:#E6CF7A;--herb:#9DB083;--tomato:#D98A74;--berry:#9C86B8}
@media(prefers-color-scheme:dark){:root{--bg:#141413;--ink:#EEECE6;--card:#1C1C1A;--muted:#ACAAA3;--line:rgba(238,236,230,.16);
  --acct:#F2733F;--ok:#7CC888;--bad:#F08A82;--gold:#E7B84A}}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.5 Archivo,system-ui,sans-serif;overflow-x:clip;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit}
a{color:inherit;text-underline-offset:3px}
.wrap{max-width:560px;margin:0 auto;padding:10px 16px 28px}
h1{font-stretch:125%;font-weight:850;font-size:28px;line-height:1.05;letter-spacing:-.02em;margin:0}
h2{font-stretch:112%;font-weight:800;font-size:22px;line-height:1.2;margin:18px 0 6px}
p{margin:0 0 10px}
.muted{color:var(--muted)}
.small{font-size:14px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top bar: back to the menu, the course name, help and stats */
.bar{display:flex;align-items:center;gap:6px;min-height:52px;margin:0 0 8px}
.bar.wrap{padding-bottom:0;margin-bottom:4px}
.bar .title{flex:1;min-width:0;font-stretch:125%;font-weight:850;font-size:22px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;text-decoration:none;cursor:pointer;flex:none}
.icon:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border:1.5px solid var(--ink);border-radius:12px;background:var(--card);font-weight:650;font-size:16px;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn:hover{background:color-mix(in srgb,var(--ink) 7%,var(--card))}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--accd);border-color:var(--accd);color:#fff}
.btn.primary:hover{background:var(--acch);border-color:var(--acch)}
.btn.quiet{border-color:transparent;background:transparent;text-decoration:underline;padding:0 8px}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row .btn{flex:1 1 0}
:focus-visible{outline:3px solid var(--acc);outline-offset:2px}

/* ticket: a stub in the dish's color, a tear line with notches, then the body */
.ticket{border:1.5px solid var(--ink);border-radius:16px;background:var(--card);overflow:hidden;margin:0 0 14px}
.stub{display:flex;justify-content:space-between;gap:12px;padding:9px 16px;font-size:14px;font-weight:700;background:var(--ink);color:var(--bg)}
.tear{position:relative;height:0;border-top:2px dashed var(--ink);margin:0 14px}
.tear::before,.tear::after{content:"";position:absolute;top:-10px;width:18px;height:18px;border-radius:50%;background:var(--bg);border:1.5px solid var(--ink)}
.tear::before{left:-25px}.tear::after{right:-25px}
.ticket .body{padding:12px 16px 14px}

/* stamp: tilted, double-ruled. Animates only right after the player finishes. */
.stamp{display:inline-block;border:2px solid currentColor;border-radius:9px;padding:2px;color:var(--acct);transform:rotate(-5deg)}
.stamp>span{display:block;border:1px solid currentColor;border-radius:6px;padding:2px 12px;font-stretch:125%;font-weight:800;font-size:18px;line-height:1.3;white-space:nowrap}
.stamp.lost{color:var(--ink)}
.stamp.gold{color:var(--gold)}
.stamp.sm>span{font-size:14px;padding:1px 8px}
.stamp.thunk{animation:thunk .22s cubic-bezier(.2,.8,.3,1) both}
@keyframes thunk{from{opacity:0;transform:rotate(-5deg) scale(1.6)}to{opacity:1;transform:rotate(-5deg) scale(1)}}

/* menu lines: name, dotted leader, the number that matters */
.menu{list-style:none;padding:0;margin:0}
.menu li{border-bottom:1px solid var(--line)}
.menu a,.menu .line{display:flex;align-items:center;gap:8px;min-height:56px;padding:8px 0;text-decoration:none}
.lead{flex:1;min-width:14px;border-bottom:2px dotted var(--muted);margin:0 4px;align-self:flex-end;margin-bottom:12px}
.rule{display:flex;align-items:center;gap:10px;margin:22px 0 6px;font-size:16px;font-stretch:125%;font-weight:800}
.rule::before,.rule::after{content:"";flex:1;border-top:1.5px solid var(--ink)}

/* sheet (how to play, stats) */
.sheet-wrap{position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:flex-end;justify-content:center;z-index:50}
.sheet{width:100%;max-width:560px;max-height:88vh;overflow:auto;background:var(--bg);border:1.5px solid var(--ink);border-bottom:0;border-radius:20px 20px 0 0;padding:20px 18px 18px}
.sheet h2{margin-top:0}
.sheet-close{width:100%;margin-top:14px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center;margin:8px 0 14px}
.stats b{display:block;font-size:28px;font-stretch:125%;font-weight:850;line-height:1.1}
.stats span{font-size:13px;color:var(--muted)}
.bars{display:grid;gap:6px}
.bars div{display:grid;grid-template-columns:44px 1fr;gap:8px;align-items:center;font-size:14px}
.bars i{display:block;height:22px;min-width:22px;border-radius:6px;background:var(--ink);color:var(--bg);font-style:normal;font-weight:700;font-size:13px;padding:0 6px;line-height:22px;text-align:right}

/* toast */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:var(--bg);border-radius:12px;padding:10px 16px;font-weight:650;max-width:min(92vw,460px);text-align:center;transition:opacity .15s,transform .15s;z-index:60}
.toast.on{opacity:1;transform:translate(-50%,0)}

.note{font-size:14px;color:var(--muted);border:1.5px dashed var(--line);border-radius:12px;padding:8px 12px;margin:0 0 12px}
footer{margin-top:28px;font-size:14px;color:var(--muted)}
footer a{display:inline-flex;align-items:center;min-height:44px}
@media(min-width:480px){h1{font-size:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
