/* ChessGods — THRONE DUEL (King vs King) styles.
   Everything namespaced kv- . Palette rides style.css :root vars. */
.kvwrap { max-width: 1280px; margin: 0 auto; padding: 10px 14px 40px; }
.kvstage { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; height: 700px; overflow: hidden; }
.kvscr { display: none; position: absolute; inset: 0; }
.kvscr.on { display: block; }

/* tab strip */
.kvtabs { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.kvtab { background: transparent; border: 1px solid transparent; color: var(--sec); padding: 7px 14px; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: 1px; border-radius: 9px; }
.kvtab:hover { color: var(--text); }
.kvtab.on { background: var(--panel); border-color: var(--line); color: var(--gold); }
.kvtab small { display: block; font-weight: 400; color: var(--muted); font-size: 10px; letter-spacing: .4px; }

/* shared */
.kv-seal { background: linear-gradient(180deg, #f0cf96, #c89a55); color: #241708; border: none; border-radius: 999px; font-weight: 800; letter-spacing: 1.5px; cursor: pointer; padding: 12px 30px; font-size: 15px; box-shadow: 0 0 18px rgba(226,178,100,.35); }
.kv-seal:disabled { filter: grayscale(.8); opacity: .5; cursor: default; }
.kv-seal.big { font-size: 18px; padding: 15px 44px; }
.kv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); font-size: 12px; color: var(--sec); }
.kv-sec { margin: 0 0 8px; font-size: 11px; letter-spacing: 2.5px; color: var(--muted); font-weight: 700; }
.kv-ebadge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(20,14,8,.9); border: 1.5px solid var(--kec, #888); box-shadow: 0 0 8px var(--kec, #888); font-size: 12px; }
.kv-note { color: var(--muted); font-size: 12px; }
.kv-abtn { background: transparent; border: 1px solid var(--line); color: var(--sec); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 12.5px; }
.kv-abtn:hover { color: var(--text); border-color: var(--gold); }
.kv-cap { margin-top: 10px; color: var(--sec); font-size: 13px; line-height: 1.55; }
.kv-cap b { color: var(--gold); }
.kv-serif { font-family: Georgia, "Times New Roman", serif; }

/* ============ THRONE HALL — king + folded-in crucible forge ============ */
#kv-hub { padding: 12px 16px; display: none; flex-direction: column; gap: 8px; }
#kv-hub.on { display: flex; }
.t-mythic { --tc: #ff7a5c; } .t-legendary { --tc: #ffd76a; } .t-epic { --tc: #a97fe8; }
.t-rare { --tc: #4aa3ff; } .t-common { --tc: #b8bcc4; }
/* hero band: portrait · identity · form ribbon */
.kv-hero { position: relative; height: 188px; flex: none; display: grid; grid-template-columns: 200px 1fr 418px; align-items: center;
  background: linear-gradient(135deg, #2e2213 0%, #241b10 55%, #1d150c 100%); border: 1px solid var(--line);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.kv-hport { position: relative; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 62%, rgba(226,178,100,.10) 0%, rgba(0,0,0,0) 60%); }
.kv-hport .kv-glyph { font-family: Georgia, serif; font-size: 96px; line-height: 1; text-shadow: 0 0 28px rgba(226,178,100,.25), 0 6px 20px rgba(0,0,0,.6); }
.kv-heb { position: absolute; bottom: 30px; left: 50%; transform: translateX(30px); }
.kv-hident { padding: 0 12px 0 18px; min-width: 0; }
.kv-hkick { font-size: 10px; letter-spacing: 3px; font-weight: 700; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-hnm { font-family: Georgia, serif; font-size: 30px; font-weight: 700; font-variant: small-caps; letter-spacing: 3px; margin: 4px 0 2px; }
.kv-hsub { font-size: 10px; letter-spacing: 3.5px; color: var(--gold); }
.kv-hbuff { margin-top: 8px; font-size: 12.5px; color: var(--sec); }
.kv-hbuff b { color: var(--text); }
.kv-hstamp { display: inline-block; margin-top: 8px; border: 1px dashed var(--line); color: var(--sec); border-radius: 999px; padding: 3px 12px; font-size: 10px; letter-spacing: 2px; }
.kv-hribbon { padding: 0 18px 0 4px; }
.kv-hplates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.kv-hplates .kv-dv { background: rgba(20,14,8,.65); border-color: var(--line); border-radius: 9px; padding: 7px 4px; text-align: center; }
.kv-hplates .kv-dv .k { font-size: 8.5px; letter-spacing: 1.2px; }
.kv-hplates .kv-dv .v { font-size: 17px; margin-top: 3px; }
.kv-hplates .kv-dv .v small { font-size: 10px; color: var(--sec); }
.kv-hseal { margin-top: 9px; text-align: center; font-size: 10.5px; letter-spacing: 2px; color: var(--sec); }
.kv-hseal b { color: var(--gold); font-family: Georgia, serif; font-size: 13px; letter-spacing: 0; }
/* rank · TP stamp — top-right corner of the hero band (hidden while unborn) */
.kv-hrline { position: absolute; top: 12px; right: 18px; z-index: 3; font-size: 10.5px; letter-spacing: 1.5px; color: var(--sec); white-space: nowrap; }
.kv-hrline b { color: var(--gold); font-family: Georgia, serif; font-size: 13px; letter-spacing: 0; }
/* forge workbench: crucible odds · dice tray · form (folded into the hub) */
.kv-workbench { flex: 1; display: grid; grid-template-columns: 340px 1fr 300px; gap: 10px; min-height: 0; }
.kv-hpanel { position: relative; display: flex; flex-direction: column; min-height: 0; background: rgba(12,8,4,.45); border: 1px solid #3a2c17; border-radius: 14px; padding: 12px 14px; }
.kv-cruc { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; flex: 1; min-height: 0; }
.kv-rail { position: relative; width: 4px; margin: 4px auto; background: #171006; border-radius: 2px; }
.kv-rail .rn { position: absolute; left: -5px; width: 14px; height: 2px; background: var(--tc); opacity: .8; }
.kv-rail .rn.you { height: 4px; left: -7px; box-shadow: 0 0 8px var(--tc); opacity: 1; }
.kv-tiers { display: flex; flex-direction: column; }
.kv-trow { display: grid; grid-template-columns: 92px 1fr 40px; gap: 8px; align-items: center; padding: 5px 9px; border-bottom: 1px dashed #352916; font-size: 12px; }
.kv-trow b { letter-spacing: 1.5px; font-size: 11.5px; color: var(--tc); }
.kv-trow span { color: var(--sec); font-size: 11px; }
.kv-trow i { font-style: normal; text-align: right; font-family: Georgia, serif; color: var(--text); }
.kv-trow em { display: none; font-style: normal; font-size: 8.5px; letter-spacing: 1.5px; color: var(--tc); margin-top: 1px; }
.kv-trow.you { background: rgba(226,178,100,.05); border: 1px solid var(--tc); border-radius: 8px; }
.kv-trow.you em { display: block; }
.kv-rernote { margin-top: auto; padding-left: 24px; font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.kv-rollzone { text-align: center; padding-top: 10px; }
/* dice tray — stone pip = fate's die, gold pip = your aim */
.kv-trayhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.kvp { display: inline-block; width: 12px; height: 8px; border-radius: 2px; vertical-align: middle; }
.kvp.sw-f { background: linear-gradient(180deg, #e2d0a8, #b09a6c); }
.kvp.sw-a { background: linear-gradient(180deg, #ffe7b0, #e2b264); margin-left: 8px; }
.kv-tray { display: grid; grid-template-columns: 84px 1fr 34px 58px; gap: 10px; align-items: center; padding: 2px 0; border-bottom: 1px dashed #352916; }
.kv-tray .tab b { display: block; font-weight: 800; font-size: 13.5px; letter-spacing: 1px; }
.kv-tray .tab small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.kvpips { display: flex; gap: 3px; align-items: center; }
.kvpips i { width: 19px; height: 11px; border-radius: 2px; background: #221910; border: 1px solid #352916; }
.kvpips i.f { background: linear-gradient(180deg, #e2d0a8, #b09a6c); border-color: #8a744a; }
.kvpips i.a { background: linear-gradient(180deg, #ffe7b0, #e2b264); border-color: #f5d9a8; box-shadow: 0 0 6px rgba(226,178,100,.55); }
.kv-tray .tval { font-family: Georgia, serif; font-size: 19px; text-align: right; color: var(--gold); }
.kv-tray .tval sup { font-size: 9.5px; color: #ffe7b0; }
.kv-tray.ghost .tval { color: var(--muted); }
.kv-tray .tstep { display: flex; gap: 5px; justify-content: flex-end; }
.kv-traylaw { margin-top: auto; padding-top: 7px; font-size: 10.5px; color: var(--muted); text-align: center; letter-spacing: 1px; }
.kv-traylaw b { font-family: Georgia, serif; font-size: 16px; color: var(--gold); letter-spacing: 0; }
/* form: radar + melt seal */
.kv-fradar { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.kv-melt { display: block; width: 100%; }
.kv-mnote { margin-top: 7px; font-size: 10.5px; color: var(--muted); line-height: 1.6; text-align: center; }
.kv-mnote b { color: var(--sec); }
.kv-coolplate { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--sec); line-height: 1.9; text-align: center; }
.kv-pip { width: 25px; height: 25px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 14px; cursor: pointer; line-height: 1; }
.kv-pip:disabled { opacity: .3; cursor: default; }
.kv-dv { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; }
.kv-dv .k { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.kv-dv .v { font-family: Georgia, serif; font-size: 19px; color: var(--text); margin-top: 2px; }
.kv-dv .v small { font-size: 11.5px; color: var(--sec); }
.kv-tierplate { display: inline-block; margin-top: 6px; padding: 3px 14px; border-radius: 999px; font-size: 10.5px; letter-spacing: 2.5px; border: 1px solid currentColor; font-weight: 800; }
.kv-skipchip { background: transparent; border: 1px solid var(--line); color: var(--gold); border-radius: 8px; padding: 5px 10px; font-size: 11.5px; cursor: pointer; margin: 6px 0 0 6px; }
.kv-skipchip:hover { border-color: var(--gold); }

/* ============ THE REFORGE RITE — melt → skip → birth in one fixed frame ============ */
#kv-rite { position: absolute; inset: 0; z-index: 35; display: none; align-items: center; justify-content: center; background: rgba(10,6,2,.88); }
#kv-rite.on { display: flex; }
.kvf-frame { width: 470px; max-width: calc(100% - 40px); text-align: center; padding: 18px 26px 20px;
  background: linear-gradient(180deg, #292013 0%, #1d150c 100%); border: 1px solid #6d5426;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: 0 0 60px rgba(0,0,0,.7), 0 0 30px rgba(226,178,100,.12); }
.kvf-kick { font-size: 10px; letter-spacing: 3.5px; color: var(--gold); font-weight: 700; }
.kvf-stage { min-height: 232px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.kvf-king { position: relative; display: flex; align-items: center; justify-content: center; width: 120px; height: 96px; }
.kvf-king::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(226,178,100,.14) 0%, rgba(0,0,0,0) 65%); }
.kvf-king.born::before { background: radial-gradient(circle at 50% 55%, rgba(226,178,100,.28) 0%, rgba(0,0,0,0) 65%); }
.kvf-glyph { font-family: Georgia, serif; font-size: 72px; line-height: 1; text-shadow: 0 6px 18px rgba(0,0,0,.6); }
.kvf-king .kv-ebadge { position: absolute; right: 14px; bottom: 8px; }
.kvf-nm { font-family: Georgia, serif; font-size: 27px; font-weight: 700; font-variant: small-caps; letter-spacing: 3px; }
.kvf-fstate { font-size: 11px; letter-spacing: 3.5px; color: var(--sec); }
.kvf-note { font-size: 12px; color: var(--muted); line-height: 1.65; max-width: 360px; }
.kvf-note b { color: var(--text); }
.kvf-warn { font-size: 11.5px; letter-spacing: .5px; line-height: 1.5; }
/* B "THE PRICE LEDGER" — the wait step (rite-redesigns.html pick) */
.kvf-nowline { display: flex; align-items: baseline; justify-content: center; gap: 7px; font-size: 12px; color: var(--muted); }
.kvf-nowline > svg { align-self: center; flex: none; }
.kvf-nowline b { font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: var(--sec); letter-spacing: 0; }
.kvf-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.kvf-lp { border-radius: 12px; padding: 14px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kvf-lp .lk { font-size: 9.5px; letter-spacing: 2.5px; font-weight: 800; }
.kvf-lp .big { display: flex; align-items: center; gap: 7px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.15; color: var(--text); }
.kvf-lp .sub2 { font-size: 10px; color: var(--muted); line-height: 1.55; }
.kvf-lpwait { border: 1px dashed #4a3a22; background: rgba(18,12,6,.5); color: var(--muted); }
.kvf-lpbuy { position: relative; border: 1px solid var(--gold); cursor: pointer; text-align: center;
  background: linear-gradient(180deg, rgba(51,38,20,0), rgba(51,38,20,.33)), #241a0e; color: var(--gold);
  box-shadow: 0 0 22px rgba(226,178,100,.22), inset 0 0 18px rgba(226,178,100,.06); transition: transform .15s, box-shadow .15s; }
.kvf-lpbuy:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.5), 0 0 30px rgba(226,178,100,.35); }
.kvf-lpbuy .big { color: #ffd76a; }
.kvf-lp .tag { position: absolute; top: -9px; right: 10px; background: var(--gold); color: #241708; font-size: 8.5px; font-weight: 800; letter-spacing: 1.5px; border-radius: 999px; padding: 2px 9px; }
.kvf-altlnk { background: none; border: none; border-bottom: 1px dotted #4a3a22; color: var(--muted); font-size: 10px; cursor: pointer; padding: 1px 2px; font-family: inherit; }
.kvf-altlnk:hover { color: var(--gold); border-color: var(--gold); }
.kvf-ghostlnk { background: transparent; border: none; color: var(--muted); font-size: 11.5px; cursor: pointer; letter-spacing: .5px; border-bottom: 1px dotted #4a3a22; padding: 2px 1px; font-family: inherit; }
.kvf-ghostlnk:hover { color: var(--text); border-color: var(--sec); }
.kvf-acts { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; padding-top: 10px; }
.kvf-acts .kv-seal { min-width: 300px; }
.kvf-acts .kv-abtn { min-width: 300px; }

/* hall band: relics · ladder · to-war — unlocked with the king's birth */
.kv-hallband { flex: none; height: 188px; display: grid; grid-template-columns: 1fr 330px 306px; gap: 10px; }
.kv-hallband .kv-hpanel { padding: 10px 12px; overflow: hidden; }
.kv-candles { display: flex; gap: 10px; }
.kv-candle { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.kv-hallband .kv-candle { padding: 6px 8px; border-radius: 10px; }
.kv-candle .flame { font-size: 22px; height: 26px; line-height: 26px; }
.kv-hallband .kv-candle .flame { height: 22px; line-height: 22px; }
.kv-candle .flame svg { width: 19px; height: 19px; }
.kv-candle .flame svg { color: var(--gold); }
.kv-candle:not(.charged) .flame svg { color: var(--muted); opacity: .7; }
.kv-candle .cd { font-family: Georgia, serif; font-size: 14px; margin-top: 2px; }
.kv-candle .st { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); margin-top: 3px; }
.kv-candle.charged { border-color: var(--gold); box-shadow: 0 0 14px rgba(226,178,100,.25); }
.kv-candle.charged .st { color: var(--gold); }
.kv-dustbar { display: flex; align-items: center; gap: 10px; margin-top: 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--sec); }
.kv-dustbar .track { flex: 1; height: 7px; background: #171006; border-radius: 4px; overflow: hidden; }
.kv-dustbar .track i { display: block; height: 100%; background: linear-gradient(90deg, #8a6a3a, var(--gold)); }
.kv-dustrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.kv-dustrow .kv-dustbar { flex: 1; margin-top: 0; min-width: 0; }
.kv-lboard { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.kv-lboard .hd { padding: 5px 12px; font-size: 10px; letter-spacing: 2px; color: var(--muted); background: var(--panel2); }
.kv-lboard .row { display: flex; justify-content: space-between; padding: 5px 12px; border-bottom: 1px dashed #352916; color: var(--sec); }
.kv-hallband .kv-lboard { margin-top: 6px; }
.kv-hallband .kv-lboard .row { padding: 3px 10px; }
.kv-lboard .row:last-child { border-bottom: none; }
.kv-lboard .row.me { color: var(--gold); background: #2a1f10; }
.kv-tactrow { display: flex; gap: 8px; flex-wrap: wrap; }
.kv-hallwar .kv-tactrow { gap: 6px; }
.kv-hallwar .kv-tactrow .kv-tact { flex: 1 1 44%; padding: 4px 9px; }
.kv-tact { border: 1px solid var(--line); background: var(--panel2); color: var(--sec); border-radius: 9px; padding: 8px 13px; font-size: 12px; cursor: pointer; text-align: left; }
.kv-tact.on { border-color: var(--gold); color: var(--gold); background: #2d2113; }
.kv-tact small { display: block; color: var(--muted); font-size: 10px; }
.kv-hallwar { display: flex; flex-direction: column; }
.kv-hwline { margin-top: 3px; font-size: 11px; letter-spacing: .5px; color: var(--sec); }
.kv-hwline b { color: var(--text); font-family: Georgia, serif; font-size: 13px; }
.kv-hallwar .kv-seal.big { font-size: 14px; padding: 9px 26px; margin-top: auto; }
.kv-deadline { background: #2a1410; border: 1px solid #6e3324; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #f0b8a0; display: flex; align-items: center; gap: 12px; }
.kv-hallwar .kv-deadline { margin-top: 4px; padding: 5px 10px; font-size: 11px; gap: 8px; flex-wrap: wrap; }

/* ============ VS ============ */
#kv-vs { overflow: hidden; }
.kv-vsplit { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.kv-vside { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.kv-vside.l { background: linear-gradient(115deg, #241a10 0%, #3a2b17 55%, #241a10 100%); clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.kv-vside.r { background: linear-gradient(245deg, #150d1c 0%, #241530 55%, #150d1c 100%); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -1px; }
.kv-vside .kv-glyph { font-family: Georgia, serif; font-size: 150px; line-height: 1; text-shadow: 0 10px 30px rgba(0,0,0,.65); }
.kv-vside .kv-nm { font-family: Georgia, serif; font-size: 23px; font-variant: small-caps; letter-spacing: 2px; }
.kv-vside .kv-tt { font-size: 10.5px; letter-spacing: 3px; color: var(--gold); text-align: center; }
.kv-vsmed { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) skewX(-8deg); z-index: 5; font-family: Georgia, serif; font-size: 52px; font-weight: 800; color: #241708; background: linear-gradient(180deg, #f4d493, #c8934b); padding: 5px 24px; border-radius: 10px; box-shadow: 0 0 40px rgba(226,178,100,.55); letter-spacing: 2px; }
.kv-kicker { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font-size: 10.5px; letter-spacing: 4px; color: var(--sec); z-index: 6; }
.kv-vradars { position: absolute; bottom: 76px; left: 0; right: 0; display: flex; justify-content: center; gap: 120px; z-index: 6; }
.kv-stinger { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9; background: rgba(12,8,4,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.kv-stinger .w { font-family: Georgia, serif; font-size: 90px; font-variant: small-caps; letter-spacing: 10px; color: var(--gold); text-shadow: 0 0 40px rgba(226,178,100,.8); }
.kv-stinger.on { opacity: 1; }

/* ============ ARENA ============ */
#kv-arena { display: none; flex-direction: column; }
#kv-arena.on { display: flex; }
.kv-hud { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 10px; padding: 12px 14px 6px; }
.kv-fbar .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.kv-fbar .nm { font-family: Georgia, serif; font-size: 15px; font-variant: small-caps; letter-spacing: 1px; }
.kv-fbar.r .top { flex-direction: row-reverse; }
.kv-fbar .hptxt { font-size: 11.5px; color: var(--sec); }
.kv-hpframe { position: relative; height: 20px; background: #140d06; border: 1px solid #000; border-radius: 4px; overflow: hidden; transform: skewX(-14deg); }
.kv-fbar.r .kv-hpframe { transform: skewX(14deg); }
.kv-hpframe .ghost, .kv-hpframe .fill { position: absolute; top: 0; bottom: 0; left: 0; }
.kv-hpframe .ghost { background: #f4e7d0; width: 100%; transition: width .9s ease .25s; }
.kv-hpframe .fill { background: linear-gradient(180deg, #7fdc6a, #2f8f3f); width: 100%; transition: width .18s ease; }
.kv-hpframe .fill.low { background: linear-gradient(180deg, #ffb35c, #c0392b); }
.kv-fbar.r .ghost, .kv-fbar.r .fill { left: auto; right: 0; }
.kv-tempo { height: 7px; background: #171006; border: 1px solid #33270f; border-radius: 4px; margin-top: 5px; overflow: hidden; position: relative; }
.kv-tempo i { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, #8a6a3a, var(--gold), #ffe7b0); width: 0; }
.kv-fbar.r .kv-tempo i { left: auto; right: 0; }
.kv-tlabel { font-size: 9px; letter-spacing: 2px; color: var(--muted); margin-top: 3px; }
.kv-stchips { display: flex; gap: 4px; margin-top: 4px; min-height: 18px; flex-wrap: wrap; }
.kv-fbar.r .kv-stchips { justify-content: flex-end; }
.kv-scht { font-size: 10px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--sec); }
.kv-scht.buff { border-color: #6d5426; color: var(--gold); }
.kv-scht.debuff { border-color: #5c3350; color: #c99df5; }
.kv-clock { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kv-clock .t { font-family: Georgia, serif; font-size: 28px; color: var(--text); }
.kv-clock .ph { font-size: 9.5px; letter-spacing: 3px; color: var(--muted); margin-top: 2px; text-align: center; }
.kv-clock.decree .ph { color: var(--red); }
.kv-ring { position: relative; flex: 1; background: radial-gradient(ellipse at 50% 78%, #3d2d18 0%, #221708 55%, #170f06 100%); overflow: hidden; }
.kv-ring::before { content: ""; position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: 620px; height: 100px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.4), transparent 70%); }
.kv-ringfire { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 660px; height: 140px; border-radius: 50%; border: 2px solid transparent; opacity: 0; transition: opacity 1.2s; pointer-events: none; }
.kv-ring.decree .kv-ringfire { opacity: 1; border-color: #ff7847; box-shadow: 0 0 24px rgba(255,120,71,.4), inset 0 0 40px rgba(255,120,71,.2); }
.kv-duo { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; justify-content: space-around; align-items: flex-end; }
.kv-fighter { position: relative; text-align: center; transition: transform .12s; }
.kv-fighter .gl { font-family: Georgia, serif; font-size: 100px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.kv-fighter.l .gl { color: #f5ecd8; text-shadow: 0 0 26px rgba(226,178,100,.33); }
.kv-fighter.r .gl { color: #d9c8f0; text-shadow: 0 0 26px rgba(169,127,232,.33); }
.kv-fighter.lunge-r { transform: translateX(44px) translateY(-10px); }
.kv-fighter.lunge-l { transform: translateX(-44px) translateY(-10px); }
.kv-fighter.hurt .gl { filter: brightness(2.2) saturate(.4); }
.kv-callout { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 8; background: rgba(20,13,6,.93); border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 6px 20px; font-size: 13px; letter-spacing: 1.5px; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.kv-floats { position: absolute; inset: 0; pointer-events: none; z-index: 7; overflow: hidden; }
.kv-fnum { position: absolute; font-family: Georgia, serif; font-weight: 700; font-size: 21px; color: #ffdf9e; text-shadow: 0 2px 4px #000; animation: kv-rise 1s ease-out forwards; }
.kv-fnum.crit { color: #ffd24a; font-size: 29px; }
.kv-fnum.heal { color: #7fdc6a; }
.kv-fnum.miss { color: #b9c6d8; font-size: 15px; font-style: italic; }
@keyframes kv-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(-56px); opacity: 0; } }
.kv-ko { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10; background: rgba(10,6,2,.45); }
.kv-ko.on { display: flex; }
.kv-ko .ko { font-family: Georgia, serif; font-size: 100px; font-variant: small-caps; letter-spacing: 14px; color: #ff5f45; text-shadow: 0 0 60px #ff7847, 0 4px 8px #000; animation: kv-koslam .5s cubic-bezier(.2,2.4,.4,1); }
@keyframes kv-koslam { 0% { transform: scale(3); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
.kv-verdict { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; display: none; justify-content: space-between; align-items: center; background: rgba(20,13,6,.95); border-top: 2px solid var(--gold); padding: 11px 20px; cursor: pointer; } /* the strip record — click reopens the verdict dialog */
.kv-verdict.on { display: flex; }
.kv-verdict .who { font-family: Georgia, serif; font-size: 18px; font-variant: small-caps; }
.kv-verdict .who small { display: block; font-family: "Segoe UI", Arial, sans-serif; font-size: 10.5px; letter-spacing: 2px; color: var(--muted); font-variant: normal; }
.kv-verdict .delta { color: var(--green); font-family: Georgia, serif; font-size: 23px; }
.kv-verdict .delta.neg { color: var(--red); }
.kv-ctl { position: absolute; top: 10px; right: 12px; display: flex; gap: 5px; z-index: 9; }
.kv-spd { background: rgba(20,13,6,.8); border: 1px solid var(--line); color: var(--sec); border-radius: 7px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.kv-spd.on { border-color: var(--gold); color: var(--gold); }
/* SKIP: dark until the Pro tier (monthly sub) ships it — 2026-09-19 */
.kv-spd.soon { color: var(--muted); cursor: default; }
.kv-spd.soon svg { opacity: .6; }
.kv-soon { font-style: normal; font-size: 8px; font-weight: 800; letter-spacing: .09em; color: var(--gold); background: rgba(226,178,100,.12); border: 1px solid rgba(226,178,100,.38); border-radius: 4px; padding: 1px 4px; margin-left: 4px; vertical-align: 1px; }
.kv-logs { position: absolute; left: 12px; bottom: 10px; width: 290px; max-height: 112px; overflow-y: auto; z-index: 8; background: rgba(18,12,5,.8); border: 1px solid #352916; border-radius: 9px; padding: 6px 10px; font-size: 10.5px; line-height: 1.6; color: var(--sec); scrollbar-width: thin; }
.kv-logs b { color: var(--text); }

/* ============ RELIQUARY — THE FORGE TABLE ============ */
#kv-rel { padding: 12px 16px; display: none; flex-direction: column; gap: 10px; }
#kv-rel.on { display: flex; }
.kvr-kit { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(ellipse at 50% 0%, rgba(226,178,100,.06), rgba(0,0,0,0) 70%), rgba(12,8,4,.45); border: 1px solid #3a2c17; border-radius: 14px; padding: 10px 14px; }
.kvr-slot { position: relative; width: 62px; height: 62px; border-radius: 12px; border: 1.5px dashed #4a3a22; background: #1a1207; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.kvr-slot.filled { border-style: solid; border-color: #6d5426; background: linear-gradient(180deg, #2f2413, #221910); }
.kvr-slot.wpn { margin-left: 22px; border-color: var(--gold-deep); }
.kvr-slot.drag { border-color: var(--gold); box-shadow: 0 0 14px rgba(226,178,100,.4); }
.kvr-slot:hover { border-color: var(--gold); }
.kvr-slot .sub { font-size: 7.5px; letter-spacing: 1.2px; color: var(--muted); }
.kvr-slot .gi { width: 30px; height: 30px; -webkit-mask: var(--gi) center/contain no-repeat; mask: var(--gi) center/contain no-repeat; background: currentColor; }
.kvr-slot .rs { font-family: Georgia, serif; font-size: 17px; color: var(--sec); }
.kvr-slot .rssub { font-size: 7px; color: var(--muted); text-align: center; line-height: 1.25; padding: 0 5px; }
.kvr-div { width: 1px; height: 52px; background: var(--line); }
.kvr-shelves { flex: 1; overflow-y: auto; border: 1px solid #3a2c17; border-radius: 12px; background: rgba(12,8,4,.35); padding: 4px 14px 6px; scrollbar-gutter: stable; }
.kvr-shelf { margin-top: 10px; }
.kvr-shelf .shd { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 2px; color: var(--sec); border-bottom: 1px solid #352916; padding-bottom: 5px; margin-bottom: 8px; }
.kvr-shelf .shd .ct { color: var(--muted); letter-spacing: .5px; }
.kvr-shelf .shd .rule { flex: 1; height: 1px; background: linear-gradient(90deg, #352916, rgba(0,0,0,0)); }
.kvr-tiles { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 7px; }
.kvr-tile { position: relative; width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(180deg, #2f2413, #221910); border: 1px solid #3f3119; cursor: grab; }
.kvr-tile:active { cursor: grabbing; }
.kvr-tile.dragging { opacity: .35; }
.kvr-tile::before { content: ""; position: absolute; inset: 6px; -webkit-mask: var(--gi) center/contain no-repeat; mask: var(--gi) center/contain no-repeat; background: currentColor; }
.kvr-tile:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.5), 0 0 10px rgba(226,178,100,.25); z-index: 2; }
.kvr-tile.miss { border-style: dashed; background: #1a1207; }
.kvr-tile.miss::before { opacity: .22; filter: grayscale(1); }
.kvr-tile.miss:hover::before { opacity: .55; }
.kvr-tile.worn { border-color: var(--gold); box-shadow: inset 0 0 10px rgba(226,178,100,.22); }
.kvr-tile.worn::after { content: "◆"; position: absolute; top: -5px; right: -4px; font-size: 10px; color: var(--gold); text-shadow: 0 1px 3px #000; }
.kvr-hover { flex: none; display: flex; align-items: center; gap: 10px; min-height: 38px; border: 1px solid #3a2c17; border-radius: 10px; background: rgba(12,8,4,.6); padding: 6px 14px; font-size: 12.5px; color: var(--sec); overflow: hidden; }
.kvr-hover .nm { font-family: Georgia, serif; font-size: 15px; color: var(--text); }
.kvr-hover .mt { font-size: 10px; letter-spacing: 1px; }
.kvr-hover .fx { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kvr-hover .who { flex: none; font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.kvr-hover .gi { flex: none; }
#kvr-tip { position: fixed; z-index: 60; pointer-events: none; background: rgba(20,13,6,.97); border: 1px solid var(--gold); border-radius: 10px; padding: 9px 12px; max-width: 260px; font-size: 11.5px; color: var(--sec); line-height: 1.45; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
#kvr-tip .nm { font-family: Georgia, serif; font-size: 13.5px; color: var(--text); }
#kvr-tip .mt { margin-top: 2px; font-size: 9.5px; letter-spacing: 1px; }
/* decree picker tiles (Throne Hall hall band) reuse the old tile look */
.kv-rel { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; min-height: 56px; cursor: pointer; position: relative; }
.kv-rel .nm { font-size: 11px; font-weight: 700; line-height: 1.25; }
.kv-rel .sc { font-size: 8.5px; letter-spacing: 1.2px; margin-top: 3px; }
.kv-rel.owned { border-color: #6d5426; background: #2c2112; }
.kv-rel:hover { border-color: var(--gold); }
.kv-sclabel-S { color: #ff8a70; } .kv-sclabel-W { color: #9fb2c4; } .kv-sclabel-B { color: #e2b264; }
.kv-sclabel-H { color: #c99df5; } .kv-sclabel-M { color: #6fd08a; } .kv-sclabel-P { color: #b9a8e8; } .kv-sclabel-X { color: #ffd76a; }

/* ============ DRAW OVERLAY ============ */
#kv-drawov { position: absolute; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; background: rgba(10,6,2,.85); }
#kv-drawov.on { display: flex; }
.kv-reel { display: flex; gap: 10px; align-items: center; }
.kv-reeltile { width: 146px; height: 186px; border-radius: 11px; border: 1px solid var(--line); background: linear-gradient(180deg, #2c2112, #241b10); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: .85; }
.kv-reeltile .ic { font-size: 32px; }
.kv-reeltile .nm { font-size: 11px; font-weight: 700; text-align: center; padding: 0 8px; color: var(--sec); }
.kv-reeltile.center { border-color: var(--gold); opacity: 1; box-shadow: 0 0 26px rgba(226,178,100,.4); transform: scale(1.12); }
.kv-drawstate { text-align: center; margin-top: 16px; color: var(--sec); font-size: 12px; letter-spacing: 2px; }
.kv-relcard { width: 226px; border-radius: 13px; padding: 2px; display: none; text-align: center; background: linear-gradient(180deg, #d8b475, #8a6a3a); }
.kv-relcard.on { display: block; animation: kv-cardin .5s cubic-bezier(.2,1.6,.4,1); }
.kv-relcard.weapon { background: linear-gradient(180deg, #ffe7b0, #c8934b); }
@keyframes kv-cardin { 0% { transform: scale(.4) rotateY(90deg); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.kv-relcard .inner { border-radius: 11px; padding: 15px 13px 13px; background: linear-gradient(180deg, #2c2112, #1d150b); border: 1px solid var(--gold); }
.kv-relcard .rar { font-size: 9px; letter-spacing: 3px; color: var(--gold); }
.kv-relcard .ic { font-size: 42px; margin: 11px 0 6px; }
.kv-relcard .nm { font-family: Georgia, serif; font-size: 18px; }
.kv-relcard .ep { font-size: 10px; letter-spacing: 2px; color: var(--gold); margin-top: 2px; }
.kv-relcard .ds { font-size: 11px; color: var(--sec); margin-top: 9px; line-height: 1.5; min-height: 46px; }
.kv-relcard .kpx { margin-top: 9px; font-size: 9.5px; letter-spacing: 2px; color: var(--muted); }

/* how-to */
.kv-rulz { margin-top: 12px; color: var(--sec); font-size: 12.5px; }
.kv-rulz summary { cursor: pointer; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.kv-rulz p { margin: 8px 0; line-height: 1.6; }
.kv-rulz .note { color: var(--muted); }

/* toast */
#kv-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: rgba(20,13,6,.96); border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 10px 22px; font-size: 13.5px; letter-spacing: 1px; opacity: 0; pointer-events: none; transition: opacity .25s; }
#kv-toast.on { opacity: 1; }

/* end-of-duel verdict dialog — REMATCH / NEW OPPONENT / HALL live in here (2026-09-19) */
.kv-end { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; background: rgba(10,6,2,.62); opacity: 0; pointer-events: none; transition: opacity .25s; }
.kv-end.on { opacity: 1; pointer-events: auto; }
.kv-endcard { text-align: center; min-width: 430px; padding: 30px 54px 26px; background: linear-gradient(180deg, #2c1e0f, #1b1107); border: 1px solid var(--gold); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 70px rgba(226,178,100,.14); transform: translateY(16px) scale(.96); transition: transform .28s cubic-bezier(.2,1.4,.4,1); }
.kv-end.on .kv-endcard { transform: none; }
.kv-endcard .kick { font-size: 10.5px; letter-spacing: 5px; color: var(--sec); }
.kv-endcard .word { font-family: Georgia, serif; font-size: 58px; font-weight: 700; font-variant: small-caps; letter-spacing: 9px; margin: 4px 0 2px; color: var(--gold); text-shadow: 0 0 42px rgba(226,178,100,.55); }
.kv-endcard .word.loss { color: #e0685c; text-shadow: 0 0 42px rgba(224,104,92,.38); }
.kv-endcard .word.draw { color: #d8cdb8; text-shadow: none; }
.kv-endcard .line { font-size: 12px; letter-spacing: 2.5px; color: var(--sec); }
.kv-endcard .reward { font-family: Georgia, serif; font-size: 25px; margin: 12px 0 18px; color: var(--green); }
.kv-endcard .reward.neg { color: var(--red); }
.kv-endcard .acts { display: flex; gap: 8px; justify-content: center; }
/* resign — a forfeit concedes the duel (two-step: RESIGN → FORFEIT? → gone) */
.kv-resign { background: rgba(20,13,6,.8); border: 1px solid rgba(176,67,58,.5); color: #d98a80; border-radius: 7px; padding: 5px 10px; font-size: 12px; letter-spacing: 1px; cursor: pointer; }
.kv-resign:hover { border-color: #b0433a; color: #ff9184; }
.kv-resign.armed { background: rgba(176,67,58,.28); border-color: #ff5f45; color: #ffb9ad; }
