/* SISTAR quiz — supplied key visual. Load after style.css. */
:root {
  --primary: #105492;
  --primary-dark: #0a4276;
  --green: #12775e;
  --mint: #e6f5ec;
  --ink: #163c50;
  --muted: #58727d;
  --line: #dbe6e9;
  --red: #b93d4c;
  --shadow: 0 16px 42px rgb(9 50 77 / 10%);
}

body.kv-page {
  --kv-lime: #94ff7f;
  --kv-slate: #447895;
  --kv-radius: 24px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: #105492;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  isolation: isolate;
}

.kv-page *,
.kv-page *::before,
.kv-page *::after {
  box-sizing: border-box;
}

.kv-page h1,
.kv-page h2,
.kv-page h3,
.kv-page .btn,
.kv-page .score-card strong,
.kv-page .badge-recipient strong {
  font-family: inherit;
}

.kv-page h1,
.kv-page h2,
.kv-page h3 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.kv-page p,
.kv-page small,
.kv-page span {
  overflow-wrap: anywhere;
}

.kv-page img {
  max-width: 100%;
}

.kv-page :focus-visible {
  outline: 3px solid #2e7bab;
  outline-offset: 4px;
}

.kv-page a,
.kv-page button {
  -webkit-tap-highlight-color: rgb(18 119 94 / 16%);
}

.kv-page button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.kv-page [hidden] {
  display: none !important;
}

/* Decorative layers do not receive input and never move foreground controls. */
.kv-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.kv-background {
  position: absolute;
  display: block;
  inset: -22px;
}

.kv-background img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

.kv-parallax {
  will-change: transform;
  transition: transform .32s cubic-bezier(.2, .65, .3, 1);
}

.kv-footer-art {
  position: absolute;
  bottom: -2px;
  width: min(49vw, 890px);
  z-index: 2;
}

.kv-footer-left {
  left: -1px;
}

.kv-footer-right {
  right: -1px;
}

.kv-footer-art .kv-parallax {
  display: block;
  transform-origin: center bottom;
}

.kv-footer-art img {
  display: block;
  width: 100%;
  height: auto;
}

.kv-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(2 47 85 / 8%) 0%, transparent 54%, rgb(8 71 76 / 5%) 100%);
}

.kv-page:not(.kv-landing) .kv-sheen {
  background: linear-gradient(180deg, rgb(3 47 82 / 30%), rgb(13 68 90 / 11%) 65%, transparent);
}

.kv-page:not(.kv-landing) .kv-footer-art {
  width: min(54vw, 600px);
  opacity: 1;
}

/* The logo files retain their original aspect ratio, with no added logo boxes. */
.kv-header {
  width: min(100% - 48px, 820px);
  margin: 0 auto;
  padding: 28px 0 0;
  text-align: center;
}

.kv-header img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  margin-inline: auto;
}

.kv-header-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  color: #fff;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.kv-header-fallback::before,
.kv-header-fallback::after {
  content: "";
  width: 27px;
  height: 1px;
  background: rgb(255 255 255 / 45%);
}

.kv-brand {
  width: min(100% - 40px, 600px);
  margin: 32px auto 0;
  text-align: center;
}

.kv-brand img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  height: auto;
  margin: auto;
}

.kv-brand-compact {
  width: min(100% - 56px, 640px);
  margin-top: 100px;
}

.kv-brand-compact img {
  /*! max-height: 100px; */
}

.kv-brand-fallback {
  display: grid;
  gap: 7px;
  color: #fff;
  text-align: center;
  padding: 12px 0;
}

.kv-brand-fallback small {
  font-size: .66rem;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
  color: #d6f1ef;
}

.kv-brand-fallback h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.kv-brand-compact .kv-brand-fallback h1 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.kv-brand-fallback p {
  font-size: .82rem;
  font-weight: 600;
  color: #e8f5ee;
}

.kv-main {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 30px 24px 64px;
}

.kv-page .app-shell {
  max-width: 860px;
  padding: 28px 24px 70px;
}

.kv-page .leaderboard-shell {
  max-width: 1060px;
  padding: 28px 24px 70px;
}

.kv-page .quiz-shell {
  max-width: 760px;
  padding: 24px 24px 64px;
}

.kv-page .landing-shell {
  max-width: 650px;
  padding: 28px 24px 80px;
}

.kv-main.kv-landing-main {
  width: min(100%, 1040px);
  padding-top: 28px;
  padding-bottom: 190px;
}

.kv-hero-copy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.kv-page .kv-hero-copy .eyebrow {
  display: inline-block;
  color: var(--mint);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .19em;
  margin-top: 22px;
  margin-bottom: 22px;
}

.kv-hero-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.04em;
}

.kv-hero-copy p {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 1rem;
  color: #f0faf9;
  line-height: 1.7;
  text-wrap: pretty;
}

.kv-hero-copy .kv-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  font-size: .82rem;
  color: #effff5;
  font-weight: 650;
}

.kv-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.kv-hero-actions .btn {
  min-width: 172px;
  min-height: 50px;
  border-radius: 14px;
}

.kv-hero-actions .btn-secondary {
  background: #edf8f3;
  border-color: rgb(255 255 255 / 80%);
}

.kv-facts {
  max-width: 580px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 17px 12px;
  background: rgb(237 249 245 / 96%);
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgb(18 66 91 / 7%);
}

.kv-facts>* {
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 10px;
}

.kv-facts>*+* {
  border-left: 1px solid #cbdfda;
}

.kv-facts strong {
  font-size: 1rem;
  font-weight: 750;
  color: #105492;
}

