.g-game{color:var(--ink);margin:1rem 0}
.g-game button{font:inherit;color:inherit}
.g-stages,.g-roundnav{display:flex;gap:.3rem;flex-wrap:wrap}
.g-stages{display:inline-flex;padding:4px;border:1px solid #d6dedb;border-radius:12px;background:#e9eeea}
.g-stages button,.g-roundnav button{padding:.55rem 1.1rem;border:0;background:transparent;border-radius:8px;font-weight:700}
.g-stages button[aria-pressed=true]{color:white;background:#163741}
.g-roundnav{padding-top:1.3rem}
.g-roundnav button{border:1px solid #c1cdca;font-size:.9rem}
.g-roundnav button[aria-pressed=true]{background:var(--lime);border-color:#a5c956}
.g-subhead{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.6rem 0 .35rem}
.g-subhead h3{font-size:clamp(1.45rem,3vw,2rem);letter-spacing:-.045em;margin:0}
.g-subhead>span{font-size:.87rem;font-weight:700;color:#425f62;white-space:nowrap}
.g-hint{margin:.25rem 0 1.1rem;color:var(--muted);line-height:1.5}
.g-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.g-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-width:0}
.g-cardhead{display:flex;gap:.5rem;align-items:center;justify-content:space-between;padding:.95rem 1.1rem;background:linear-gradient(110deg,#e9efeb,#f4f6f1);border-bottom:1px solid #d9e1dc}
.g-cardhead h3{font-size:1.24rem;letter-spacing:-.045em;margin:0}
.g-status,.g-cardhead small{font-size:.78rem;font-weight:650;color:#566868}
.g-status.is-done{color:#39653a}
.g-team{margin:0 1rem;display:flex;align-items:center;gap:.65rem;border-bottom:1px solid #e8ede9;min-height:3.1rem;font-weight:650}
.g-team .g-flag,.g-match .g-flag,.g-thirds .g-flag{font-size:1.25rem;line-height:1;font-weight:normal}
.g-cardfoot{min-height:2.85rem;display:flex;align-items:center;padding:.35rem 1rem;color:#526b64;font-size:.83rem}
.g-cardfoot button{border:0;border-radius:5px;padding:.42rem .65rem;color:#234b3c;background:#eff5eb;font-size:.875rem;font-weight:700}
.g-cardfoot button:hover,.g-thirds button:not(:disabled):hover,.g-match button:not(:disabled):hover{background:#e1efd7}
.g-thirds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
.g-thirds button{display:grid;gap:.4rem;text-align:left;padding:.75rem 1rem;background:#fff;border:1px solid #c7d3cd;border-radius:9px}
.g-thirds button>span{display:flex;align-items:center;gap:.6rem;font-weight:650}
.g-thirds small{color:#506866;font-size:.83rem}
.g-thirds .g-active,.g-match button[aria-pressed=true]{background:#e9f9c7;border-color:#84a856}
.g-game button:disabled{cursor:default;color:#64726d;background:#edf1ed}
.g-match{padding-bottom:.65rem}
.g-match button{width:calc(100% - 1.3rem);margin:.65rem .65rem 0;min-height:2.85rem;padding:.45rem .7rem;display:flex;gap:.55rem;align-items:center;text-align:left;background:#fff;border:1px solid #dce4de;border-radius:7px;font-weight:650}
.g-ring{display:inline-flex;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;border:1px solid #b7c7bf;border-radius:100%;margin-left:auto;font-size:.75rem}
.g-match button[aria-pressed=true] .g-ring{background:#284c35;color:white}
@media(max-width:900px){.g-grid,.g-thirds{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.g-grid{grid-template-columns:1fr}.g-subhead{align-items:baseline;gap:.4rem}.g-thirds{grid-template-columns:repeat(2,minmax(0,1fr))}.g-roundnav button{padding:.48rem .6rem}.g-team{min-height:3.2rem}}
.g-order{list-style:none;padding:0;margin:0}
.g-team{position:relative;gap:.55rem;user-select:none}
.g-rank{min-width:1.2rem;font-size:.88rem;color:#536965;font-variant-numeric:tabular-nums}
.g-team:has(.g-grip){cursor:grab}
.g-grip,.g-step{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:#516761!important;background:transparent;border:0;border-radius:5px}
.g-grip{width:1.8rem;height:2.9rem;cursor:grab;touch-action:none}
.g-grip i{width:12px;height:18px;background:radial-gradient(circle,#5e7770 1.45px,transparent 1.7px) 0 0 / 6px 6px}
.g-moves{display:flex;align-items:center;gap:2px;margin-left:auto}
.g-step{width:1.55rem;height:2.25rem}
.g-step i{width:7px;height:7px;border-top:1.8px solid;border-left:1.8px solid}
.g-up{transform:translateY(2px) rotate(45deg)}
.g-down{transform:translateY(-2px) rotate(225deg)}
.g-team button:disabled{color:#acbbb4!important;background:transparent}
.g-team button:not(:disabled):hover{background:#edf4e9}
.g-team.g-dragging{background:#eff7df;border-radius:5px;cursor:grabbing}
.g-before{box-shadow:inset 0 3px #427f3f}
.g-after{box-shadow:inset 0 -3px #427f3f}
.g-live{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.g-fixture{display:grid;gap:.28rem;padding:.8rem .8rem .15rem;font-size:.87rem;color:#536965;line-height:1.4}
.g-fixture strong{color:var(--ink);font-weight:650}
@media(max-width:390px){.g-team{margin:0 .7rem;gap:.35rem}.g-grip{width:1.65rem}}
