/* Guess the Player — builds on draft.css tokens (--bg, --surface, --ink, --muted, --accent, --good, --line) */
#g-app{max-width:760px;margin:0 auto;padding:28px 16px 40px;min-width:0}
.g-hero h1{font:800 clamp(40px,9vw,64px)/.95 Sora,system-ui,sans-serif;letter-spacing:-.03em;margin:0;text-transform:uppercase}
.g-hero h1 em{display:block;font-style:normal;color:var(--accent)}
.g-lead{margin:14px 0 18px;color:var(--muted);font-size:15px;max-width:52ch}
.g-tabs{display:inline-flex;padding:4px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.g-tabs button{min-height:42px;padding:0 18px;border-radius:10px;border:0;background:none;color:var(--muted);font:700 14px Sora,system-ui,sans-serif;cursor:pointer;transition:background .2s,color .2s}
.g-tabs button[aria-selected=true]{background:var(--accent);color:#1a1100}
.g-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.g-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0 0}
.g-stats div{padding:10px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.g-stats dt{font-size:11px;color:var(--muted);margin:0}
.g-stats dd{margin:2px 0 0;font:800 20px Sora,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.g-play{margin-top:22px}
.g-head{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(5,minmax(0,1fr));gap:6px;padding:0 0 6px;font:700 11px Sora,system-ui,sans-serif;color:var(--muted);text-align:center}
.g-head::before{content:"";}
.g-head span:first-child{grid-column:2}
.g-board{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.g-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,5fr);gap:6px;align-items:stretch}
.g-who{display:flex;align-items:center;gap:8px;min-width:0;padding:0 10px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:13px;line-height:1.2}
.g-who i{flex:none;width:12px;height:12px;border-radius:50%}
.g-who b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.g-who small{display:block;font-size:10px;color:var(--accent);white-space:nowrap}
.g-who.ok{border-color:var(--good)}
.g-who.near{border-color:var(--accent)}
.g-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.g-t{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px;padding:4px 2px;border-radius:10px;background:var(--surface-3,#232329);border:1px solid var(--line);color:var(--ink);text-align:center;position:relative;overflow:hidden}
.g-t b{font:800 13px/1.1 Sora,system-ui,sans-serif;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-t small{font-size:9.5px;opacity:.85}
.g-t em{font-style:normal;font:800 14px/1 Sora,system-ui,sans-serif;position:absolute;right:4px;top:2px;opacity:.95}
.g-t.ok{background:#1f7a49;border-color:#33C97A;color:#fff}
.g-t.near{background:#8a5d10;border-color:#F5A623;color:#fff}
.g-t.no{background:var(--surface-3,#232329)}
.blank .g-who{min-height:52px;opacity:.35}
.blank .g-t{opacity:.35;min-height:52px}
.g-row.fresh .g-t{animation:g-flip .55s both;animation-delay:calc(var(--i) * .22s)}
.g-row.fresh .g-who{animation:g-pop .35s both}
@keyframes g-flip{0%{transform:rotateX(90deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes g-pop{from{transform:translateY(6px);opacity:0}to{transform:none;opacity:1}}
.g-form{display:flex;gap:8px;margin-top:16px;position:sticky;bottom:10px;z-index:3}
.g-box{position:relative;flex:1;min-width:0}
.g-box input{width:100%;min-height:52px;padding:0 16px;border-radius:14px;border:1px solid var(--line-strong,rgba(244,239,232,.2));background:var(--surface);color:var(--ink);font:600 16px Manrope,system-ui,sans-serif;box-shadow:0 12px 30px -12px rgba(0,0,0,.7)}
.g-box input:focus{outline:2px solid var(--accent);outline-offset:1px}
.g-box ul{position:absolute;left:0;right:0;bottom:calc(100% + 6px);margin:0;padding:6px;list-style:none;border-radius:14px;background:#17171c;border:1px solid var(--line-strong,rgba(244,239,232,.2));box-shadow:0 18px 40px -12px rgba(0,0,0,.85);max-height:min(320px,50vh);overflow:auto}
.g-box li{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:10px;cursor:pointer}
.g-box li i:not(.g-logo-x){flex:none;width:12px;height:12px;border-radius:50%}
.g-box li b{font-size:14px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-box li small{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}
.g-box li.on,.g-box li:hover{background:rgba(245,166,35,.16)}
.g-box li.none{color:var(--muted);cursor:default}
.g-btn{min-height:52px;padding:0 22px;border-radius:14px;border:1px solid var(--accent);background:var(--accent);color:#1a1100;font:800 15px Sora,system-ui,sans-serif;cursor:pointer;transition:translate .2s,box-shadow .2s}
.g-btn:hover{translate:0 -1px;box-shadow:0 10px 24px -10px rgba(245,166,35,.8)}
.g-btn:active{translate:0 1px}
.g-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.g-btn.ghost{background:none;color:var(--ink);border-color:var(--line-strong,rgba(244,239,232,.2))}
.g-left{margin:10px 2px 0;font-size:13px;color:var(--muted)}
.g-hint{margin:10px 0 0;padding:10px 14px;border-radius:12px;background:rgba(245,166,35,.12);border:1px dashed var(--accent);font-size:14px}
.g-end{margin-top:18px;padding:18px;border-radius:18px;border:1px solid var(--line-strong,rgba(244,239,232,.2));background:radial-gradient(90% 140% at 0% 0%,color-mix(in srgb,var(--team,#444) 45%,transparent),transparent 70%),var(--surface)}
.g-end.win{border-color:var(--good)}
.g-end-h{margin:0 0 12px;font:800 20px Sora,system-ui,sans-serif}
.g-card{padding:14px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
.g-card-top{display:flex;align-items:center;gap:14px}
.g-card-top i{flex:none;width:26px;height:26px;border-radius:50%}
.g-card-top h2{margin:0;font:800 22px/1.1 Sora,system-ui,sans-serif}
.g-card-top p{margin:2px 0 0;color:var(--muted);font-size:13px}
.g-ovr{margin-left:auto;font:800 34px Sora,system-ui,sans-serif;color:var(--accent);font-variant-numeric:tabular-nums}
.g-card-meta{margin:10px 0 0;font-size:13px;color:var(--muted)}
.g-end-act{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.g-next{margin:0;font-size:13px;color:var(--muted)}
.g-next b{color:var(--ink);font-variant-numeric:tabular-nums}
#g-promo{margin-top:16px}
.g-how{margin-top:22px;padding:12px 16px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.g-how summary{cursor:pointer;font:700 14px Sora,system-ui,sans-serif;min-height:32px;display:flex;align-items:center}
.g-how ul{margin:10px 0 2px;padding-left:20px;color:var(--muted);font-size:14px}
.g-how li{margin:6px 0}
@media (max-width:560px){
  #g-app{padding:20px 12px 32px}
  .g-head{grid-template-columns:repeat(5,minmax(0,1fr))}
  .g-head span:first-child{grid-column:auto}
  .g-head::before{display:none}
  .g-row{grid-template-columns:minmax(0,1fr);gap:4px}
  .g-who{min-height:30px;padding:4px 10px}
  .g-t{min-height:48px}
  .g-t b{font-size:12px}
  .blank{display:none}
  .g-stats dd{font-size:18px}
  .g-end-h{font-size:18px}
}
@media (prefers-reduced-motion:reduce){.g-row.fresh .g-t,.g-row.fresh .g-who{animation:none}.g-btn{transition:none}}

/* GSAP effects (assets/fx/fx.js): when GSAP animates, the CSS fallbacks step aside */
.fx-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:9999}
.fx-p{position:absolute;left:0;top:0;display:block;will-change:transform}
.gs .g-row.fresh .g-t,.gs .g-row.fresh .g-who,.gs .t-slot.fresh,.gs .t-slot.fresh .t-n{animation:none}
.gs .g-hero h1 span{display:inline-block}
.gs .g-t{backface-visibility:hidden}
.t-lives i{transform-origin:50% 60%}

/* logos reals dels equips */
.g-logo{flex:none;width:22px;height:22px;object-fit:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
i.g-logo-x{display:grid;place-items:center;border-radius:50%;font:800 8px/1 Sora,system-ui,sans-serif;font-style:normal}
.g-logo-t{width:20px;height:20px}
.g-card-top .g-logo-big{width:44px;height:44px;border-radius:0}
.g-card-top i.g-logo-x{width:44px;height:44px;font-size:12px;border-radius:50%}
.g-who .g-logo{width:24px;height:24px}
#g-list li .g-logo,.g-list li .g-logo{width:22px;height:22px}
