/* RIFT.LIVE | interactive public knockout explorer · standalone from manager styling */
.kb-collection{display:grid;gap:24px;margin:4px 0 28px}
.kb-event{overflow:hidden;border:1px solid #e7d8dc;border-radius:24px;background:linear-gradient(132deg,#fffdfd 0%,#faf3f5 70%,#f4e8ed 100%);box-shadow:0 14px 36px #5e283112}
.kb-event-heading{padding:24px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #eedde2}
.kb-event-heading h3{margin:5px 0 7px;font:900 clamp(25px,4vw,36px)/1 "Barlow Condensed",Impact,sans-serif;letter-spacing:.01em;text-transform:uppercase;color:#291b23}
.kb-event-heading h3 span{color:#9a1935}
.kb-event-heading p:not(.kb-kicker){margin:0;color:#80636e;font-size:12px}
.kb-kicker{margin:0!important;color:#9b1b36!important;font-size:10px!important;font-weight:900;letter-spacing:.16em}
.kb-draw-pill{flex:none;padding:8px 12px;border:1px solid #e5c8d0;border-radius:100px;color:#92314a;background:#fbecf0;font-size:10px;font-weight:900;letter-spacing:.035em}
.kb-toolbar{padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fffcfd;border-bottom:1px solid #eddee2}
.kb-toolbar-title{display:flex;flex-direction:column;gap:2px}
.kb-toolbar-title strong{font-size:11px;letter-spacing:.13em;color:#80243a}
.kb-toolbar-title small{font-size:11px;color:#8b7580}
.kb-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.kb-buttons button{border:1px solid #e1cbd2;background:#fff;padding:8px 12px;min-height:38px;border-radius:11px;font-size:12px;font-weight:900;color:#702037;transition:background .18s,border-color .18s,transform .18s}
.kb-buttons button:hover{background:#f6e7ec;border-color:#bf7d8f;transform:translateY(-1px)}
.kb-buttons button:active{transform:translateY(0)}
.kb-buttons output{min-width:45px;text-align:center;font-size:11px;font-weight:900;color:#633340}
.kb-buttons .kb-pan-toggle{border-color:#7f142b;background:#851830;color:white}
.kb-buttons .kb-pan-toggle[aria-pressed="true"]{background:#27504b;border-color:#27504b}
.kb-viewport{position:relative;height:clamp(430px,64vh,660px);overflow:hidden;touch-action:pan-y;background:radial-gradient(circle at 25% 24%,#fff 0%,transparent 40%),linear-gradient(140deg,#f9f4f5,#f6edef);cursor:grab;outline-offset:-3px}
.kb-viewport:active{cursor:grabbing}
.kb-viewport.kb-explore-mode{touch-action:none;overscroll-behavior:contain}
.kb-viewport:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(#7a405c22 1px,transparent 1px);background-size:22px 22px}
.kb-viewport:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 42px #a45a731c}
.kb-canvas{position:absolute;top:0;left:0;width:var(--kb-width);min-height:calc(var(--kb-height) + 82px);display:flex;gap:48px;padding:18px 12px 24px;transform-origin:top left;will-change:transform;user-select:none;-webkit-user-select:none}
.kb-stage{width:290px;flex:0 0 290px;position:relative;min-width:0}
.kb-stage:not(:last-child):after{content:"";position:absolute;left:calc(100% + 2px);top:calc(50% + 12px);width:44px;height:2px;background:linear-gradient(90deg,#d2aab5,#aa3955);opacity:.8}
.kb-stage:not(:last-child):before{content:"›";position:absolute;left:calc(100% + 37px);top:calc(50% - 6px);z-index:2;color:#a02f4a;font:900 25px/1 "Barlow Condensed",sans-serif}
.kb-stage-heading{height:88px;padding:10px 12px;border-bottom:2px solid #b12b4d}
.kb-stage-heading>span{font-size:10px;font-weight:900;letter-spacing:.15em;color:#9a304a}
.kb-stage-heading h4{margin:3px 0 2px;font:900 25px/1 "Barlow Condensed",Impact,sans-serif;letter-spacing:.02em;color:#2e1d26}
.kb-stage-heading small{font-size:10px;color:#8b6875}
.kb-stage-body{height:var(--kb-height);display:flex;flex-direction:column;justify-content:space-around;gap:8px;padding:12px 0}
.kb-stage-empty{font-size:12px;color:#9c7884;padding:25px;border:1px dashed #d3adb8;border-radius:14px}
.kb-qualifier,.kb-match{width:100%;border:1px solid #e2d3d7;background:#fff;border-radius:14px;display:flex;text-align:left;position:relative;box-shadow:0 5px 14px #552e3c0c;transition:border-color .2s,box-shadow .2s,transform .2s,background .2s;color:#30212a}
.kb-qualifier:hover,.kb-match:hover,.kb-qualifier:focus-visible,.kb-match:focus-visible{border-color:#a52a4a;box-shadow:0 9px 23px #89244223;transform:translateY(-3px);background:#fffafb}
.kb-qualifier{min-height:61px;align-items:center;gap:10px;padding:9px 11px}
.kb-seed-icon{flex:none;height:35px;width:35px;display:grid;place-items:center;background:#f4e8eb;color:#96213b;border-radius:10px;font:900 20px "Barlow Condensed",sans-serif}
.kb-ready .kb-seed-icon{background:#e6f1e9;color:#226146}
.kb-provisional .kb-seed-icon{background:#f9eddd;color:#ad6923}
.kb-seed-body{min-width:0;flex:1}
.kb-seed-body small{display:block;font-size:9px;font-weight:900;color:#9b4059;letter-spacing:.06em}
.kb-seed-body strong{display:block;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3b2630}
.kb-seed-flag{font-size:9px;color:#9b8590;font-weight:900}
.kb-ready .kb-seed-flag{color:#26724d}
.kb-provisional .kb-seed-flag{color:#b27731}
.kb-match{flex-direction:column;min-height:138px;padding:11px;gap:6px}
.kb-match-head{display:flex;justify-content:space-between;align-items:center;gap:7px;padding-bottom:5px;border-bottom:1px solid #f0e5e8}
.kb-match-head strong{font-size:10px;color:#92223f;letter-spacing:.045em}
.kb-state{border-radius:100px;padding:4px 7px;font-style:normal;font-size:9px;font-weight:900;color:#955971;background:#f7eaf0;white-space:nowrap}
.kb-live{border-color:#a32340;background:#fff7fa}
.kb-live .kb-state{background:#8e1730;color:#fff;animation:kb-blink 1.8s ease-in-out infinite}
.kb-finished{border-color:#adc9ba}
.kb-finished .kb-state{background:#e5f5eb;color:#27674b}
@keyframes kb-blink{50%{opacity:.6}}
.kb-side{display:flex;align-items:center;gap:8px;padding:4px 7px;min-height:30px;border-radius:8px;background:#f8f3f5;font-size:11px;font-weight:800;line-height:1.2}
.kb-side i{font-style:normal;width:20px;flex:none;color:#a18a93;font-size:9px}
.kb-side span{min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-side b{font-size:9px;color:#216d4a}
.kb-side-won{background:#e9f6ed;color:#236345}
.kb-match-foot{margin-top:auto;display:flex;justify-content:space-between;gap:8px;color:#92747e;font-size:9px}
.kb-match-foot>span:last-child{color:#94263f;font-weight:900}
.kb-bye{padding:12px 15px;background:#f3e8ed;border:1px dashed #c8a1ad;border-radius:13px;color:#80394d;min-height:66px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.kb-bye strong{font-size:11px;font-weight:900}
.kb-bye small{font-size:10px}
.kb-gesture-tip,.kb-disclaimer{margin:0;padding:11px 25px;color:#896574;font-size:11px}
.kb-gesture-tip{background:#fff;border-top:1px solid #ebdce2}
.kb-gesture-tip strong{color:#91243f}
.kb-disclaimer{border-top:1px solid #eddce1;background:#f9eef1;color:#8d4d62;line-height:1.6}
.kb-dialog{width:min(530px,calc(100vw - 24px));max-height:min(85vh,800px);border:1px solid #e9d4dd;border-radius:20px;padding:0;background:#fffafb;color:#32232a;box-shadow:0 28px 75px #280c1a70}
.kb-dialog::backdrop{background:#251019a3;backdrop-filter:blur(4px)}
.kb-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#8a1832;color:#fff;gap:12px;font-size:10px;font-weight:900;letter-spacing:.11em}
.kb-dialog-head button{background:#ffffff29;color:white;border:0;border-radius:50%;width:35px;height:35px;font-size:24px}
.kb-dialog-body{padding:23px 25px 27px}
.kb-detail-kicker{font-size:11px;font-weight:900;color:#a12343;letter-spacing:.12em;text-transform:uppercase}
.kb-dialog h2{font:900 38px/.97 "Barlow Condensed",sans-serif;color:#2b1c25;margin:8px 0 12px}
.kb-dialog-body>p{font-size:13px;color:#765564}
.kb-detail-pair,.kb-detail-empty,.kb-set-summary{padding:15px;background:#f7eff2;border:1px solid #ead5dc;border-radius:12px;margin:16px 0}
.kb-detail-pair strong,.kb-detail-pair small{display:block}
.kb-detail-pair small{margin:4px 0 12px;color:#775767;font-size:11px}
.kb-detail-pair button,.kb-person-link{border:1px solid #d8aab8;background:white;color:#92203d;border-radius:9px;padding:8px 11px;font-size:12px;font-weight:800;margin:7px 8px 0 0}
.kb-detail-vs{display:flex;align-items:stretch;gap:10px;margin:18px 0}
.kb-detail-vs>div{flex:1;min-width:0;background:#f5ecef;padding:13px;border-radius:11px}
.kb-detail-vs small{display:block;color:#9b4e63;font-size:9px;font-weight:900}
.kb-detail-vs strong{display:block;font-size:13px;overflow-wrap:anywhere}
.kb-detail-vs>span{align-self:center;font-size:11px;color:#9c4058;font-weight:900}
.kb-detail-meta{font-size:12px}
.kb-set-summary strong{font-size:10px;color:#8c2038}
.kb-set-summary p{margin:6px 0;font-size:13px}
.kb-detail-winner{font-weight:900;color:#226845!important}
.kb-score-link{display:block;background:#921e3d;color:#fff;padding:13px 18px;border-radius:11px;text-align:center;font-weight:900;font-size:12px;margin-top:16px}
@media(max-width:800px){.kb-event-heading{align-items:start;flex-direction:column;padding:19px 17px 16px}.kb-toolbar{align-items:start;flex-direction:column;padding:13px 16px}.kb-buttons{width:100%}.kb-viewport{height:clamp(400px,61svh,570px)}.kb-gesture-tip,.kb-disclaimer{padding:12px 16px}.kb-draw-pill{align-self:start}.kb-toolbar-title small{font-size:10px}}
@media(max-width:430px){.kb-buttons button{padding:7px 10px;font-size:11px;min-height:36px}.kb-buttons output{min-width:38px}.kb-viewport{height:455px}.kb-dialog-body{padding:16px}.kb-dialog h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){.kb-match,.kb-qualifier,.kb-buttons button{transition:none}.kb-live .kb-state{animation:none}}