.kv-facts small,
.kv-facts span {
  font-size: .7rem;
  color: #466b73;
}

.kv-feature {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ecfff2;
  font-size: .77rem;
}

.kv-page-footer {
  position: relative;
  padding: 18px 20px max(22px, env(safe-area-inset-bottom));
  margin-top: auto;
  text-align: center;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 550;
}

.footer-text {
  padding: 10px 30px;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Untuk kecocokan Safari */

  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Shared controls. Solid surfaces keep long forms and answers readable. */
.kv-page .btn {
  min-height: 44px;
  min-width: 44px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}

.kv-page .btn:hover {
  transform: none;
}

.kv-page .btn-primary {
  background: #12775e;
  color: #fff;
  box-shadow: 0 7px 18px rgb(10 89 68 / 15%);
  border: 1px solid transparent;
}

.kv-page .btn-primary:hover {
  background: #0b634c;
  box-shadow: 0 9px 22px rgb(10 89 68 / 22%);
}

.kv-page .btn-secondary {
  background: #edf4f6;
  color: #175372;
  border: 1px solid #d6e4e9;
  box-shadow: none;
}

.kv-page .btn-secondary:hover {
  background: #e0eff0;
  border-color: #afcfd3;
}

.kv-page .btn-success {
  background: #e0f4e8;
  color: #08634a;
}

.kv-page input,
.kv-page select,
.kv-page textarea {
  min-height: 48px;
  border: 1px solid #cadbe1;
  border-radius: 11px;
  padding: 12px 13px;
  color: #163c50;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.kv-page input::placeholder,
.kv-page textarea::placeholder {
  color: #7b939c;
  opacity: 1;
}

.kv-page input:focus,
.kv-page select:focus,
.kv-page textarea:focus {
  border-color: #12775e;
  box-shadow: 0 0 0 3px rgb(18 119 94 / 12%);
}

.kv-page label {
  color: #294b5b;
  font-size: .79rem;
  font-weight: 700;
  gap: 7px;
}

.kv-page .alert {
  line-height: 1.5;
}

.kv-page .alert-error {
  background: #fff0ef;
  border: 1px solid #ffd6d3;
  color: #a3333d;
}

.kv-page .eyebrow {
  color: #497285;
}

/* Registration opens as an accessible native dialog. */
.kv-dialog {
  position: fixed;
  width: min(440px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 26px;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #163c50;
  box-shadow: 0 28px 90px rgb(0 39 65 / 25%);
}

.kv-dialog::backdrop {
  background: rgb(4 36 66 / 48%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.kv-dialog[open] {
  animation: kv-reveal .2s ease-out both;
}

.kv-dialog-top {
  position: relative;
  padding-right: 36px;
}

.kv-dialog-top .eyebrow {
  color: #12775e;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.kv-dialog-top h2 {
  margin-top: 8px;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #123f59;
  letter-spacing: -.035em;
}

.kv-dialog-top h2#participantTitle:focus {
  outline: none;
  outline-offset: 0;
}

.kv-dialog-copy {
  margin: 10px 0 0;
  font-size: .84rem;
  color: #607984;
  line-height: 1.6;
}

.kv-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: -11px;
  right: -13px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #577780;
  font-family: inherit;
  font-size: 1.45rem;
  cursor: pointer;
  transition: background-color .16s;
}

.kv-close:hover {
  background: #eff6f6;
}

.kv-dialog .registration-card {
  margin-top: 23px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  gap: 16px;
}

.kv-dialog .registration-card .btn {
  min-height: 50px;
  margin-top: 3px;
}

.kv-field-note {
  display: block;
  margin-top: 3px;
  color: #6d858d;
  font-size: .7rem;
  font-weight: 400;
  line-height: 1.5;
}

.kv-dialog-note {
  margin: 15px 0 0;
  text-align: center;
  color: #6d858d;
  font-size: .69rem;
}

.kv-dialog .alert {
  margin: 16px 0 0;
}

/* Session hub. Status is conveyed through text as well as colour. */
.kv-page .topbar,
.kv-page .leaderboard-head {
  color: #fff;
  align-items: center;
}

.kv-page .topbar>div,
.kv-page .leaderboard-head>div {
  min-width: 0;
}

.kv-page .topbar h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.17;
  font-weight: 750;
  margin-top: 5px;
}

.kv-page .topbar .eyebrow,
.kv-page .leaderboard-head .eyebrow {
  color: #d5f4e8;
  font-size: .65rem;
  letter-spacing: .17em;
}

.kv-page .topbar p,
.kv-page .leaderboard-head p {
  color: #eff9fa;
  font-size: .84rem;
  margin-top: 7px;
}

.kv-page .icon-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex-shrink: 0;
  padding: 9px 14px;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 12px;
  color: #fff;
  font-size: .8rem;
}

.kv-page .icon-link:hover {
  background: rgb(255 255 255 / 13%);
}

.kv-page .event-banner {
  background: #f1faf7;
  color: #164e63;
  border: 1px solid #d4e8e1;
  border-radius: 19px;
  box-shadow: var(--shadow);
  margin-top: 25px;
  padding: 21px 23px;
}

.kv-page .event-banner .eyebrow {
  color: #2b7866;
  font-size: .65rem;
}

.kv-page .event-banner h2 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.kv-page .event-banner .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #0e6c52;
  font-size: .8rem;
  font-weight: 750;
  white-space: nowrap;
}

.kv-page .section-heading {
  margin: 28px 0 15px;
}

