/* Reused from NCROQUIS/matjjangjangi@756e9ade1fd748154b02a642d05dc2bc083daa1d:jangi.css. */
.jangi-refills { display:flex;gap:2px;color:#927019;line-height:1; }
.jangi-refills svg { width:10px;height:12px; }
.jangi-refills [data-used] { opacity:.2; }
.jangi-refills[hidden] { display:none; }

.jangi-pass-notice { position:absolute;z-index:15;left:50%;top:43%;transform:translate(-50%,-50%);display:grid;place-items:center;margin:0;padding:8px 17px;max-width:90%;border:1px solid #e5cb85;border-radius:10px;background:#fff5d9f7;color:#274b32;font:800 18px/1.4 'Jangi Noto Sans KR',sans-serif;text-align:center;overflow-wrap:anywhere;box-shadow:0 5px 14px #18271140;pointer-events:none;animation:jangi-pass-arrive 140ms ease-out; }
.jangi-pass-notice[hidden] { display:none; }
@keyframes jangi-pass-arrive { from { opacity:0;transform:translate(-50%,calc(-50% + 6px)); } to { opacity:1;transform:translate(-50%,-50%); } }

/* The whole active card changes color; both fixed-scale time bars stay visible. */
.jangi-player-name { display:flex;align-items:baseline;gap:6px;min-width:0; }
.jangi-player-name>strong { min-width:0;margin:0; }
.jangi-player-rank { flex:none;font-size:11px;line-height:1.3;font-weight:700;white-space:nowrap; }
.jangi-material { flex:none;font-variant-numeric:tabular-nums;white-space:nowrap; }
.jangi-review-seat { display:flex;align-items:baseline;gap:6px;font-size:11px;line-height:1.3; }
.forest-ui .match[data-playing] { max-width:560px; }
.forest-ui .match[data-playing] .match-status {
  display:grid;grid-template-columns:44px minmax(0,1fr) 44px;min-height:44px;padding:0;gap:8px;
}
.forest-ui .match[data-playing] .match-status::before,
.forest-ui .match[data-playing] .match-status::after { display:none; }
.forest-ui .match[data-playing] .match-status h1 { font-size:12px;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere; }
.forest-ui .match[data-playing] .match-status>div { min-width:0; }
.forest-ui .jangi-header-button {
  display:grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid #cbb584;border-radius:12px;
  color:#25472f;background:linear-gradient(#fffbed,#eaddbd);box-shadow:0 2px 4px #001a0d40;
}
.forest-ui .jangi-header-button svg { width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.forest-ui #watch-back { position:static;width:44px;height:44px; }
.forest-ui .match-player {
  grid-template-columns:34px minmax(0,1fr) 74px;grid-template-rows:minmax(39px,auto) 6px;column-gap:9px;row-gap:8px;
  min-height:0;padding:10px 12px 9px;border-radius:16px;
  color:#24432d;background:linear-gradient(135deg,#fffbed,#f1e5cb);border-color:#d4bf92;box-shadow:0 2px 5px #00180d30;
}
.forest-ui .match-player[data-active="true"] {
  color:#fff9e8;background:linear-gradient(125deg,#2f6b3f,#184b2b);border-color:#edcf7c;box-shadow:0 0 0 1px #edcf7c,0 2px 8px #00180d45;
}
.forest-ui .match-player .match-avatar { width:34px;max-width:none; }
.forest-ui .match-player .match-identity { gap:4px;align-self:stretch;align-content:center; }
.forest-ui .match-player .match-identity strong { font-size:14px;line-height:1.2; }
.forest-ui .match-player .match-identity .seat { gap:5px;font-size:11px;line-height:1.2;color:#65705b; }
.forest-ui .match-player[data-active="true"] .seat { color:#f4f0da; }
.forest-ui .match-player .match-identity .stone { flex:none;width:17px;height:17px;font-size:14px; }
.forest-ui .match-player .match-profile-trigger:disabled { opacity:1; }
.forest-ui .match[data-playing] :is(#opponent-turn,#place-text) {
  display:inline-flex;align-items:center;gap:4px;min-width:0;margin-inline-start:2px;padding:2px 7px;border-radius:999px;
  font-size:11px;font-weight:700;line-height:1.3;background:#e7dfce;color:#66705c;white-space:normal;text-align:start;
}
.forest-ui .match-player[data-active="true"] :is(#opponent-turn,#place-text) { background:#f1d37e;color:#22472a; }
.forest-ui .match-player[data-active="true"] .jangi-turn-badge::before { content:'';flex:none;width:5px;height:5px;border-radius:50%;background:#2b6235; }
.forest-ui .jangi-player-time { display:grid;justify-items:end;align-content:center;gap:3px;min-width:0; }
.forest-ui #place[data-placement-state]:not(:disabled) { padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;cursor:default; }
.forest-ui #place:not(:disabled):hover { filter:none; }
.forest-ui .jangi-player-time .player-clock { font-size:24px;line-height:1;font-weight:800;letter-spacing:-.5px;color:#29462e; }
.forest-ui .match-player[data-active="true"] .player-clock { color:#fff3c3; }
.forest-ui .match-player[data-active="true"] .jangi-refills { color:#ecd37e; }
.forest-ui .jangi-player-time .player-clock:is([data-byoyomi],[data-urgent]) { color:#b43228;text-shadow:none; }
.forest-ui .match-player[data-active="true"] .player-clock:is([data-byoyomi],[data-urgent]) { color:#ffaf9e; }
.forest-ui .jangi-time-track { grid-column:1 / -1;width:100%;height:6px;overflow:hidden;border-radius:999px;background:#d4cdb8; }
.forest-ui .jangi-time-fill { display:block;height:100%;width:calc(var(--match-art-progress,0) * 1%);border-radius:inherit;background:linear-gradient(90deg,#b58e35,#e5c974); }
.forest-ui .match-player[data-active="true"] .jangi-time-track { background:#123a22; }
.forest-ui .match-player[data-active="true"] .jangi-time-fill { background:linear-gradient(90deg,#d0ac4f,#f1d783); }
.forest-ui .match-player[data-low] .jangi-time-fill { background:#cf5946; }
.forest-ui .match-player[data-active="true"][data-low] .jangi-time-fill { background:#ff9b83; }
.forest-ui .match-player[data-active="true"][data-low] .jangi-turn-badge { background:#ffcebc;color:#792b21; }
.forest-ui #place-state { margin:0;text-align:center;font-size:11px;font-weight:500;line-height:1.4;color:#f1e9c8;white-space:normal; }
.forest-ui .match[data-compact-board] .match-player { grid-template-columns:30px minmax(0,1fr) 67px;grid-template-rows:minmax(32px,auto) 6px;column-gap:8px;row-gap:4px;padding:5px 10px;border-radius:13px; }
.forest-ui .match[data-compact-board] .match-player .match-avatar { width:30px; }
.forest-ui .match[data-compact-board] .match-player .player-clock { font-size:22px; }
.forest-ui .match[data-compact-board] .jangi-refills svg { width:8px;height:10px; }
