.ttq{--ink:#1a110b;--wood:#3b2616;--wood2:#4a301b;--brass:#d9a441;--brass2:#8a6420;--parch:#f1e1bd;--ox:#a63a33;--good:#9ccf5a;color:var(--parch);font-family:Georgia,"Times New Roman",serif;-webkit-user-select:none;user-select:none;padding-bottom:env(safe-area-inset-bottom)}
.ttq h1{font-size:1.05rem;letter-spacing:.04em;margin:0 0 .5rem;color:#2a1a10}
.ttq-hud{display:flex;align-items:center;gap:.4rem;background:var(--ink);border:3px solid var(--brass2);border-bottom:0;padding:.35rem .5rem;border-radius:12px 12px 0 0;min-height:52px}
.ttq-hud .meta{flex:1;min-width:0}
.ttq-hud .row1{display:flex;align-items:baseline;gap:.6rem;font-weight:700}
#ttq-night{font-size:1rem;color:var(--parch)}
#ttq-coins{color:var(--brass);font-size:1.05rem}
#ttq-coins:after{content:" coins";font-size:.7rem;color:var(--parch);opacity:.7}
#ttq-combo{font-size:.78rem;color:var(--good)}
.ttq-track{height:6px;background:#000;border-radius:3px;margin-top:5px;overflow:hidden}
#ttq-bar{display:block;height:100%;width:0;background:var(--brass);transition:width .25s}
#ttq-walk{display:flex;gap:4px;margin-right:.2rem}
#ttq-walk i{width:14px;height:14px;border-radius:50%;border:2px solid var(--parch);background:transparent}
#ttq-walk i.lost{background:var(--ox);border-color:var(--ox)}
.ttq-hud button,.ttq .btn{font:inherit;cursor:pointer;touch-action:manipulation}
.ttq-hud button{min-height:44px;min-width:44px;padding:0 .6rem;background:var(--wood2);color:var(--parch);border:2px solid var(--brass2);border-radius:8px;font-size:.78rem;font-weight:700;box-shadow:2px 2px 0 #000}
.ttq-hud button:active{transform:translate(2px,2px);box-shadow:none}
#ttq-stage{position:relative;width:100%;border:3px solid var(--brass2);border-top:0;border-radius:0 0 12px 12px;overflow:hidden;background:#2c1b10;touch-action:none}
#ttq-canvas{display:block;width:100%;touch-action:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;cursor:grab}
#ttq-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(18,10,5,.8);padding:10px;touch-action:pan-y}
#ttq-ov[hidden]{display:none}
.ttq .panel{width:100%;max-width:340px;max-height:100%;display:flex;flex-direction:column;gap:.55rem;background:var(--wood);border:3px solid var(--brass);box-shadow:5px 5px 0 #000;border-radius:6px;padding:.9rem;text-align:center;overflow:auto}
.ttq .panel.wide{overflow:hidden}
.ttq h2{margin:0;font-size:1.35rem;color:var(--parch)}
.ttq h3{margin:.6rem 0 .2rem;font-size:.95rem;color:var(--brass);text-align:left}
.ttq .logo{font-size:2.1rem;line-height:1;color:var(--brass);text-transform:uppercase;letter-spacing:.06em;text-shadow:3px 3px 0 #000}
.ttq .sub{margin:0;color:var(--parch);opacity:.85;font-size:.9rem}
.ttq .fine{margin:0;font-size:.74rem;opacity:.7;line-height:1.35}
.ttq .btn{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;padding:.4rem .8rem;border:3px solid var(--ink);border-radius:8px;background:var(--parch);color:var(--ink);font-weight:800;font-size:.95rem;box-shadow:3px 3px 0 #000;text-decoration:none}
.ttq .btn small{font-size:.7rem;font-weight:600;opacity:.75}
.ttq .btn.gold{background:var(--brass)}
.ttq .btn.big{min-height:60px;font-size:1.15rem}
.ttq .btn:active{transform:translate(3px,3px);box-shadow:none}
.ttq .btn:focus-visible,.ttq-hud button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ttq .btn.sm{min-height:44px;flex:1;padding:.2rem .3rem;font-size:.78rem;box-shadow:2px 2px 0 #000}
.ttq .btn.off{opacity:.55}
.ttq .btn.max{background:#6b5a3a;color:var(--parch);box-shadow:none}
.ttq .row{display:flex;gap:.5rem}.ttq .row .btn{flex:1}
.ttq .stars{display:flex;justify-content:center;gap:.4rem}
.ttq .st{width:38px;height:36px;background:#000;opacity:.5;clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%)}
.ttq .st.on{background:var(--brass);opacity:1}
.ttq .stats{list-style:none;margin:0;padding:0;text-align:left;font-size:.9rem}
.ttq .stats li{display:flex;justify-content:space-between;padding:.22rem 0;border-bottom:1px dashed rgba(241,225,189,.25)}
.ttq .stats .tot{font-size:1.1rem;color:var(--brass);border-bottom:0}
.ttq .top{display:flex;justify-content:space-between;align-items:center}
.ttq .coins{color:var(--brass)}
.ttq .scroll{overflow-y:auto;overscroll-behavior:contain;text-align:left;flex:1;min-height:0;max-height:48vh;-webkit-overflow-scrolling:touch;padding-right:2px}
.ttq .srow{display:flex;gap:.4rem;align-items:center;margin:.35rem 0}
.ttq .sn{flex:0 0 74px;font-size:.85rem;font-weight:700;line-height:1.1}
.ttq .sn small{display:block;font-size:.66rem;color:var(--brass);font-weight:600}
.ttq .regs{list-style:none;margin:0;padding:0;font-size:.78rem;line-height:1.5}
.ttq .card{margin-top:.6rem;padding:.6rem;border:2px solid var(--brass);border-radius:6px;background:rgba(0,0,0,.25);display:flex;flex-direction:column;gap:.4rem}
.ttq .card.dim{border-color:var(--brass2)}
.ttq .card p{margin:0;font-size:.78rem}
.ttq .mini{height:8px;background:#000;border-radius:4px;overflow:hidden}.ttq .mini i{display:block;height:100%;background:var(--brass)}
#ttq-hint{margin:.5rem 0 0;min-height:2.6em;font-size:.88rem;line-height:1.3;color:#2a1a10;font-weight:700}
.ttq-how{margin-top:1rem;font-size:.9rem;line-height:1.5;color:#2a1a10}
.ttq-how h2{font-size:1rem;margin:.2rem 0}
.ttq-how li{margin:.25rem 0}
.ttq .chips{display:flex;justify-content:center;gap:.35rem}
.ttq .chip{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:40px;padding:.2rem .3rem;border:2px solid var(--brass2);border-radius:6px;background:rgba(0,0,0,.3);font-size:.78rem}
.ttq .chip.cur{border-color:var(--brass);background:rgba(217,164,65,.18)}
.ttq .chip i{display:block;width:26px;height:6px;border-radius:3px;background:#000}
.ttq .chip i.s1{background:linear-gradient(90deg,var(--brass) 34%,#000 34%)}
.ttq .chip i.s2{background:linear-gradient(90deg,var(--brass) 67%,#000 67%)}
.ttq .chip i.s3{background:var(--brass)}
.ttq .steps{list-style:none;margin:0;padding:0;text-align:left;display:flex;flex-direction:column;gap:.5rem;font-size:.95rem;line-height:1.3}
.ttq .steps b{display:inline-block;width:1.5em;height:1.5em;line-height:1.5em;text-align:center;border-radius:50%;background:var(--brass);color:var(--ink);margin-right:.4rem}
.ttq .goal{color:var(--brass);opacity:1}
.ttq .panel{animation:ttqpop .22s ease-out;background:linear-gradient(180deg,#4a301b,var(--wood))}
.ttq .logo{animation:ttqglow 3s ease-in-out infinite alternate}
.ttq .pop{animation:ttqpop .5s ease-out}
.ttq .stars.pop .st.on{animation:ttqstar .5s ease-out backwards}
.ttq .stars.pop .st.on:nth-child(2){animation-delay:.15s}.ttq .stars.pop .st.on:nth-child(3){animation-delay:.3s}
@keyframes ttqpop{from{transform:scale(.92);opacity:0}to{transform:none;opacity:1}}
@keyframes ttqglow{from{text-shadow:3px 3px 0 #000,0 0 0 rgba(217,164,65,0)}to{text-shadow:3px 3px 0 #000,0 0 18px rgba(217,164,65,.55)}}
@keyframes ttqstar{from{transform:scale(0) rotate(-40deg)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.ttq *{animation:none!important;transition:none!important}}
@media (max-width:360px){.ttq .logo{font-size:1.8rem}.ttq .sn{flex-basis:62px}}

/* Full screen (shell immersive / native): the tavern fills the stage under the dock. */
html.pip-immersive .game-wrap.pip-stage,html.pip-native .game-wrap.pip-stage,.game-wrap.pip-stage:fullscreen{display:flex;flex-direction:column;padding:0;overflow:hidden}
html.pip-immersive .ttq,html.pip-native .ttq{flex:1;min-height:0;display:flex;flex-direction:column;padding:0}
html.pip-immersive .ttq h1,html.pip-immersive .ttq-how,html.pip-immersive .hub-bar,html.pip-immersive .playyard-ad,html.pip-immersive .below-content,html.pip-immersive .bottom-ad-section,html.pip-immersive .ad-well,
html.pip-native .ttq h1,html.pip-native .ttq-how,html.pip-native .hub-bar,html.pip-native .playyard-ad,html.pip-native .below-content,html.pip-native .bottom-ad-section,html.pip-native .ad-well{display:none}
html.pip-immersive .ttq-hud,html.pip-native .ttq-hud{flex:0 0 auto;border-radius:0;border-width:0 0 3px}
html.pip-immersive #ttq-stage,html.pip-native #ttq-stage{flex:1;min-height:0;border:0;border-radius:0}
html.pip-immersive #ttq-canvas,html.pip-native #ttq-canvas{position:absolute;left:0;top:0}
html.pip-immersive #ttq-hint,html.pip-native #ttq-hint{flex:0 0 auto;margin:0;min-height:0;padding:.3rem .6rem calc(.3rem + env(safe-area-inset-bottom));font-size:.8rem;color:var(--parch);background:var(--ink)}
html.pip-immersive .ttq .scroll,html.pip-native .ttq .scroll{max-height:none}
@media (orientation:landscape) and (max-height:520px){
  html.pip-immersive .ttq-hud,html.pip-native .ttq-hud{min-height:48px;padding:.2rem .5rem}
  html.pip-immersive #ttq-hint,html.pip-native #ttq-hint{display:none}
  html.pip-immersive .ttq .panel,html.pip-native .ttq .panel{max-width:min(520px,92%);padding:.6rem}
}