.kv-page .app-shell>.section-heading,
.kv-page .answer-review>.section-heading,
.kv-page .badge-row>h2 {
  color: #fff;
}

.kv-page .app-shell>.section-heading .eyebrow,
.kv-page .answer-review>.section-heading .eyebrow {
  color: #e1f8ef;
}

.kv-page .section-heading h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  color: #ffffff;
}

.kv-page .session-list {
  gap: 14px;
}

.kv-page .session-card {
  background: #fff;
  border: 1px solid #dce8e9;
  padding: 20px;
  border-radius: 20px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 17px;
  box-shadow: 0 10px 25px rgb(15 58 77 / 7%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Untuk kecocokan Safari */

  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.kv-page .session-card.is-ready {
  border-color: #71cda3;
  box-shadow: inset 4px 0 0 #12775e, 0 10px 25px rgb(15 58 77 / 8%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Untuk kecocokan Safari */

  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.kv-page .session-card.is-locked {
  opacity: 1;
  background: #edf3f4;
  border-color: #d9e6e8;
  box-shadow: none;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  /* Untuk kecocokan Safari */

  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.kv-page .session-number {
  width: 48px;
  height: 52px;
  border-radius: 15px;
  background: #e8f2f6;
  color: #175a87;
  font-size: 1rem;
  font-weight: 800;
}

.kv-page .is-ready .session-number {
  background: #e1f6e8;
  color: #0c6d51;
}

.kv-page .is-complete .session-number {
  background: #e4f3e9;
  color: #126a52;
}

.kv-page .is-locked .session-number {
  background: #e0e9ec;
  color: #708791;
}

.kv-page .session-info h3 {
  font-size: 1.06rem;
  line-height: 1.3;
  margin: 7px 0 5px;
}

.kv-page .session-info p,
.kv-page .session-info small {
  color: #5a737e;
  font-size: .79rem;
  line-height: 1.5;
}

.kv-page .session-info small {
  display: block;
  margin-top: 6px;
}

.kv-page .status-pill {
  min-height: 22px;
  padding: 3px 9px;
  font-size: .58rem;
  letter-spacing: .095em;
  font-weight: 800;
  line-height: 1.4;
  display: none;
}

.kv-page .status-success,
.kv-page .status-live {
  background: #dff3e8;
  color: #0a674b;
}

.kv-page .status-muted {
  background: #dee8ed;
  color: #4f6a76;
}

.kv-page .session-action {
  min-width: 0;
}

.kv-page .lock-icon {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  opacity: .7;
}

/* Quiz controls stay still while decorative art moves in the background. */
.kv-page .quiz-panel {
  background: #fff;
  padding: 30px;
  border: 1px solid #dce8e9;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgb(8 56 85 / 14%);
}

.kv-page .quiz-topbar {
  gap: 12px;
  color: #183f56;
  align-items: center;
}

.kv-page .quiz-topbar>div {
  min-width: 0;
  flex: 1;
}

.kv-page .quiz-topbar h1 {
  font-size: clamp(1.08rem, 3vw, 1.35rem);
  line-height: 1.3;
  margin-top: 4px;
}

.kv-page .quiz-topbar .eyebrow {
  color: #537e8e;
  font-size: .59rem;
  letter-spacing: .16em;
}

.kv-page .back-link {
  display: inline-flex;
  flex: 0 0 40px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 11px;
  background: #f0f5f6;
  color: #235a73;
  font-size: 1.25rem;
  padding: 0;
}

.kv-page .quiz-count {
  color: #1a6684;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.kv-page .quiz-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #6a818a;
  font-size: .72rem;
}

.kv-page .quiz-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .77rem;
  font-weight: 650;
  color: #346c7d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kv-page .progress-track {
  height: 6px;
  margin: 14px 0 28px;
  background: #e8f0f1;
}

.kv-page .progress-track span {
  background: linear-gradient(90deg, #12775e, #60bb78);
}

.kv-page .question-step {
  animation: kv-reveal .16s ease-out;
}

.kv-page .question-label {
  color: #12775e;
  font-size: .65rem;
  letter-spacing: .14em;
}

.kv-page .question-step h2 {
  font-size: clamp(1.28rem, 3.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 10px 0 25px;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

.kv-page .option-grid {
  gap: 12px;
}

.kv-page .option-card {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid #d5e3e7;
  border-radius: 14px;
  background: #fff;
  font-size: .92rem;
  font-weight: 550;
  line-height: 1.5;
  color: #294b5b;
  transition: border-color .16s, background-color .16s, box-shadow .16s;
}

.kv-page .option-card:hover {
  background: #f5faf8;
  border-color: #97c5b5;
}

.kv-page .option-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
}

.kv-page .option-key {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #edf3f5;
  color: #5c7c8c;
  font-size: .8rem;
  font-weight: 750;
}

.kv-page .option-card:has(input:checked) {
  background: #eaf7ef;
  border-color: #12775e;
  box-shadow: 0 0 0 1px #12775e;
  color: #104e3f;
}

.kv-page .option-card:has(input:checked) .option-key {
  background: #12775e;
  color: #fff;
}

.kv-page .option-card:has(input:focus-visible) {
  outline: 3px solid #5b9abb;
  outline-offset: 4px;
}

.kv-page .option-card:has(input:focus-visible):has(input:checked) {
  outline-color: #105492;
}

.kv-page .question-nav {
  border-top: 1px solid #e5eef0;
  padding-top: 21px;
  margin-top: 25px;
  gap: 10px;
  flex-wrap: wrap;
}

.kv-page .question-nav .btn-primary {
  margin-left: auto;
}

.kv-page .quiz-help {
  margin-top: 12px;
  color: #a03342;
  font-size: .78rem;
  line-height: 1.5;
}

.kv-page .quiz-help:empty {
  display: none;
}

.kv-page .quiz-panel .empty-state {
  padding: 35px 0;
}

/* Results and earned badges. */
.kv-page .score-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #075484, #12775e);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 42px rgb(4 48 71 / 17%);
}

.kv-page .score-card::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 170px;
  height: 170px;
  border: 26px solid rgb(148 255 127 / 9%);
  border-radius: 50%;
  pointer-events: none;
}

.kv-page .score-card .eyebrow {
  color: #daffee;
  letter-spacing: .16em;
  font-size: .63rem;
}

.kv-page .score-card strong {
  font-size: clamp(3.75rem, 12vw, 5rem);
  font-weight: 800;
  letter-spacing: -.05em;
  margin: 7px 0 12px;
  line-height: 1.1;
}

.kv-page .score-card>div {
  color: #e9fff4;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .81rem;
}

.kv-page .review-card {
  border-radius: 18px;
  margin: 13px 0;
  padding: 20px;
  background: #fff;
  box-shadow: 0 6px 20px rgb(13 57 75 / 5%);
}

.kv-page .review-correct {
  border: 1px solid #bcdccc;
  border-left: 4px solid #12775e;
}

.kv-page .review-wrong {
  border: 1px solid #ecd3d8;
  border-left: 4px solid #b93d4c;
}

.kv-page .review-top {
  align-items: center;
  font-size: .7rem;
  color: #63808c;
}

.kv-page .review-top strong {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: .59rem;
  letter-spacing: .07em;
}

.kv-page .review-correct .review-top strong {
  background: #e4f5eb;
  color: #087052;
}

.kv-page .review-wrong .review-top strong {
  background: #ffebef;
  color: #aa3546;
}

.kv-page .review-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin: 13px 0;
}

.kv-page .your-answer,
.kv-page .correct-answer {
  padding: 10px 12px;
  border-radius: 9px;
  line-height: 1.6;
  font-size: .8rem;
}

.kv-page .review-correct .your-answer {
  background: #eaf7ef;
  color: #0c694d;
}

.kv-page .review-wrong .your-answer {
  background: #fff0f2;
  color: #a32d40;
}

.kv-page .your-answer b {
  color: inherit;
}

.kv-page .correct-answer {
  background: #eaf7ef;
  color: #0c694d;
}

.kv-page .explanation {
  margin-top: 14px;
  padding-top: 13px;
  border-top-color: #d7e4e7;
  color: #587783;
  line-height: 1.6;
}

.kv-page .badge-row {
  margin-top: 28px;
}

.kv-page .badge-row>h2 {
  margin-bottom: 13px;
  font-size: 1.25rem;
}

.kv-page .badge-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 13px;
}

.kv-page .badge-card {
  border-radius: 19px;
  padding: 19px;
  border: 1px solid #daebe4;
  gap: 7px;
  transition: border-color .18s, box-shadow .18s;
}

.kv-page .badge-card:hover {
  border-color: #74bca1;
  box-shadow: 0 14px 30px rgb(13 75 60 / 14%);
}

.kv-page .badge-card strong {
  color: #155847;
}

.kv-page .badge-card small {
  color: #5f7983;
}

.kv-page .badge-icon {
  background: #eaf5ec;
  margin-bottom: 5px;
}

.kv-page .badge-public {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid #d9e9e2;
  padding: 36px 28px;
  gap: 12px;
  box-shadow: 0 20px 60px rgb(9 55 73 / 17%);
}

.kv-page .badge-public::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #105492, #12775e, #94ff7f);
}

