/* Kaissa Grand Prix Manager — refined public identity */
.kgpm{
  --kg-green:#087447;--kg-green-dark:#064d32;--kg-ink:#17231d;
  --kg-muted:#68766e;--kg-line:#e4ebe6;--kg-soft:#f4f8f5;
  color:var(--kg-ink);font-family:inherit;max-width:1180px;
  margin:28px auto 44px;padding:0 12px
}
.kgpm *{box-sizing:border-box}
.kgpm-hero{
  position:relative;isolation:isolate;overflow:hidden;text-align:center;
  padding:34px clamp(20px,4vw,52px) 38px;border-radius:22px;
  color:#fff;background:
    radial-gradient(ellipse at 82% 0%,rgba(10,126,78,.36),transparent 43%),
    radial-gradient(ellipse at 0% 100%,rgba(15,91,57,.22),transparent 45%),
    linear-gradient(118deg,#101a14 0%,#12251b 54%,#063d2a 100%);
  box-shadow:0 18px 45px rgba(12,43,27,.13)
}
.kgpm-hero:after{
  content:"";position:absolute;z-index:-1;inset:0;opacity:.13;
  background-image:linear-gradient(45deg,rgba(255,255,255,.07) 25%,transparent 25%,transparent 75%,rgba(255,255,255,.07) 75%);
  background-size:34px 34px;mask-image:linear-gradient(90deg,transparent,#000 75%)
}
.kgpm-logos{display:flex;align-items:center;justify-content:center;gap:16px;margin:0 auto 24px}
.kgpm-logos img{display:block;width:auto;height:auto;max-width:190px;max-height:58px;object-fit:contain}
.kgpm-logos img:first-child{padding:4px 9px}
.kgpm-logos img:last-child{background:#f5f6f4;border-radius:8px;padding:7px 12px;max-width:188px;max-height:52px}
.kgpm-x{display:grid;place-items:center;width:25px;height:25px;border:1px solid rgba(255,255,255,.25);border-radius:50%;color:#d2ded6;font-size:13px;font-weight:700}
.kgpm-kicker{color:#a9d4ba;letter-spacing:.2em;font-size:11px;font-weight:800;margin:0 0 10px}
.kgpm-hero h2{color:#fff;font-size:clamp(29px,4vw,46px);line-height:1.08;letter-spacing:-.035em;margin:0 auto;max-width:850px;font-weight:800}
.kgpm-sub{color:#d0ded5;margin:13px 0 0;font-size:15px;font-weight:500}
.kgpm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 18px}
.kgpm-stats>div{position:relative;display:flex;align-items:center;justify-content:center;gap:13px;
  background:linear-gradient(145deg,#fff,#f7faf8);border:1px solid #e1eae4;border-radius:15px;
  padding:17px 20px;text-align:left;min-height:78px;box-shadow:0 5px 18px rgba(14,49,30,.035)}
.kgpm-stats strong{display:block;color:var(--kg-green);font-size:29px;line-height:1;letter-spacing:-.04em}
.kgpm-stats span{display:block;color:#66756b;font-size:12px;line-height:1.3;margin-top:0;font-weight:600}
.kgpm-panel{background:#fff;border:1px solid var(--kg-line);border-radius:17px;padding:26px;margin:16px 0;box-shadow:0 7px 26px rgba(12,35,20,.035)}
.kgpm-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:17px;border-bottom:1px solid #edf1ee}
.kgpm-section-head small{font-size:10px;letter-spacing:.17em;color:var(--kg-green);font-weight:800}
.kgpm-panel h3{font-size:21px;line-height:1.25;margin:5px 0 0;color:#17231b;letter-spacing:-.02em}
.kgpm-pill{background:#e9f4ed;color:var(--kg-green-dark);border:1px solid #d8e9de;border-radius:30px;padding:7px 12px;font-size:10px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.kgpm-empty{text-align:center;padding:46px 12px 38px}
.kgpm-chess{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#eaf4ed;color:var(--kg-green);font-size:29px;margin:0 auto 14px}
.kgpm-empty strong{display:block;font-size:18px;letter-spacing:-.01em}
.kgpm-empty p{color:var(--kg-muted);max-width:460px;margin:8px auto 0;font-size:14px;line-height:1.55}
.kgpm-table-wrap{overflow-x:auto}
.kgpm-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;margin-top:14px}
.kgpm-table th{background:#f3f7f4;color:#627067;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:800;padding:12px 14px;text-align:left}
.kgpm-table th:first-child{border-radius:8px 0 0 8px}.kgpm-table th:last-child{border-radius:0 8px 8px 0}
.kgpm-table td{padding:13px 14px;border-bottom:1px solid #edf1ee;color:#27352c}
.kgpm-table tbody tr:hover{background:#f8fbf9}
.kgpm-table td strong{color:var(--kg-green);font-size:15px}
.kgpm-rulegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.kgpm-rulegrid>div{background:#f5f8f6;border:1px solid #e8efea;border-radius:11px;padding:15px}
.kgpm-rulegrid strong{display:block;color:var(--kg-green);font-size:20px}
.kgpm-rulegrid span{display:block;color:#657168;font-size:12px;margin-top:4px}
.kgpm-rules>p{font-size:13px;color:#657168;line-height:1.7;margin:16px 0 0}
.kgpm-points-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.kgpm-point{display:flex;justify-content:space-between;gap:6px;align-items:center;background:#f7faf8;border:1px solid #e7eee9;border-radius:9px;padding:10px 12px;font-size:12px}
.kgpm-point span{color:#536157}.kgpm-point strong{color:var(--kg-green);white-space:nowrap}
.kgpm-rules h4{margin:20px 0 8px;font-size:15px}
.kgpm-footer{display:flex;justify-content:space-between;gap:12px;color:#829087;font-size:11px;padding:12px 5px}
.kgpm a{color:var(--kg-green);text-decoration:none;font-weight:650}
.kgpm a:hover{color:#034c30;text-decoration:underline}
@media(max-width:700px){
 .kgpm{margin:16px auto 30px;padding:0 8px}
 .kgpm-hero{padding:27px 17px 30px;border-radius:17px}
 .kgpm-logos{gap:9px;margin-bottom:21px}
 .kgpm-logos img{max-width:39%;max-height:44px}
 .kgpm-logos img:last-child{max-width:39%;max-height:41px;padding:6px 8px}
 .kgpm-x{width:21px;height:21px;font-size:11px}
 .kgpm-kicker{font-size:10px}
 .kgpm-hero h2{font-size:clamp(27px,7vw,36px)}
 .kgpm-sub{font-size:13px}
 .kgpm-stats{gap:7px;margin:12px 0}
 .kgpm-stats>div{display:block;text-align:center;padding:13px 5px;min-height:72px}
 .kgpm-stats strong{font-size:23px;margin-bottom:5px}
 .kgpm-stats span{font-size:10px}
 .kgpm-panel{padding:17px 14px;border-radius:14px}
 .kgpm-panel h3{font-size:19px}
 .kgpm-table{font-size:12px}.kgpm-table th,.kgpm-table td{padding:10px 9px}
 .kgpm-rulegrid{gap:7px}.kgpm-rulegrid>div{padding:11px 8px}
 .kgpm-points-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kgpm-footer{flex-direction:column;text-align:center}
}

/* Season portal extensions */
.kgpm-calendar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.kgpm-calendar>div{padding:11px 12px;background:#f4f8f5;border:1px solid #e4ece6;border-radius:9px;text-align:center;font-size:13px;font-weight:700;color:#176344}
.kgpm-prize-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
.kgpm-prize-columns>div{background:#f5f8f6;border:1px solid #e5ede7;border-radius:12px;padding:17px}
.kgpm-prize-columns strong{color:#086b43}.kgpm-prize-columns p{font-size:13px;line-height:1.6;color:#5f6d64;margin:8px 0 0}
.kgpm-replay{display:grid;grid-template-columns:minmax(260px,1.1fr) minmax(220px,.9fr);gap:18px;align-items:start}
.kgpm-board{display:grid;grid-template-columns:repeat(8,1fr);width:100%;aspect-ratio:1;border:5px solid #1c2b22;border-radius:8px;overflow:hidden}
.kgpm-square{display:grid;place-items:center;aspect-ratio:1;font-size:clamp(22px,4vw,46px);line-height:1}
.kgpm-square.light{background:#f0d9b5}.kgpm-square.dark{background:#b58863}
.kgpm-square .white-piece{color:#fff;text-shadow:0 1px 2px #222,1px 1px 1px #222}
.kgpm-square .black-piece{color:#171717;text-shadow:0 1px 1px #fff}
.kgpm-moves{max-height:410px;overflow:auto;background:#f7faf8;border:1px solid #e5ece7;border-radius:10px;padding:10px;display:flex;flex-wrap:wrap;align-content:flex-start;gap:3px}
.kgpm-move-row{display:inline-flex;align-items:center;gap:3px;margin:2px 4px}
.kgpm-move-no{color:#829087;font-size:11px;margin-right:3px}
.kgpm-moves button,.kgpm-replay-controls button{border:1px solid #dfe8e2;background:#fff;color:#24352b;border-radius:6px;padding:5px 8px;cursor:pointer}
.kgpm-moves button.active{background:#087447;color:white;border-color:#087447}
.kgpm-replay-controls{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:12px}
.kgpm-ply{font-size:12px;color:#68766e;font-weight:700}
@media(max-width:700px){.kgpm-calendar{grid-template-columns:repeat(2,1fr)}.kgpm-prize-columns,.kgpm-replay{grid-template-columns:1fr}.kgpm-moves{max-height:240px}}
