/* V0.7.1 — viewport-first Hardcore arena, natural overflow for long content and accessibility zoom. */
body.kxe-quiz-compact .ksp-after-quiz,body.kxe-quiz-compact .ksp-dash a[hidden],body.kxe-quiz-compact .kxe-arena-emblem{display:none!important}
body.kxe-quiz-compact.ksp-focus-screen .ks-hero{padding:8px 0 16px;min-height:0}
body.kxe-quiz-compact.ksp-focus-screen .ksp-layout{width: min(98%, 1600px);max-width:1600px;gap:6px}
body.kxe-quiz-compact.ksp-focus-screen .ksp-dash{gap:8px;min-width:0}
body.kxe-quiz-compact .ksp-hc.kxe-quiz-arranged{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:clamp(9px,1.1vw,17px);border-radius:21px;min-width:0}
body.kxe-quiz-compact .kxe-quiz-arranged .ksp-hc-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:7px;margin:0;min-width:0;font-size:clamp(14px,1.5vw,19px)}
body.kxe-quiz-compact .kxe-quiz-arranged .ksp-hc-heading>a{margin-left:auto;font-size:13px}
body.kxe-quiz-compact .kxe-quiz-arranged .kxe-prefs-focus{margin:0;display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
body.kxe-quiz-compact .kxe-quiz-arranged .kxe-prefs-focus button{font-size:11px;padding:4px 8px;min-height:28px}
.kxe-quiz-board{display:grid;grid-template-columns:minmax(124px,.70fr) minmax(0,3.5fr) minmax(186px,1.15fr);gap:12px;align-items:stretch;min-width:0;min-height:min(var(--kxe-board-height,490px),680px)}
.kxe-quiz-board.kxe-no-abilities{grid-template-columns:minmax(124px,.70fr) minmax(0,4.65fr)}
.kxe-quiz-stake,.kxe-quiz-abilities,.kxe-quiz-chamber{min-width:0;display:flex;flex-direction:column;gap:9px;align-self:stretch;border:1px solid #8e69c5;border-radius:16px;padding:clamp(8px,1vw,14px);background:linear-gradient(155deg,#352161,#201345);box-shadow:0 4px 0 #120a2e}
.kxe-quiz-chamber{background:radial-gradient(ellipse at 50% 0%,#50308066,transparent 65%),#21154b;justify-content:center;gap:9px}
.kxe-adventure .kxe-quiz-stake .ksp-hc-stats{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));flex:1;gap:9px;margin:0}
.kxe-adventure .kxe-quiz-stake .ksp-hc-stats>div{align-content:center;min-width:0;padding:8px 4px;gap:4px;border-radius:13px}
.kxe-adventure .kxe-quiz-stake .ksp-hc-stats b{font-size:clamp(19px,2.1vw,31px);line-height:1.1}
.kxe-adventure .kxe-quiz-stake .ksp-hc-stats small{font-size:clamp(10px,1.1vw,13px)}
.kxe-adventure .kxe-quiz-stake .kxe-arena-stat-art{width:clamp(32px,4.2vw,58px);height:clamp(32px,4.2vw,58px)}
.kxe-adventure .kxe-quiz-abilities h3{font-size:14px;line-height:1.2;color:#ffd061;margin:0;text-align:center;letter-spacing:.06em}
.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(min-content,1fr);gap:8px;flex:1;align-content:stretch}
.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers form.kxe-power-interactive{display:grid;grid-template-columns:clamp(35px,4vw,58px) minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:7px;row-gap:3px;align-content:center;align-items:center;padding:8px;border-radius:12px;min-width:0;min-height:0;overflow:visible}
.kxe-adventure .kxe-quiz-abilities .kxe-ability-art{grid-column:1;grid-row:1/4;display:grid;place-items:center;align-self:center;justify-self:center;width:100%;height:auto!important;min-height:0!important;max-height:60px;aspect-ratio:1;margin:0!important}
.kxe-adventure .kxe-quiz-abilities .kxe-ability-art .kxe-spell-icon{width:100%;height:100%;max-width:58px;max-height:58px}
.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers form>strong{grid-column:2;font-size:clamp(12px,1.05vw,16px);line-height:1.15;overflow-wrap:anywhere}
.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers form>small{grid-column:2;font-size:11px;line-height:1.2}
.kxe-adventure .kxe-quiz-abilities .kxe-power-description{display:none}
.kxe-adventure .kxe-quiz-abilities .kxe-power-cost{grid-column:2;padding:3px 5px;font-size:10px;line-height:1.2;border-radius:5px;white-space:normal}
.kxe-adventure .kxe-quiz-arranged .kxe-quiz-chamber h2{font-size:clamp(20px,2.15vw,32px);line-height:1.2;margin:0;overflow-wrap:anywhere}
.kxe-adventure .kxe-quiz-chamber p{margin:0;line-height:1.4;font-size:clamp(12px,1.12vw,15px);overflow-wrap:anywhere}
.kxe-adventure .kxe-quiz-chamber .ksp-hc-legacy{font-size:11px;padding:5px 8px}
.kxe-adventure .kxe-quiz-chamber .ksp-hc-meter{padding:6px 9px;gap:6px;font-size:14px}
.kxe-adventure .kxe-quiz-chamber #ksp-hc-clock{padding:5px 9px;font-size:19px}
.kxe-adventure .kxe-quiz-chamber .ksp-hc-difficulty{align-self:flex-start;padding:3px 10px;font-size:11px}
.kxe-adventure .kxe-quiz-chamber .ksp-hc-form{gap:10px}
.kxe-adventure .kxe-quiz-chamber .ksp-hc-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kxe-adventure .kxe-quiz-arranged .kxe-quiz-chamber .ksp-hc-options label{min-height:48px;padding:8px;gap:7px;line-height:1.25;font-size:clamp(13px,1.15vw,16px)}
.kxe-adventure .kxe-quiz-chamber .kxe-choice-letter{flex:none;min-width:24px;width:24px;height:24px;font-size:12px}
.kxe-adventure .kxe-quiz-chamber .ks-button{padding:9px 16px;min-height:40px;font-size:14px;line-height:1.2}
.kxe-adventure .kxe-quiz-chamber .ksp-hc-form>.ks-button{justify-self:stretch}
.kxe-adventure .kxe-quiz-chamber .kxe-spell-receipt{padding:5px 8px;gap:7px}
.kxe-adventure .kxe-quiz-chamber .kxe-spell-mark{width:28px;height:28px}
.kxe-adventure .kxe-quiz-chamber .kxe-spell-copy strong{font-size:13px}.kxe-adventure .kxe-quiz-chamber .kxe-spell-copy span{font-size:11px}.kxe-adventure .kxe-quiz-chamber .kxe-spell-copy small{font-size:9px}
.kxe-quiz-timeout-form{display:none!important}
/* Keep small screens readable; use rows, not unusably narrow three-column rails. */
@media(max-width:850px){.kxe-quiz-board,.kxe-quiz-board.kxe-no-abilities{grid-template-columns:minmax(0,1fr);min-height:0;gap:8px}.kxe-quiz-stake,.kxe-quiz-chamber,.kxe-quiz-abilities{padding:8px;gap:7px}.kxe-adventure .kxe-quiz-stake .ksp-hc-stats{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:5px}.kxe-adventure .kxe-quiz-stake .ksp-hc-stats>div{padding:5px 2px;gap:2px}.kxe-adventure .kxe-quiz-stake .kxe-arena-stat-art{width:26px;height:26px}.kxe-adventure .kxe-quiz-stake .ksp-hc-stats b{font-size:19px}.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers form.kxe-power-interactive{grid-template-columns:32px minmax(0,1fr);padding:5px;gap:3px}.kxe-adventure .kxe-quiz-abilities .kxe-ability-art .kxe-spell-icon{max-width:34px;max-height:34px}.kxe-adventure .kxe-quiz-chamber .ksp-hc-form{gap:7px}.kxe-adventure .kxe-quiz-arranged .kxe-quiz-chamber .ksp-hc-options label{min-height:42px;padding:5px;gap:4px}.kxe-adventure .kxe-quiz-chamber .kxe-choice-letter{display:none}.kxe-adventure .kxe-quiz-chamber .ksp-hc-options input{width:15px;height:15px}.kxe-adventure .kxe-quiz-chamber .ksp-hc-options{gap:6px}.kxe-adventure .kxe-quiz-arranged .kxe-quiz-chamber h2{font-size:20px}.kxe-adventure .kxe-quiz-chamber .ksp-hc-meter{padding:3px 7px}.kxe-adventure .kxe-quiz-chamber #ksp-hc-clock{font-size:16px}.kxe-adventure .kxe-quiz-chamber .ks-button{min-height:38px;padding:7px 12px}.kxe-adventure .kxe-quiz-abilities .kxe-power-cost{font-size:10px}}
@media(max-width:360px){.kxe-adventure .kxe-quiz-chamber .ksp-hc-options{grid-template-columns:minmax(0,1fr)}}
@media(min-width:851px) and (max-height:780px){.kxe-quiz-board{gap:8px}.kxe-quiz-stake,.kxe-quiz-abilities,.kxe-quiz-chamber{padding:8px;gap:6px}.kxe-adventure .kxe-quiz-arranged .kxe-quiz-chamber h2{font-size:clamp(19px,1.7vw,26px)}.kxe-adventure .kxe-quiz-arranged .kxe-quiz-chamber .ksp-hc-options label{min-height:42px;padding:6px}.kxe-adventure .kxe-quiz-chamber .ksp-hc-form{gap:6px}.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers{gap:5px}.kxe-adventure .kxe-quiz-abilities .ksp-hc-powers form.kxe-power-interactive{padding:5px}.kxe-adventure .kxe-quiz-abilities .kxe-ability-art{max-height:48px}.kxe-adventure .kxe-quiz-stake .kxe-arena-stat-art{width:39px;height:39px}}
/* V0.7.2: immediate authoritative review and purchase feedback. */
.kxe-adventure .kxe-rail[hidden]{display:none!important}
.kxe-adventure .ksp-hc[data-ksp-hardcore-transport=pending] .ksp-hc-heading::after{content:'Updating challenge…';font-size:11px;color:#d9c7ff;align-self:center}
.kxe-adventure .ksp-hc[data-ksp-hardcore-transport=pending] .kxe-quiz-chamber,.kxe-adventure .ksp-hc[data-ksp-hardcore-transport=pending] .kxe-quiz-abilities{cursor:progress}
.kxe-adventure .ksp-hc-feedback[data-ksp-answer-correct]{border:1px solid #a58bd6;border-left:4px solid #c9a1ff;background:#30205b;border-radius:12px;padding:12px;display:grid;gap:5px}
.kxe-adventure .ksp-hc-feedback[data-ksp-answer-correct=true]{border-left-color:#83e6a9;background:linear-gradient(135deg,#274645,#30205b 75%)}
.kxe-adventure .kxe-review-mark,.kxe-adventure .kxe-purchase-mark{display:flex;gap:8px;align-items:center;color:#ffd061;font-size:13px;line-height:1.15}
.kxe-adventure .kxe-review-mark img,.kxe-adventure .kxe-purchase-mark img{width:32px;height:32px;object-fit:contain}
.kxe-adventure .kxe-answer-receipt{font-weight:700;font-size:13px;color:#c4f5db}
.kxe-adventure .ksp-hc-feedback[data-ksp-question-purchase]{border:1px solid #76e8ff88;background:#292052;border-radius:12px;padding:10px;display:grid;gap:5px}
.kxe-adventure .ksp-hc-feedback[data-ksp-question-purchase] form{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.kxe-adventure .ksp-hc-feedback[data-ksp-question-purchase] label{flex:1 1 200px;font-size:13px;display:flex;align-items:center;gap:6px}
.kxe-adventure .ksp-hc-feedback[data-ksp-question-purchase] input[type=checkbox]{accent-color:#ffd061;min-width:18px;min-height:18px}
.kxe-adventure .kxe-purchase-receipt{font-size:13px;color:#ffd061;font-weight:700}
.kxe-adventure .kxe-purchase-receipt[data-status=success]{color:#a1f6d2}
.kxe-adventure .kxe-purchase-receipt[data-status=failure],.kxe-adventure .kxe-purchase-receipt[data-status=uncertain]{color:#ffd4b5}

/* V0.7.3 — suppress repeat review only on confirmed cash-out, not on feedback/loss. */
.kxe-adventure .ksp-hc[data-ksp-hardcore-state=cashed] :is([data-ksp-answer-correct],[data-ksp-question-purchase],[data-kxe-cash-hidden]){display:none!important}
.kxe-real-fragment{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;overflow:hidden;padding:7px;background:linear-gradient(145deg,#674b9d,#332056);border:1px solid #c9a1ff;border-radius:8px;color:#e9ddff;font-size:clamp(10px,1.05vw,14px);line-height:1.1;pointer-events:none;overflow-wrap:anywhere;}
.kxe-question-rebirth{position:absolute;border-radius:12px;pointer-events:none;border:1px solid #bfa1ff;box-shadow:0 0 16px #8754dc77,inset 0 0 12px #76e8ff33;}
.kxe-count-source{position:absolute!important;clip-path:inset(50%);width:1px!important;height:1px!important;overflow:hidden;}
.kxe-count-visual{font-size:clamp(19px,2.1vw,31px);font-weight:850;line-height:1.1;color:#ffd061;}
.ksp-hc-stats>div:nth-child(2) .kxe-count-visual{color:#76e8ff}
.kxe-adventure .kxe-arena #ksp-hc-clock.ksp-hc-urgent{animation:kxe-clock-aura 1.35s ease-in-out infinite alternate;}
@keyframes kxe-clock-aura{from{box-shadow:0 0 0 2px #ffb5a255,inset 0 -4px 0 #ae5361}to{box-shadow:0 0 0 2px #ffb5a255,0 0 16px #ffb5a260,inset 0 -4px 0 #ae5361}}
.kxe-motion-off #ksp-hc-clock{animation:none!important}@media(prefers-reduced-motion:reduce){#ksp-hc-clock{animation:none!important}}

.kxe-rebirth-shard{background:#8754dc24;border-color:#76e8ff99;box-shadow:inset 0 0 12px #76e8ff55;}

/* V0.7.4 — only Hardcore, including async entry from other routes. */
body.kxe-hardcore-active :is(#ks-footer,#colophon,.site-footer,.elementor-location-footer),body.kxe-adventure:has(.ksp-hc) :is(#ks-footer,#colophon,.site-footer,.elementor-location-footer){display:none!important}
.kxe-adventure .ksp-hc[data-kxe-cash-complete="1"] :is(.ksp-hc-feedback,[data-ksp-answer-correct],[data-ksp-question-purchase]){display:none!important}
.kxe-adventure .ksp-hc .kxe-cash-return{align-self:center;text-align:center;max-width:100%;margin-top:8px}
.kxe-adventure .kxe-feedback-chamber{justify-content:flex-start;min-height:0;gap:8px}
.kxe-feedback-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;align-items:stretch;min-height:0;flex:1 1 auto}
.kxe-feedback-grid.kxe-feedback-single{grid-template-columns:minmax(0,1fr)}
.kxe-feedback-pane{min-width:0;min-height:0;display:flex;flex-direction:column;gap:6px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:12px}
.kxe-feedback-pane:focus-visible{outline:2px solid #76e8ff;outline-offset:-2px}
.kxe-adventure .kxe-feedback-pane .ksp-hc-feedback{margin:0;min-width:0;flex:0 0 auto;overflow-wrap:anywhere;padding:10px;gap:4px}
.kxe-adventure .kxe-feedback-pane .ksp-hc-feedback strong{overflow-wrap:anywhere;line-height:1.3}
.kxe-adventure .kxe-feedback-pane .kxe-review-mark img,.kxe-adventure .kxe-feedback-pane .kxe-purchase-mark img{width:27px;height:27px}
.kxe-feedback-actions{display:flex;align-items:stretch;justify-content:center;gap:12px;flex:none;margin-top:auto;padding:4px 0}
.kxe-feedback-actions form{flex:0 1 260px;min-width:0;margin:0;display:flex}
.kxe-adventure .kxe-feedback-actions .ks-button{width:100%;white-space:normal;text-align:center;min-height:44px}
@media(min-width:851px){.kxe-quiz-board:has(.kxe-feedback-chamber){height:max(360px,min(var(--kxe-board-height,490px),680px));min-height:0;grid-template-rows:minmax(0,1fr)}.kxe-feedback-chamber{overflow:auto;overscroll-behavior:contain}.kxe-feedback-grid{min-height:100px}.kxe-feedback-pane{max-height:100%}}
@media(max-width:850px){.kxe-feedback-grid{grid-template-columns:minmax(0,1fr)}.kxe-feedback-pane{overflow:visible}.kxe-feedback-actions{gap:7px}.kxe-adventure .kxe-feedback-actions .ks-button{padding:7px 9px}}