.kv-page .badge-public .badge-icon.big {
  background: #e5f5e9;
  border: 1px solid #cce6d4;
  width: 100px;
  height: 100px;
  border-radius: 30px;
}

.kv-page .badge-public>.eyebrow {
  color: #187a60;
  font-size: .62rem;
  letter-spacing: .15em;
}

.kv-page .badge-public h1 {
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  line-height: 1.15;
  color: #125c4a;
}

.kv-page .badge-public>p {
  font-size: .86rem;
  color: #5e7a85;
}

.kv-page .badge-recipient {
  background: #f3faf6;
  border: 1px solid #dbece1;
  border-radius: 16px;
  padding: 19px;
  gap: 5px;
  margin: 8px 0;
}

.kv-page .badge-recipient strong {
  font-size: 1.25rem;
  line-height: 1.3;
}

.kv-page .badge-recipient span,
.kv-page .badge-recipient small {
  color: #607b84;
}

/* Leaderboard remains scrollable inside the card on narrow screens. */
.kv-page .leaderboard-head h1 {
  font-size: clamp(1.55rem, 3.7vw, 2rem);
  line-height: 1.2;
}

.kv-page .filter-tabs {
  padding: 24px 0 14px;
  gap: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 42%) transparent;
}

.kv-page .filter-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 12px;
  padding: 10px 16px;
  background: #f4fafb;
  color: #225674;
  font-size: .79rem;
  font-weight: 650;
}

.kv-page .filter-tabs a.active {
  background: #12775e;
  border-color: #b3f1c8;
  color: #fff;
}

.kv-page .filter-tabs a:hover {
  background: #e3f3ec;
  color: #135741;
}

.kv-page .filter-tabs a.active:hover {
  background: #0b634c;
  color: #fff;
}

.kv-page .leaderboard-card {
  padding: 24px;
  border-radius: 23px;
  border-color: #dce8e9;
  box-shadow: 0 18px 45px rgb(10 51 74 / 12%);
}

