.sgcwtg{max-width:980px;margin:0 auto;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18331d}
.sgcwtg *{box-sizing:border-box}
.sgcwtg[hidden],.sgcwtg [hidden]{display:none!important}
.sgcwtg__card,.sgcwtg__play{background:#fff;border:1px solid #d7e6d8;border-radius:18px;box-shadow:0 10px 30px rgba(15,62,25,.12);overflow:hidden}
.sgcwtg__card{padding:22px}
.sgcwtg__hero{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,#0d6d29,#16863a);color:#fff;margin:-22px -22px 20px;padding:17px 22px}
.sgcwtg__hero h2{margin:0 0 3px;font-size:27px;line-height:1.1;color:#fff}
.sgcwtg__hero p{margin:0;opacity:.94;font-weight:650}
.sgcwtg__logo{width:72px;height:72px;object-fit:contain;border-radius:50%;background:#fff;padding:4px;box-shadow:0 3px 14px rgba(0,0,0,.18)}
.sgcwtg__logo--finish{width:86px;height:86px;margin:0 auto 8px;display:block}
.sgcwtg__rules{background:#f3f8f3;border-left:5px solid #16863a;padding:14px 16px;border-radius:10px;margin-bottom:18px;line-height:1.5}
.sgcwtg__label{font-weight:800;display:block;margin-bottom:7px}
.sgcwtg__startrow{display:flex;gap:10px;align-items:stretch}
.sgcwtg__startrow input{flex:1;min-width:0;border:2px solid #c6d9c8;border-radius:11px;padding:12px 14px;font-size:17px;outline:none}
.sgcwtg__startrow input:focus{border-color:#16863a;box-shadow:0 0 0 3px rgba(22,134,58,.12)}
.sgcwtg__button{border:0;border-radius:11px;background:#167a2f;color:#fff;font-weight:850;padding:12px 20px;font-size:16px;cursor:pointer;box-shadow:0 4px 10px rgba(15,96,38,.18)}
.sgcwtg__button:hover{filter:brightness(1.05)}
.sgcwtg__button:disabled{opacity:.55;cursor:default}
.sgcwtg__message{min-height:22px;color:#a12820;font-weight:700}
.sgcwtg__leader{margin-top:20px;border:1px solid #dce8dd;border-radius:13px;overflow:hidden}
.sgcwtg__leaderhead{display:flex;justify-content:space-between;align-items:center;background:#f4f8f4;padding:10px 13px}
.sgcwtg__leaderhead h3{margin:0;font-size:18px}
.sgcwtg__leaderhead button{border:0;background:transparent;color:#167a2f;font-weight:800;cursor:pointer}
.sgcwtg table{width:100%;border-collapse:collapse}
.sgcwtg th,.sgcwtg td{padding:9px 10px;border-top:1px solid #e5eee6;text-align:left}
.sgcwtg th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#52705a}
.sgcwtg td:nth-child(1),.sgcwtg td:nth-child(3),.sgcwtg td:nth-child(4),.sgcwtg th:nth-child(1),.sgcwtg th:nth-child(3),.sgcwtg th:nth-child(4){text-align:center}
.sgcwtg__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px;background:#0f6f2c}
.sgcwtg__stats>div{background:rgba(255,255,255,.12);border-radius:10px;padding:7px 10px;color:#fff;text-align:center}
.sgcwtg__stats span{display:block;font-size:11px;text-transform:uppercase;font-weight:800;opacity:.85}
.sgcwtg__stats strong{display:block;font-size:19px;line-height:1.15}
.sgcwtg__canvaswrap{position:relative;background:#1a6f2a;overflow:hidden}
.sgcwtg canvas{display:block;width:100%;height:auto;touch-action:none;user-select:none;cursor:crosshair}
.sgcwtg__overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:260px;max-width:88%;padding:16px 22px;border-radius:14px;background:rgba(12,48,19,.92);color:#fff;text-align:center;font-weight:850;box-shadow:0 10px 30px rgba(0,0,0,.3);pointer-events:none}
.sgcwtg__overlay strong{display:block;font-size:28px;color:#ffd95b;margin-bottom:3px}
.sgcwtg__hint{margin:0;padding:10px 14px;background:#f6faf6;text-align:center;font-weight:750;color:#35593b}
.sgcwtg__finish{text-align:center}
.sgcwtg__finish h2{margin:4px 0 8px}
.sgcwtg__result{display:flex;justify-content:center;align-items:baseline;gap:8px;margin:8px 0}
.sgcwtg__result strong{font-size:48px;color:#167a2f;line-height:1}
.sgcwtg__result span{font-weight:800}
@media(max-width:680px){.sgcwtg__card{padding:14px}.sgcwtg__hero{margin:-14px -14px 15px;padding:14px}.sgcwtg__hero h2{font-size:21px}.sgcwtg__logo{width:58px;height:58px}.sgcwtg__startrow{flex-direction:column}.sgcwtg__stats{grid-template-columns:repeat(2,1fr)}.sgcwtg th,.sgcwtg td{padding:8px 5px;font-size:13px}}