.kv-page .leaderboard-card>.section-heading {
  margin-top: 0;
}

.kv-page .leaderboard-card .section-heading .eyebrow {
  font-size: .6rem;
  color: #547b8d;
}

.kv-page .leaderboard-card .section-heading h2 {
  font-size: 1.25rem;
  margin-top: 3px;
}

.kv-page .live-dot {
  color: #167357;
  font-size: .72rem;
  white-space: nowrap;
}

.kv-page .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #b1cbd4 #eff5f5;
}

.kv-page table {
  min-width: 620px;
}

.kv-page th {
  color: #668493;
  font-size: .65rem;
  letter-spacing: .07em;
  padding-top: 12px;
  padding-bottom: 12px;
}

.kv-page td {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: .8rem;
  border-bottom-color: #eaf0f2;
}

.kv-page td small {
  color: #64828f;
  margin-top: 3px;
}

.kv-page .rank-number {
  width: 30px;
  height: 32px;
  border-radius: 9px;
  background: #eaf2f5;
  color: #3e7086;
}

.kv-page .rank-1 {
  background: #f4faf3;
}

.kv-page .rank-1 .rank-number {
  background: #e5f2c5;
  color: #446423;
}

.kv-page .rank-2 .rank-number {
  background: #e4f1f6;
  color: #35657b;
}

.kv-page .rank-3 .rank-number {
  background: #f5e9d9;
  color: #8f6032;
}

.kv-page .empty-state {
  color: #6c8490;
  font-size: .86rem;
}

.kv-page .bottom-actions {
  gap: 11px;
}

.kv-page .bottom-actions .btn {
  flex: 1 1 170px;
}

@keyframes kv-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (min-width: 1200px) and (min-height: 760px) {
  .kv-landing .kv-header {
    padding-top: 36px;
  }

  .kv-landing .kv-brand {
    margin-top: 34px;
  }

  .kv-main.kv-landing-main {
    padding-top: 34px;
  }
}

@media (orientation: portrait) {
  .kv-footer-art {
    /*! display: none; */
  }

  .kv-background img {
    object-position: center bottom;
  }

  .kv-landing .kv-main {
    padding-bottom: 150px;
  }
}

@media (max-width: 760px) {
  .kv-header {
    width: calc(100% - 36px);
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .kv-header img {
    max-height: 65px;
  }

  .kv-brand {
    width: min(100% - 42px, 470px);
    margin-top: 75px;
  }

  .kv-brand img {
    max-height: 140px;
  }

  .kv-brand-compact {
    width: min(100% - 70px, 290px);
    margin-top: 16px;
  }

  .kv-brand-compact img {
    max-height: 83px;
  }

  .kv-main,
  .kv-page .app-shell,
  .kv-page .leaderboard-shell,
  .kv-page .quiz-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .kv-main.kv-landing-main {
    padding-top: 25px;
  }

  .kv-hero-copy {
    max-width: 480px;
  }

  .kv-hero-copy p {
    max-width: 390px;
    font-size: .92rem;
  }

  .kv-hero-actions {
    gap: 10px;
    margin-top: 23px;
  }

  .kv-facts {
    max-width: 440px;
  }

  .kv-page .event-banner {
    padding: 18px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .kv-page .event-banner .text-link {
    min-height: 44px;
  }

  .kv-page .session-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .kv-page .session-number {
    width: 44px;
    height: 48px;
  }

  .kv-page .session-action {
  grid-column: 1 / -1; 
  display: flex;
  justify-content: center; /* Membuat konten di dalamnya ke tengah */
  width: 100%;
  }

  .kv-page .session-action .btn {
    width: 100%;
    margin-left: 0px;
  }

  .kv-page .is-locked .session-action {
    align-self: start;
  }

  .kv-page .is-locked .lock-icon {
    min-height: 25px;
    font-size: .85rem;
    padding: 0;
  }

  .kv-page .quiz-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .kv-page .leaderboard-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .kv-page .leaderboard-card {
    padding: 19px;
  }

  .kv-page .filter-tabs {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .kv-header {
    width: calc(100% - 28px);
    padding-top: 18px;
  }

  .kv-header img {
    max-height: 50px;
  }

  .kv-brand {
    margin-top: 21px;
    width: calc(100% - 48px);
  }

  .kv-brand-fallback {
    padding: 4px 0;
  }

  .kv-brand-fallback h1 {
    font-size: 2.15rem;
  }

  .kv-brand-fallback small {
    font-size: .59rem;
  }

  .kv-brand-compact {
    max-width: 260px;
    margin-top: 54px;
  }

  .kv-brand-compact .kv-brand-fallback h1 {
    font-size: 1.5rem;
  }

  .kv-main,
  .kv-page .app-shell,
  .kv-page .leaderboard-shell,
  .kv-page .quiz-shell {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 23px;
  }

  .kv-hero-copy .eyebrow {
    font-size: .59rem;
    margin-bottom: 11px;
  }

  .kv-hero-copy h2 {
    font-size: clamp(1.65rem, 7.7vw, 2.05rem);
  }

  .kv-hero-copy p {
    font-size: .88rem;
    line-height: 1.65;
    margin-top: 12px;
  }

  .kv-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 350px;
    margin-inline: auto;
  }

  .kv-hero-actions .btn {
    min-height: 48px;
    width: 100%;
  }

  .kv-facts {
    margin-top: 20px;
    padding: 13px 5px;
    border-radius: 15px;
  }

  .kv-facts>* {
    padding: 0 5px;
  }

  .kv-facts strong {
    font-size: .82rem;
  }

  .kv-facts small,
  .kv-facts span {
    font-size: .62rem;
  }

  .kv-page-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    font-size: .64rem;
  }

  .kv-dialog {
    width: calc(100% - 24px);
    padding: 24px 22px;
    border-radius: 23px;
    max-height: calc(100dvh - 24px);
  }

  .kv-dialog-top h2 {
    font-size: 1.45rem;
  }

  .kv-dialog-copy {
    font-size: .8rem;
  }

  .kv-dialog .registration-card {
    gap: 14px;
    margin-top: 20px;
  }

  .kv-page .topbar {
    gap: 12px;
  }

  .kv-page .topbar h1 {
    font-size: 1.55rem;
  }

  .kv-page .topbar p {
    font-size: .76rem;
  }

  .kv-page .icon-link {
    font-size: .75rem;
    padding-inline: 11px;
  }

  .kv-page .session-card {
    padding: 16px;
    gap: 12px;
    border-radius: 18px;
  }

  .kv-page .session-info h3 {
    font-size: 1rem;
  }

  .kv-page .session-info p,
  .kv-page .session-info small {
    font-size: .75rem;
  }

  .kv-page .quiz-panel {
    padding: 21px 17px;
    border-radius: 21px;
  }

  .kv-page .quiz-topbar {
    gap: 10px;
  }

  .kv-page .quiz-topbar h1 {
    font-size: 1.02rem;
  }

  .kv-page .back-link {
    flex-basis: 44px;
  }

  .kv-page .quiz-count {
    font-size: .75rem;
  }

  .kv-page .quiz-header-meta {
    font-size: .67rem;
    gap: 6px;
  }

  .kv-page .quiz-time {
    font-size: .7rem;
  }

  .kv-page .progress-track {
    margin-bottom: 24px;
  }

  .kv-page .question-step h2 {
    font-size: 1.22rem;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .kv-page .option-card {
    padding: 12px;
    gap: 11px;
    min-height: 62px;
    font-size: .87rem;
  }

  .kv-page .question-nav .btn {
    padding-inline: 11px;
    font-size: .76rem;
  }

  .kv-page .question-nav {
    margin-top: 22px;
    padding-top: 19px;
    gap: 8px;
  }

  .kv-page .score-card {
    padding: 25px 20px;
  }

  .kv-page .score-card>div {
    gap: 12px;
    font-size: .76rem;
  }

  .kv-page .review-card {
    padding: 17px;
  }

  .kv-page .review-card h3 {
    font-size: .92rem;
  }

  .kv-page .badge-public {
    padding: 32px 22px;
  }

  .kv-page .leaderboard-card {
    padding: 18px 15px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .kv-header {
    padding-top: 12px;
    max-width: 480px;
  }

  .kv-header img {
    max-height: 50px;
  }

  .kv-brand {
    margin-top: 14px;
    max-width: 330px;
  }

  .kv-brand img {
    max-height: 100px;
  }

  .kv-main.kv-landing-main {
    padding-top: 18px;
  }

  .kv-dialog {
    max-height: calc(100dvh - 20px);
    padding: 22px;
  }

  .kv-footer-art {
    width: 35vw;
  }
}

@media (prefers-reduced-motion: reduce) {

  .kv-page *,
  .kv-page *::before,
  .kv-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .kv-parallax {
    transform: none !important;
    will-change: auto;
  }
}

@media print {
  body.kv-page {
    background: #fff;
    color: #163c50;
  }

  .kv-scene,
  .kv-page-footer,
  .kv-page .bottom-actions,
  .kv-page .filter-tabs {
    display: none;
  }

  .kv-page .topbar,
  .kv-page .topbar p,
  .kv-page .leaderboard-head {
    color: #163c50;
  }

  .kv-page .review-card,
  .kv-page .badge-public {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Portrait achievement card. Master artwork: 1240 x 1748 px (A6 portrait ratio). */
.kv-badge .badge-page-shell {
  max-width: 760px;
  padding-top: 17px;
}

.kv-badge .badge-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.kv-badge .badge-page-actions .btn {
  min-height: 42px;
  font-size: .75rem;
}

.kv-badge .badge-page-note {
  margin: 15px auto 0;
  max-width: 560px;
  text-align: center;
  color: #e5f5f0;
  font-size: .72rem;
  text-shadow: 0 1px 4px rgb(11 53 68 / 30%);
}

.kv-badge .badge-portrait-public {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.kv-badge .badge-portrait-card {
  --badge-background-image: url('../../img/badge_background.jpg');
  --badge-rx: 0deg;
  --badge-ry: 0deg;
  --badge-shine-x: 50%;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 105 / 148;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1250px) rotateX(var(--badge-rx)) rotateY(var(--badge-ry));
  transform-style: preserve-3d;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 30px;
  color: #fff;
  background-image: var(--badge-background-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 78px rgb(3 42 66 / 32%), 0 10px 24px rgb(5 40 58 / 24%), inset 0 0 0 1px rgb(255 255 255 / 17%);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.kv-badge .badge-portrait-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 0%) 43%, rgb(255 255 255 / 38%) 49%, rgb(255 255 255 / 0%) 55%, transparent 62%);
  transform: translateX(calc(var(--badge-shine-x) - 50%)) rotate(-12deg);
  mix-blend-mode: screen;
  opacity: .65;
}

.kv-badge .badge-portrait-card::after {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgb(213 255 226 / 62%);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgb(9 56 81 / 25%), inset 0 0 30px rgb(155 255 203 / 11%);
}

.kv-badge .badge-card-halo {
  position: absolute;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  left: 10%;
  top: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(184 255 180 / 40%), rgb(71 205 181 / 13%) 45%, transparent 70%);
  filter: blur(4px);
}

.kv-badge .badge-card-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px 44px 27px;
  text-align: center;
  transform: translateZ(30px);
}

.kv-badge .badge-card-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  color: #dfffe7;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.kv-badge .badge-card-event {
  max-width: 55%;
  color: #d2f4ee;
  font-size: .52rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-align: right;
  text-transform: none;
}

.kv-badge .badge-card-emblem {
  width: 42%;
  max-width: 180px;
  min-width: 100px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 7% auto 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff9d6, #b9ffbb 20%, #159c83 52%, #0c5079 75%);
  border: 4px solid rgb(225 255 216 / 78%);
  box-shadow: 0 0 0 7px rgb(164 255 184 / 13%), 0 16px 35px rgb(0 32 55 / 32%), inset -7px -10px 17px rgb(1 42 67 / 28%), inset 7px 5px 13px rgb(255 255 255 / 45%);
  transform: translateZ(45px);
}

.kv-badge .badge-card-emblem .badge-icon.big {
  display: grid;
  place-items: center;
  width: 78%;
  height: 78%;
  margin: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 13%);
  border: 1px solid rgb(255 255 255 / 43%);
  font-size: clamp(2.7rem, 10vw, 4.4rem);
  filter: drop-shadow(0 5px 7px rgb(0 40 50 / 30%));
}

.kv-badge .badge-card-label {
  margin: 0;
  color: #c9f8df;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.kv-badge .badge-portrait-card h1 {
  max-width: 100%;
  margin: 6px 0 4px;
  color: #fff;
  font-size: clamp(1.35rem, 4.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-shadow: 0 2px 14px rgb(0 27 52 / 30%);
}

.kv-badge .badge-card-meta {
  margin: 0;
  color: #d8f6ed;
  font-size: .7rem;
  font-weight: 650;
}

.kv-badge .badge-card-meta span {
  color: #a6f795;
  padding: 0 4px;
}

.kv-badge .badge-card-divider {
  width: 52%;
  height: 1px;
  margin: 7% 0 5%;
  background: linear-gradient(90deg, transparent, rgb(212 255 222 / 65%), transparent);
}

.kv-badge .badge-card-title {
  margin: 0;
  color: #eaffca;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 11px rgb(0 26 45 / 38%);
}

.kv-badge .badge-card-description {
  max-width: 370px;
  margin: 7px 0 0;
  color: #d7f3eb;
  font-size: .7rem;
  line-height: 1.5;
}

.kv-badge .badge-card-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid rgb(215 255 224 / 23%);
  color: #c7ebe2;
  font-size: .57rem;
  line-height: 1.35;
}

.kv-badge .badge-bolt {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 37%;
  opacity: .88;
  background: linear-gradient(180deg, transparent, #f4ffd7 14%, #9bffd0 50%, transparent 92%);
  filter: drop-shadow(0 0 6px #adffc7) drop-shadow(0 0 17px rgb(148 255 127 / 80%));
  clip-path: polygon(42% 0, 100% 0, 59% 39%, 89% 39%, 25% 100%, 39% 53%, 7% 53%);
  transform-origin: center;
  animation: badge-bolt-flash 2.8s ease-in-out infinite;
}

.kv-badge .badge-bolt-one {
  top: 8%;
  left: 13%;
  transform: rotate(-27deg);
}

.kv-badge .badge-bolt-two {
  top: 24%;
  right: 11%;
  height: 29%;
  transform: rotate(34deg) scale(.8);
  animation-delay: .8s;
}

.kv-badge .badge-bolt-three {
  bottom: 11%;
  left: 9%;
  height: 22%;
  transform: rotate(-43deg) scale(.7);
  animation-delay: 1.6s;
}

.kv-badge .badge-card-spark {
  position: absolute;
  z-index: 2;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ecffd7;
  box-shadow: 0 0 4px 2px #9dffca, 0 0 15px 5px rgb(148 255 127 / 64%);
  animation: badge-sparkle 2.1s ease-in-out infinite;
}

.kv-badge .spark-one {
  top: 18%;
  left: 25%;
}

.kv-badge .spark-two {
  top: 33%;
  right: 24%;
  animation-delay: .65s;
}

.kv-badge .spark-three {
  bottom: 24%;
  right: 15%;
  animation-delay: 1.15s;
}

@keyframes badge-bolt-flash {

  0%,
  65%,
  100% {
    opacity: .15;
  }

  70%,
  78% {
    opacity: .95;
  }

  74% {
    opacity: .35;
  }
}

@keyframes badge-sparkle {

  0%,
  100% {
    opacity: .18;
    transform: scale(.45);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

.kv-badge .badge-portrait-card:hover {
  box-shadow: 0 40px 90px rgb(3 42 66 / 38%), 0 13px 28px rgb(5 40 58 / 27%), inset 0 0 0 1px rgb(255 255 255 / 23%);
}

@media (max-width: 480px) {
  .kv-badge .badge-page-shell {
    padding-top: 10px;
  }

  .kv-badge .badge-page-actions {
    justify-content: stretch;
  }

  .kv-badge .badge-page-actions .btn {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .kv-badge .badge-card-content {
    padding: 28px 28px 22px;
  }

  .kv-badge .badge-card-top {
    font-size: .5rem;
  }

  .kv-badge .badge-card-event {
    font-size: .46rem;
  }

  .kv-badge .badge-card-description {
    font-size: .64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-badge .badge-portrait-card {
    transform: none !important;
    transition: none;
  }

  .kv-badge .badge-bolt,
  .kv-badge .badge-card-spark {
    animation: none !important;
    opacity: .65;
  }
}

@media print {
  @page {
    size: A6 portrait;
    margin: 0;
  }

  body.kv-badge {
    background: #fff !important;
  }

  .kv-badge .kv-scene,
  .kv-badge .kv-header,
  .kv-badge .kv-brand,
  .kv-badge .kv-page-footer,
  .kv-badge .badge-page-actions,
  .kv-badge .badge-page-note {
    display: none !important;
  }

  .kv-badge .badge-page-shell {
    width: 105mm;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .kv-badge .badge-portrait-public {
    display: block;
    width: 105mm;
  }

  .kv-badge .badge-portrait-card {
    width: 105mm;
    height: 148mm;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .kv-badge .badge-portrait-card::before {
    display: none;
  }

  .kv-badge .badge-portrait-card::after {
    inset: 4mm;
    border-radius: 0;
    box-shadow: none;
  }

  .kv-badge .badge-card-halo {
    opacity: .35;
    filter: none;
  }

  .kv-badge .badge-bolt,
  .kv-badge .badge-card-spark {
    display: none;
  }

  .kv-badge .badge-card-content {
    transform: none;
    padding: 9mm 11mm 8mm;
  }

  .kv-badge .badge-card-emblem {
    transform: none;
  }
}

/* Remembered identity: switching participants remains an explicit action. */
.kv-returning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ecf8f0;
  border: 1px solid #cfe9d9;
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 18px;
  color: #2d6653;
  font-size: .76rem;
}

.kv-returning>div {
  min-width: 0;
}

.kv-returning-name {
  display: block;
  font-size: .9rem;
  font-weight: 750;
  color: #115740;
  line-height: 1.4;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.kv-forget {
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #105d48;
  font-family: inherit;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.kv-forget:hover {
  background: #dcefe3;
}

.kv-page .kv-brand-fallback .eyebrow {
  color: #def9ee;
  font-size: .62rem;
  letter-spacing: .19em;
}

/* Apply the same palette to admin without decorative layers behind data tables. */
.admin-body,
.login-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.login-body h1,
.admin-body .btn,
.login-body .btn {
  font-family: inherit;
}

.admin-sidebar {
  background: #0c426a;
}

.admin-sidebar nav a:hover,
.admin-logout:hover {
  background: #1a6082;
}

.admin-body .role-chip {
  background: #e6f3ed;
  color: #12775e;
}

.admin-body .btn-primary,
.login-body .btn-primary {
  background: #12775e;
  box-shadow: 0 7px 18px rgb(10 89 68 / 15%);
}

/* Keep review headings readable over the light area of the artwork. */
.kv-page .answer-review>.section-heading,
.kv-page .badge-row>h2 {
  padding: 14px 18px;
  background: #f1faf7;
  color: #163c50;
  border: 1px solid #d4e8e1;
  border-radius: 14px;
}

.kv-page .answer-review>.section-heading .eyebrow {
  color: #2b7866;
}

/* Badge motion revision: restrained rotation and foil accents instead of lightning/shine sweep. */
.kv-badge .badge-portrait-public {
  transform-origin: 50% 60%;
  animation: badge-card-float 6.5s ease-in-out infinite;
}

.kv-badge .badge-portrait-card::before {
  background: radial-gradient(circle at 50% 13%, rgb(225 255 220 / 22%), transparent 35%);
  transform: none;
  opacity: .48;
  mix-blend-mode: screen;
}

.kv-badge .badge-bolt {
  width: 13px;
  height: 13px;
  opacity: .9;
  clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 63%, 50% 100%, 39% 63%, 0 50%, 39% 37%);
  background: #e4ffb0;
  filter: drop-shadow(0 0 4px #bcffbd) drop-shadow(0 0 11px rgb(150 255 127 / 55%));
  animation: badge-star-pulse 2.8s ease-in-out infinite;
}

.kv-badge .badge-bolt-one {
  top: 17%;
  left: 18%;
  transform: rotate(0deg) scale(.85);
}

.kv-badge .badge-bolt-two {
  top: 27%;
  right: 17%;
  height: 13px;
  transform: rotate(0deg) scale(1.15);
  animation-delay: .8s;
}

.kv-badge .badge-bolt-three {
  bottom: 18%;
  left: 16%;
  height: 9px;
  transform: rotate(0deg) scale(.75);
  animation-delay: 1.5s;
}

.kv-badge .badge-card-spark {
  width: 3px;
  background: #f3ffd5;
  box-shadow: 0 0 4px 1px #b8ffbb, 0 0 10px 2px rgb(148 255 127 / 42%);
  animation-duration: 2.4s;
}

@keyframes badge-card-float {

  0%,
  100% {
    transform: translateY(1px) rotateZ(-.45deg);
  }

  50% {
    transform: translateY(-2px) rotateZ(.45deg);
  }
}

@keyframes badge-star-pulse {

  0%,
  100% {
    opacity: .28;
    transform: scale(.72);
  }

  48% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-badge .badge-portrait-public {
    animation: none !important;
    transform: none !important;
  }

  .kv-badge .badge-bolt,
  .kv-badge .badge-card-spark {
    animation: none !important;
  }
}

@media print {
  .kv-badge .badge-portrait-public {
    animation: none !important;
    transform: none !important;
  }

  .kv-badge .badge-portrait-card::before {
    display: none;
  }
}