:root {
  --blue-950: #011a63;
  --blue-900: #032982;
  --blue-700: #0755b8;
  --cyan: #31d2d0;
  --teal: #0da88d;
  --teal-soft: rgba(25, 181, 157, 0.7);
  --gold: #f6c23a;
  --gold-light: #ffe46a;
  --white: #ffffff;
  --ink: #072260;
  --shadow: 0 22px 50px rgba(0, 10, 55, 0.38);
  --image-header-height: clamp(22px, 4.8vh, 40px);
  --screen-block-padding: clamp(12px, 2vh, 24px);
  --screen-inline-padding: clamp(14px, 2.4vw, 34px);
  --image-header-edge-space: clamp(18px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--blue-950);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: var(--screen-block-padding) var(--screen-inline-padding);
  background:
    linear-gradient(180deg, rgba(3, 24, 93, 0.14), rgba(2, 96, 154, 0.2)),
    url("../images/bg-polos.png") center / cover no-repeat,
    radial-gradient(
      circle at 50% 20%,
      #073ca2 0,
      var(--blue-950) 62%,
      #022062 100%
    );
}

.screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(6, 213, 199, 0.68),
    rgba(1, 53, 139, 0)
  );
}

.home-screen,
.info-screen,
.play-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.side-pattern {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(58px, 6.4vw, 118px);
  opacity: 0.42;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(47, 218, 201, 0.18) 0 9px,
      transparent 9px 19px
    ),
    linear-gradient(180deg, rgba(13, 178, 181, 0.9), rgba(6, 45, 130, 0.32));
}

.side-left {
  left: 0;
}

.side-right {
  right: 0;
}

.borobudur {
  position: absolute;
  bottom: 0;
  width: min(23vw, 360px);
  height: 34vh;
  opacity: 0.2;
  background: url("../images/borobudur.png") center bottom / contain no-repeat;
}

.borobudur-left {
  left: 0;
}

.borobudur-right {
  right: 0;
  transform: scaleX(-1);
}

.image-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 32px);
  flex: 0 0 auto;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  max-height: var(--image-header-height);
  padding: 0 var(--image-header-edge-space);
}

.image-header img {
  display: block;
  min-width: 0;
  max-height: var(--image-header-height);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.image-header-left {
  flex: 0 1 auto;
  width: min(54vw, 640px);
}

.image-header-right {
  flex: 0 1 auto;
  width: min(34vw, 420px);
}

.top-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  width: min(100%, 820px);
  min-height: 76px;
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}

.brand-mark strong {
  display: block;
  font-size: clamp(18px, 2vw, 29px);
  line-height: 1;
}

.brand-mark small {
  display: block;
  margin-top: 4px;
  font-size: clamp(10px, 0.9vw, 15px);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bi-seal,
.province-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(42px, 4.3vw, 58px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--blue-900);
  background: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.1vw, 31px);
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.province-seal {
  color: var(--white);
  background: linear-gradient(180deg, #13a057, #f4c12f);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1.7vw, 24px);
}

.home-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vh, 20px) 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
}

.hero-title h1 {
  margin: 0;
  color: #67e4ef;
  font-size: clamp(38px, min(6.2vw, 10vh), 82px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.95;
  text-shadow:
    2px 2px 0 #ffffff,
    0 7px 0 rgba(0, 20, 79, 0.62),
    0 0 22px rgba(60, 241, 255, 0.88);
}

.hero-title span {
  display: block;
  width: min(48vw, 620px);
  height: 2px;
  margin: clamp(8px, 1.8vh, 16px) auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.96),
    transparent
  );
  box-shadow: 0 0 16px rgba(93, 235, 255, 0.95);
}

.game-choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 48px);
  width: min(100%, 1280px);
  margin: clamp(16px, 5vh, 48px) auto 0;
}

.home-content .game-choice-grid {
  margin-top: clamp(14px, 4vh, 38px);
}

.choice-card {
  min-height: clamp(190px, min(28vw, 36vh), 360px);
  padding: 3px;
  border-radius: 36px;
  background: linear-gradient(
    135deg,
    rgba(104, 255, 219, 0.9),
    rgba(93, 160, 255, 0.96)
  );
  box-shadow: var(--shadow);
}

.choice-link {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vh, 24px);
  overflow: hidden;
  border-radius: 33px;
  padding: clamp(18px, 3.2vw, 46px);
  background:
    radial-gradient(
      circle at 24% 18%,
      rgba(48, 226, 177, 0.76),
      rgba(9, 112, 159, 0.78) 42%,
      rgba(6, 54, 133, 0.9)
    ),
    linear-gradient(135deg, rgba(33, 188, 149, 0.82), rgba(8, 44, 136, 0.92));
}

.choice-link::before {
  content: "";
  position: absolute;
  inset: 9%;
  z-index: -1;
  opacity: 0.15;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0 14px,
    #ffffff 16px 18px
  );
  transform: rotate(-10deg);
}

.choice-link:hover,
.choice-link:focus-visible {
  outline: 5px solid rgba(255, 228, 106, 0.8);
  transform: translateY(-4px);
}

.choice-title,
.choice-note {
  display: block;
  text-align: center;
  color: var(--gold-light);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow:
    4px 5px 0 #091b3d,
    -2px 2px 0 #091b3d,
    0 10px 12px rgba(0, 0, 0, 0.42);
}

.choice-title {
  font-size: clamp(32px, min(4.9vw, 8vh), 68px);
  line-height: 0.96;
}

.choice-note {
  margin-top: clamp(-18px, -2vh, -8px);
  font-size: clamp(18px, min(2.3vw, 4.5vh), 34px);
}

.play-pill {
  display: inline-grid;
  place-items: center;
  min-width: clamp(132px, 10vw, 178px);
  min-height: clamp(38px, min(3.9vw, 6vh), 56px);
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffed7b, #dda223);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.42),
    0 5px 0 rgba(120, 72, 0, 0.45);
  font-size: clamp(20px, min(2.2vw, 4.5vh), 31px);
  font-weight: 900;
}

.info-panel,
.memory-board,
.quiz-board,
.game-topbar {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
}

.info-screen {
  justify-content: center;
  gap: clamp(12px, 2.5vh, 26px);
}

.info-panel {
  border: 2px solid rgba(115, 246, 224, 0.7);
  border-radius: 30px;
  max-height: calc(
    100dvh - clamp(12px, 2vh, 24px) * 2 - clamp(42px, 10vh, 86px) -
      clamp(56px, 13vh, 100px) - clamp(12px, 2.5vh, 26px)
  );
  overflow: hidden;
  padding: clamp(18px, min(4vw, 4vh), 44px);
  background: rgba(3, 35, 113, 0.78);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: #8df5f2;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-panel h1,
.game-topbar h1 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(30px, min(5vw, 7vh), 66px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 4px 0 #071a4d;
}

.lead,
.info-panel p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, min(1.7vw, 2.8vh), 23px);
  line-height: 1.45;
}

.steps {
  display: grid;
  gap: clamp(8px, 1.6vh, 14px);
  margin: clamp(14px, 2.8vh, 26px) 0;
  padding-left: 26px;
  font-size: clamp(16px, min(1.6vw, 2.8vh), 22px);
  font-weight: 700;
  line-height: 1.4;
}

.actions,
.game-status {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-grid;
  min-width: 142px;
  min-height: clamp(42px, 6vh, 54px);
  place-items: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 24px;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(180deg, #fff282, var(--gold));
  box-shadow:
    0 6px 0 rgba(107, 70, 0, 0.58),
    0 14px 24px rgba(0, 0, 0, 0.24);
  font-size: clamp(16px, 2.4vh, 20px);
  font-weight: 900;
}

.button:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 rgba(107, 70, 0, 0.58),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.button-secondary,
.back-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.button-small {
  min-width: 110px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 16px;
}

.settings-float-link {
  position: fixed;
  z-index: 12;
  left: clamp(14px, 2.4vw, 34px);
  bottom: clamp(14px, 2.4vh, 30px);
  display: grid;
  width: clamp(48px, 5vw, 64px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  color: #063a8b;
  background: linear-gradient(180deg, #fff282, var(--gold));
  box-shadow:
    0 6px 0 rgba(107, 70, 0, 0.58),
    0 14px 24px rgba(0, 0, 0, 0.24);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
}

.settings-screen {
  justify-content: flex-start;
  gap: clamp(12px, 2vh, 22px);
}

.settings-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  margin-top: clamp(12px, 3vh, 34px);
  padding: clamp(22px, 4vh, 42px);
  border: 2px solid rgba(115, 246, 224, 0.7);
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(4, 129, 146, 0.9),
    rgba(5, 64, 135, 0.86)
  );
  box-shadow: var(--shadow);
}

.duration-settings-screen .settings-panel {
  width: min(100%, 940px);
  margin-top: clamp(6px, 1.6vh, 16px);
  padding: clamp(16px, 2.6vh, 28px);
}

.duration-settings-screen .settings-form {
  gap: clamp(10px, 1.6vh, 16px);
}

.password-settings-screen .settings-panel {
  width: min(100%, 720px);
  margin-top: clamp(6px, 1.8vh, 18px);
  padding: clamp(16px, 2.8vh, 30px);
}

.password-settings-screen .settings-form {
  gap: clamp(12px, 2vh, 18px);
}

.password-settings-screen .settings-password-grid {
  gap: clamp(10px, 1.8vh, 16px);
}

.password-settings-screen .settings-form input {
  min-height: clamp(38px, 5.8vh, 48px);
  border-width: 2px;
  border-radius: 10px;
  padding: 8px 12px;
}

.settings-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.settings-panel h1 {
  margin: 0 0 clamp(18px, 3vh, 28px);
  color: var(--gold-light);
  font-size: clamp(30px, min(4.4vw, 7vh), 58px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 4px 0 #071a4d;
}

.settings-form {
  display: grid;
  gap: clamp(16px, 2.5vh, 24px);
}

.settings-menu {
  display: grid;
  gap: clamp(14px, 2.4vh, 22px);
  margin-bottom: clamp(16px, 3vh, 28px);
}

.settings-menu-card {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(121, 246, 236, 0.5);
  border-radius: 18px;
  padding: clamp(16px, 2.8vh, 24px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.settings-menu-card:hover,
.settings-menu-card:focus-visible {
  outline: 4px solid rgba(255, 228, 106, 0.72);
  background: rgba(255, 255, 255, 0.18);
}

.settings-menu-card strong {
  color: var(--gold-light);
  font-size: clamp(20px, 3vh, 28px);
  text-transform: uppercase;
}

.settings-menu-card span {
  font-size: clamp(15px, 2.2vh, 19px);
  font-weight: 800;
  line-height: 1.25;
}

.settings-fieldset {
  display: grid;
  gap: clamp(12px, 2vh, 18px);
  margin: 0;
  border: 2px solid rgba(121, 246, 236, 0.5);
  border-radius: 18px;
  padding: 16px;
}

.settings-fieldset > legend {
  padding: 0 8px;
  color: var(--gold-light);
  font-size: clamp(18px, 2.5vh, 24px);
  font-weight: 900;
  text-transform: uppercase;
}

.settings-form label {
  display: grid;
  gap: 8px;
  color: #ffffff;
  font-size: clamp(16px, 2.4vh, 20px);
  font-weight: 900;
}

.settings-form input {
  width: 100%;
  min-height: clamp(46px, 7vh, 58px);
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
  font-weight: 900;
}

.duration-grid {
  display: grid;
  gap: clamp(8px, 1.4vh, 14px);
}

.duration-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 128px 128px;
  gap: clamp(10px, 1.8vw, 16px);
  align-items: center;
  margin: 0;
  border: 0;
  border-radius: 14px;
  padding: clamp(8px, 1.4vh, 12px) clamp(10px, 1.6vw, 16px);
  background: rgba(255, 255, 255, 0.1);
}

.duration-title {
  color: var(--gold-light);
  font-size: clamp(17px, 2.2vh, 22px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.duration-row label {
  gap: 4px;
  font-size: clamp(13px, 1.8vh, 16px);
}

.duration-row input {
  min-height: clamp(36px, 5.4vh, 46px);
  border-width: 2px;
  border-radius: 10px;
  padding: 7px 10px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}

.settings-password-grid,
.settings-upload-row {
  display: grid;
  gap: clamp(12px, 2vh, 18px);
}

.settings-upload-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.qris-preview {
  display: grid;
  place-items: center;
  width: clamp(110px, 10vw, 150px);
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 10px;
  background: #ffffff;
}

.qris-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.settings-logout {
  display: inline-grid;
  min-width: 104px;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  font-weight: 900;
  text-transform: uppercase;
}

.form-alert {
  margin: 0 0 16px;
  border-radius: 14px;
  padding: 12px 16px;
  color: #ffffff;
  background: rgba(184, 30, 58, 0.72);
  font-weight: 900;
}

.form-alert.success {
  background: rgba(40, 159, 65, 0.78);
}

.memory-how-to-screen {
  justify-content: flex-start;
  gap: clamp(12px, 2vh, 22px);
}

.memory-how-to-screen .image-header {
  margin-top: 0;
}

.memory-how-to-content {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  align-content: center;
  justify-items: center;
  gap: clamp(16px, 2.4vh, 28px);
}

.memory-how-to-panel {
  position: relative;
  z-index: 1;
  width: min(72vw, 1010px);
  min-height: clamp(360px, 56vh, 520px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(18px, 2.7vh, 30px);
  margin-top: 0;
  border: 4px solid #06377f;
  border-radius: 36px;
  padding: clamp(30px, 4.8vh, 58px) clamp(34px, 5vw, 76px);
  color: #063a8b;
  background:
    radial-gradient(circle at 50% 45%, #fff58d 0, #f7d953 48%, #dfa92f 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 225, 82, 0.88),
    0 22px 40px rgba(0, 14, 76, 0.25);
  text-align: center;
}

.memory-how-to-panel h1 {
  margin: 0;
  color: #063a8b;
  font-size: clamp(34px, min(3.6vw, 5.6vh), 54px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.memory-how-to-steps {
  display: grid;
  gap: clamp(14px, 2.3vh, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #063a8b;
  font-size: clamp(18px, min(1.9vw, 3vh), 28px);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.memory-how-to-steps li::before {
  content: "-";
}

.memory-how-to-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.memory-start-button,
.memory-back-button {
  position: relative;
  z-index: 1;
  min-width: clamp(170px, 12vw, 230px);
  min-height: clamp(56px, 7.4vh, 74px);
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  color: #063a8b;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.34), transparent 38%),
    linear-gradient(180deg, #fff16c, #f4bd36);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.42),
    0 6px 0 rgba(150, 89, 0, 0.48),
    0 14px 26px rgba(0, 0, 0, 0.22);
  font-size: clamp(26px, min(2.5vw, 4.2vh), 40px);
  text-transform: uppercase;
}

.memory-back-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 6px 0 rgba(0, 20, 80, 0.4),
    0 14px 26px rgba(0, 0, 0, 0.2);
}

.play-screen {
  gap: clamp(10px, 2vh, 18px);
}

.game-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  padding: clamp(8px, 1.6vh, 14px);
  border: 1px solid rgba(115, 246, 224, 0.55);
  border-radius: 24px;
  background: rgba(2, 31, 102, 0.75);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-grid;
  min-width: 104px;
  min-height: clamp(38px, 5.5vh, 48px);
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.timer {
  min-width: 124px;
  padding: clamp(8px, 1.5vh, 12px) 16px;
  border-radius: 16px;
  color: var(--gold-light);
  background: #051d58;
  box-shadow: inset 0 0 0 3px rgba(255, 228, 106, 0.8);
  font-size: clamp(22px, min(3vw, 5vh), 38px);
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.timer.warning {
  color: #ffffff;
  background: #b71935;
}

.memory-board,
.quiz-board {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, min(2vw, 2vh), 20px);
  border: 1px solid rgba(115, 246, 224, 0.52);
  border-radius: 28px;
  background: rgba(3, 35, 113, 0.58);
  box-shadow: var(--shadow);
}

.game-status {
  justify-content: center;
  margin-bottom: clamp(8px, 1.5vh, 14px);
}

.game-status span {
  min-width: 140px;
  padding: clamp(7px, 1.3vh, 10px) 16px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 900;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, min(1vw, 1.3vh), 12px);
  height: calc(100% - clamp(46px, 7vh, 58px));
  align-content: center;
}

.memory-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  perspective: 900px;
}

.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.32s ease;
}

.memory-card.flipped .card-inner,
.memory-card.matched .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  backface-visibility: hidden;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.28);
}

.card-back {
  border: 3px solid rgba(115, 246, 224, 0.88);
  background: linear-gradient(135deg, var(--teal), var(--blue-900));
  color: var(--gold-light);
  font-size: clamp(28px, min(5vw, 7vh), 52px);
  font-weight: 900;
}

.card-front {
  transform: rotateY(180deg);
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: #ffffff;
}

.card-front img {
  width: 82%;
  max-height: 78%;
  object-fit: contain;
}

.memory-card.matched .card-face {
  outline: 5px solid #35e56f;
}

.question-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(10px, 2vh, 18px);
  max-width: 960px;
  max-height: calc(100% - clamp(46px, 7vh, 58px));
  margin: clamp(10px, 2vh, 18px) auto 0;
  overflow: hidden;
  padding: clamp(16px, min(3vw, 3vh), 32px);
  border-radius: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
}

.question-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, min(2.4vw, 3.8vh), 30px);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.6vh, 14px);
  min-height: 0;
}

.answer-option {
  display: flex;
  align-items: center;
  min-height: clamp(48px, 8vh, 68px);
  border: 3px solid rgba(7, 34, 96, 0.16);
  border-radius: 16px;
  padding: clamp(10px, 1.8vh, 14px) 18px;
  cursor: pointer;
  color: var(--ink);
  background: #f4f8ff;
  font-size: clamp(14px, min(1.3vw, 2.2vh), 18px);
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
}

.answer-option:hover,
.answer-option:focus-visible {
  outline: 4px solid rgba(49, 210, 208, 0.45);
}

.answer-option.correct {
  color: #06441f;
  border-color: #2fd66e;
  background: #dff9e8;
}

.answer-option.wrong {
  color: #781729;
  border-color: #e23e5b;
  background: #ffe3e9;
}

.hidden {
  display: none !important;
}

.play-screen[data-game="quiz-rbp"] {
  gap: clamp(8px, 1.4vh, 14px);
  padding: clamp(10px, 1.8vh, 18px) clamp(18px, 3vw, 42px);
}

.play-screen[data-game="quiz-rbp"]::after {
  height: 18vh;
}

.quiz-hud {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  flex: 0 0 auto;
}

.quiz-menu-link {
  justify-self: start;
  display: inline-grid;
  min-width: clamp(88px, 7.6vw, 118px);
  min-height: clamp(44px, 6.5vh, 58px);
  place-items: center;
  border-radius: 999px;
  color: #143f84;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(0, 16, 74, 0.22);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 900;
}

.quiz-timer {
  min-width: clamp(122px, 10.5vw, 150px);
  min-height: clamp(56px, 7.2vh, 68px);
  border: 4px solid #ffd546;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #d94a34, #ae2739);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.22),
    0 4px 0 rgba(83, 30, 0, 0.38),
    0 10px 20px rgba(0, 0, 0, 0.22);
  font-size: clamp(30px, min(3.3vw, 5.5vh), 40px);
  line-height: 1;
}

.quiz-progress {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: clamp(10px, 1.7vh, 16px);
  color: #ffffff;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
  text-shadow: 0 3px 8px rgba(0, 15, 70, 0.5);
}

.quiz-progress strong {
  color: var(--gold-light);
}

.quiz-progress-dots {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
}

.quiz-progress-dots span {
  width: clamp(16px, 1.7vw, 23px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(102, 159, 220, 0.42);
}

.quiz-progress-dots span.active {
  background: #ffd348;
  box-shadow: 0 0 0 2px rgba(255, 211, 72, 0.15);
}

.play-screen[data-game="quiz-rbp"] .quiz-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(12px, 1.8vh, 18px);
  width: min(100%, 1214px);
  flex: 0 1 auto;
  min-height: 0;
  max-height: var(--quiz-board-max-height, min(88vh, 900px));
  margin-block: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.play-screen[data-game="quiz-rbp"] .question-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(9px, 1.35vh, 14px);
  width: 100%;
  height: var(--quiz-question-card-height, auto);
  max-width: none;
  max-height: var(--quiz-question-card-max-height, min(76vh, 760px));
  margin: 0;
  overflow: visible;
  padding: clamp(16px, 2.3vh, 26px) clamp(34px, 4.1vw, 54px)
    clamp(16px, 2.3vh, 24px);
  border: 2px solid rgba(112, 198, 221, 0.42);
  border-radius: 20px;
  color: #ffffff;
  font-size: clamp(18px, min(1.8vw, 2.8vh), 26px);
  background:
    radial-gradient(circle at 11% 0%, rgba(36, 201, 177, 0.32), transparent 40%),
    linear-gradient(135deg, rgba(9, 116, 135, 0.78), rgba(9, 60, 148, 0.74));
  box-shadow:
    inset 0 0 40px rgba(36, 195, 188, 0.14),
    0 18px 44px rgba(0, 14, 80, 0.28);
}

.play-screen[data-game="quiz-rbp"] .question-card h2 {
  width: min(100%, 1020px);
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(24px, min(2.45vw, 3.7vh), 36px);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 3px 9px rgba(0, 20, 76, 0.58);
}

.play-screen[data-game="quiz-rbp"] .answer-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(6px, 1vh, 10px);
  align-content: start;
  min-height: auto;
}

.play-screen[data-game="quiz-rbp"] .answer-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(12px, 1.8vw, 24px);
  align-items: center;
  min-height: clamp(46px, 6vh, 62px);
  border: 2px solid rgba(218, 237, 255, 0.8);
  border-radius: 12px;
  padding: clamp(5px, 0.8vh, 8px) clamp(14px, 2.3vw, 24px);
  color: #143f75;
  background: linear-gradient(180deg, #ffffff, #eef4fb);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(0, 13, 78, 0.12);
  font-size: clamp(18px, min(1.75vw, 2.65vh), 26px);
  font-weight: 900;
}

.play-screen[data-game="quiz-rbp"] .answer-option:hover,
.play-screen[data-game="quiz-rbp"] .answer-option:focus-visible {
  outline: 4px solid rgba(255, 211, 72, 0.55);
}

.answer-letter {
  display: grid;
  width: clamp(34px, 3.1vw, 44px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #347991, #255d77);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.answer-text {
  text-align: left;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.answer-result {
  min-width: clamp(86px, 8vw, 118px);
  color: #35a946;
  font-size: clamp(13px, 1.25vw, 18px);
  text-align: right;
}

.play-screen[data-game="quiz-rbp"] .answer-option.correct {
  color: #173f67;
  border-color: #49bd50;
  background: linear-gradient(180deg, #f8fff4, #e7fadc);
  box-shadow:
    inset 0 0 0 1px rgba(75, 190, 83, 0.26),
    0 0 0 1px rgba(75, 190, 83, 0.3);
}

.play-screen[data-game="quiz-rbp"] .answer-option.correct .answer-letter {
  background: linear-gradient(180deg, #4ec358, #289f41);
}

.play-screen[data-game="quiz-rbp"] .answer-option.wrong {
  color: #5d2430;
  border-color: #e85b6c;
  background: linear-gradient(180deg, #fff6f7, #ffe1e6);
}

.play-screen[data-game="quiz-rbp"] .answer-option.wrong .answer-letter {
  background: linear-gradient(180deg, #e85b6c, #b6283d);
}

.quiz-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: center;
}

.answer-feedback {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: center;
  min-height: clamp(72px, 10.5vh, 98px);
  padding: clamp(10px, 1.45vh, 15px) clamp(16px, 2.5vw, 26px);
  border: 1px solid rgba(113, 205, 221, 0.25);
  border-radius: 16px;
  background: rgba(11, 92, 122, 0.48);
  box-shadow: inset 0 0 24px rgba(102, 222, 217, 0.08);
  text-align: left;
}

.feedback-icon {
  display: grid;
  width: clamp(46px, 4.2vw, 60px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #5bd34d, #29a947);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 900;
}

.answer-feedback.wrong .feedback-icon {
  background: linear-gradient(180deg, #ef6374, #bd263d);
}

.answer-feedback h3,
.answer-feedback p {
  margin: 0;
}

.answer-feedback h3 {
  color: #ffffff;
  font-size: clamp(16px, min(1.45vw, 2.35vh), 20px);
  font-weight: 900;
  text-shadow: 0 3px 8px rgba(0, 17, 70, 0.5);
}

.answer-feedback.correct h3 span,
.answer-feedback.correct strong {
  color: #6be754;
}

.answer-feedback.wrong h3 span,
.answer-feedback.wrong strong {
  color: #ffdf64;
}

.answer-feedback p {
  margin-top: 3px;
  color: #ffffff;
  font-size: clamp(13px, min(1.18vw, 1.9vh), 16px);
  line-height: 1.18;
}

.quiz-restart,
.score-status {
  display: none;
}

.quiz-footer {
  margin-top: 0;
  padding-top: 0;
}

.quiz-footer img {
  max-height: clamp(52px, 9.5vh, 82px);
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vh, 24px);
  background: rgba(0, 12, 48, 0.72);
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(92vw, 680px);
  padding: clamp(22px, min(4vw, 5vh), 46px);
  border: 2px solid rgba(115, 246, 224, 0.75);
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(3, 43, 128, 0.98),
    rgba(6, 150, 145, 0.96)
  );
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: clamp(30px, min(5vw, 8vh), 58px);
  text-transform: uppercase;
}

.modal-panel p:not(.eyebrow) {
  margin: 0 auto 26px;
  max-width: 520px;
  font-size: clamp(16px, 2.8vh, 20px);
  line-height: 1.4;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  max-width: min(92vw, 620px);
  padding: 14px 22px;
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  transition: transform 0.22s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(5px, 0.9vh, 10px);
}

.result-screen .image-header {
  z-index: 3;
  flex: 0 0 auto;
}

.result-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 980px);
  max-height: 100%;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.result-content h1 {
  margin: 0;
  font-size: clamp(38px, min(6vw, 7.4vh), 74px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-win h1 {
  color: #35ddeb;
  text-shadow:
    2px 2px 0 #ffffff,
    0 7px 0 rgba(0, 31, 117, 0.62),
    0 0 22px rgba(89, 246, 255, 0.78);
}

.celebration-effect {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.celebration-effect::before,
.celebration-effect::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.34), transparent 26%),
    radial-gradient(circle at 18% 24%, rgba(255, 211, 72, 0.32), transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(53, 221, 235, 0.28), transparent 20%);
  animation: celebration-flash 900ms ease-out forwards;
}

.celebration-effect::after {
  animation-delay: 650ms;
}

.celebration-effect span {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: clamp(8px, 0.8vw, 14px);
  height: clamp(12px, 1.1vw, 20px);
  border-radius: 3px;
  background: var(--color);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.62);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: confetti-fall var(--duration) ease-in var(--delay) forwards;
}

.celebration-effect span:nth-child(3n) {
  border-radius: 50%;
}

.celebration-effect span:nth-child(4n) {
  width: clamp(12px, 1vw, 20px);
  height: clamp(5px, 0.5vw, 9px);
}

.celebration-effect span.burst {
  top: var(--y);
  left: 50vw;
  width: clamp(9px, 0.9vw, 16px);
  height: clamp(9px, 0.9vw, 16px);
  border-radius: 50%;
  animation: confetti-burst var(--duration) cubic-bezier(0.12, 0.78, 0.26, 1) var(--delay) forwards;
}

@keyframes celebration-flash {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, -10vh, 0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--rotate));
  }
}

@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--burst-x), var(--burst-y), 0) scale(1.8);
  }
}

.result-lose h1 {
  color: #e84238;
  text-shadow:
    2px 2px 0 #ffd7cf,
    0 7px 0 rgba(80, 0, 45, 0.55),
    0 0 24px rgba(255, 87, 79, 0.64);
}

.result-line {
  display: block;
  width: min(52vw, 660px);
  height: 2px;
  margin: clamp(4px, 0.7vh, 7px) auto clamp(6px, 1vh, 10px);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.96),
    transparent
  );
  box-shadow: 0 0 22px rgba(121, 236, 255, 0.9);
}

.result-content h2,
.result-message {
  margin: 0;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 12, 65, 0.7);
}

.result-content h2 {
  font-size: clamp(18px, min(2.2vw, 3vh), 28px);
}

.result-message {
  max-width: 980px;
  margin-top: clamp(10px, 2vh, 20px);
  font-size: clamp(18px, min(2vw, 3.4vh), 30px);
  line-height: 1.25;
  text-transform: none;
}

.reward-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(230px, 0.85fr);
  gap: clamp(12px, 2.2vw, 28px);
  align-items: center;
  width: min(100%, 820px);
  margin-top: clamp(7px, 1vh, 12px);
  padding: clamp(9px, 1.4vw, 16px);
  border: 2px solid rgba(121, 246, 236, 0.68);
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(4, 129, 146, 0.9),
    rgba(5, 64, 135, 0.82)
  );
  box-shadow: 0 22px 42px rgba(0, 11, 60, 0.34);
}

.reward-copy {
  display: grid;
  justify-items: center;
  gap: clamp(7px, 1.1vh, 12px);
  width: min(100%, 360px);
}

.reward-copy p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(17px, min(2vw, 2.8vh), 25px);
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 3px 8px rgba(0, 20, 70, 0.7);
}

.reward-copy strong {
  display: inline-grid;
  width: min(100%, 330px);
  min-height: clamp(58px, 8.2vh, 82px);
  place-items: center;
  border: 4px solid rgba(255, 236, 121, 0.92);
  border-radius: 20px;
  color: #073a9d;
  background:
    radial-gradient(
      circle at 22% 20%,
      rgba(255, 255, 255, 0.6),
      transparent 28%
    ),
    linear-gradient(180deg, #fff68c 0%, #f7ce44 46%, #eda923 100%);
  box-shadow:
    inset 0 5px 0 rgba(255, 255, 255, 0.46),
    inset 0 -4px 0 rgba(171, 102, 0, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.24);
  font-size: clamp(52px, min(5.6vw, 7.6vh), 78px);
  line-height: 1;
  padding:10px 0px;
}

.voucher-mark {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.45fr;
  align-items: center;
  width: min(100%, 340px);
  min-height: clamp(72px, 11vh, 104px);
  overflow: hidden;
  border: 6px solid rgba(104, 238, 224, 0.88);
  border-radius: 18px;
  color: #b7fffb;
  background: rgba(12, 122, 135, 0.28);
  font-size: clamp(19px, min(2.1vw, 3vh), 28px);
  font-weight: 900;
  line-height: 0.94;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 2px rgba(104, 238, 224, 0.2),
    0 0 18px rgba(104, 238, 224, 0.34);
}

.voucher-gift {
  position: relative;
  height: 100%;
  border-right: 6px solid rgba(104, 238, 224, 0.88);
}

.voucher-gift::before,
.voucher-gift::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: rgba(104, 238, 224, 0.88);
  transform: translate(-50%, -50%);
}

.voucher-gift::before {
  width: 58%;
  height: 18%;
}

.voucher-gift::after {
  width: 22%;
  height: 64%;
}

.voucher-cart {
  color: rgba(104, 238, 224, 0.9);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 900;
  transform: translateY(3px);
}

.qris-card {
  display: grid;
  place-items: center;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  padding: clamp(8px, 1vw, 12px);
  border: 3px solid #d6d6d6;
  border-radius: 22px;
  color: #1a1a1a;
  background: #ffffff;
  outline: 4px solid rgba(83, 218, 219, 0.56);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.06),
    0 16px 28px rgba(0, 0, 0, 0.22);
}

.qris-brand {
  width: min(100%, 210px);
  max-height: clamp(36px, 5.6vh, 52px);
  object-fit: contain;
}

.qris-code {
  display: block;
  width: min(100%, clamp(208px, 34vh, 270px));
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: contain;
}

.qris-card p {
  margin: 0;
  color: #252525;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 800;
  line-height: 1.12;
}
.voucher-belanja {
  width: 70%;
}
.thanks-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: center;
  width: min(100%, 820px);
  margin-top: clamp(6px, 0.8vh, 9px);
  padding: clamp(7px, 1vw, 11px) clamp(14px, 2vw, 24px);
  border: 2px solid rgba(121, 246, 236, 0.64);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(6, 117, 149, 0.88),
    rgba(6, 75, 132, 0.82)
  );
  text-align: left;
}
.thanks-panel h2{
  font-size:18px;
}

.thanks-icon {
  grid-row: span 2;
  display: block;
  width: clamp(46px, 5vw, 72px);
  aspect-ratio: 1;
  object-fit: contain;
}

.thanks-panel p,
.thanks-panel strong {
  margin: 0;
}


.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  margin-top: clamp(36px, 8vh, 92px);
}

.result-actions .button {
  min-width: clamp(230px, 22vw, 360px);
  min-height: clamp(58px, 8vh, 84px);
  border-radius: 18px;
  font-size: clamp(20px, min(2.1vw, 3.5vh), 30px);
  text-transform: uppercase;
}

.button-retry {
  color: #ffffff;
  border: 4px solid rgba(53, 226, 236, 0.82);
  background: rgba(6, 61, 157, 0.74);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(53, 226, 236, 0.45);
}

.floating-home-button {
  position: fixed;
  z-index: 12;
  left: clamp(14px, 2.4vw, 34px);
  bottom: clamp(14px, 2.4vh, 30px);
  display: inline-grid;
  min-width: clamp(166px, 15vw, 230px);
  min-height: clamp(44px, 6vh, 58px);
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff282, var(--gold));
  box-shadow:
    0 6px 0 rgba(107, 70, 0, 0.58),
    0 14px 24px rgba(0, 0, 0, 0.24);
  font-size: clamp(14px, min(1.5vw, 2.5vh), 18px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.floating-home-button:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 rgba(107, 70, 0, 0.58),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

@media (max-width: 860px) {
  .play-screen[data-game="quiz-rbp"] {
    gap: 10px;
    padding: 14px;
  }

  .quiz-hud {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .quiz-menu-link {
    min-width: 82px;
    min-height: 42px;
  }

  .quiz-timer {
    justify-self: center;
    min-width: 104px;
    min-height: 48px;
    font-size: 27px;
  }

  .quiz-progress {
    gap: 7px;
    font-size: 15px;
  }

  .quiz-progress-dots {
    gap: 7px;
  }

  .quiz-progress-dots span {
    width: 13px;
  }

  .play-screen[data-game="quiz-rbp"] .question-card {
    gap: 9px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .play-screen[data-game="quiz-rbp"] .question-card h2 {
    font-size: clamp(17px, 3.8vw, 22px);
  }

  .play-screen[data-game="quiz-rbp"] .answer-list {
    gap: 7px;
  }

  .play-screen[data-game="quiz-rbp"] .answer-option {
    gap: 8px;
    min-height: 42px;
    padding: 5px 9px;
    font-size: clamp(13px, 3vw, 17px);
  }

  .answer-letter {
    width: 32px;
  }

  .answer-result {
    min-width: 62px;
    font-size: 11px;
  }

  .quiz-bottom-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .answer-feedback {
    min-height: 78px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .feedback-icon {
    width: 40px;
    font-size: 28px;
  }

  .answer-feedback h3 {
    font-size: 14px;
  }

  .answer-feedback p {
    font-size: 12px;
  }

  .memory-how-to-panel {
    width: min(88vw, 760px);
    min-height: clamp(300px, 48vh, 420px);
    gap: 16px;
    margin-top: 10px;
    border-radius: 28px;
    padding: clamp(22px, 3.6vh, 36px) clamp(20px, 4.8vw, 40px);
  }

  .memory-how-to-panel h1 {
    font-size: clamp(30px, 5.4vw, 42px);
  }

  .memory-how-to-steps {
    gap: clamp(11px, 2vh, 18px);
    font-size: clamp(16px, 3vw, 23px);
  }

  .memory-start-button,
  .memory-back-button {
    min-width: 150px;
    min-height: 52px;
    border-radius: 18px;
    font-size: 26px;
  }

  .settings-panel {
    width: min(100%, 720px);
    padding: 20px;
  }

  .duration-row {
    grid-template-columns: 1fr 120px 120px;
  }

  .result-screen {
    gap: 5px;
  }

  .result-content {
    width: min(100%, 720px);
  }

  .reward-panel {
    grid-template-columns: 1fr;
    width: min(100%, 470px);
    gap: 7px;
  }

  .qris-brand {
    max-height: 42px;
  }

  .qris-code {
    width: min(100%, clamp(180px, 30vh, 238px));
    height: auto;
  }

  .thanks-panel {
    grid-template-columns: 1fr;
    width: min(100%, 470px);
    border-radius: 24px;
    text-align: center;
  }

  .thanks-icon {
    display: none;
  }

  .result-actions {
    margin-top: clamp(24px, 6vh, 56px);
  }

  .floating-home-button {
    min-width: 150px;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 13px;
  }

  .top-brand,
  .game-topbar,
  .answer-list {
    grid-template-columns: 1fr;
  }

  .image-header,
  .image-header img {
    max-height: var(--image-header-height);
  }

  .game-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(18px, 5vh, 42px);
  }

  .top-brand {
    gap: 14px;
  }

  .brand-mark {
    justify-content: center;
  }

  .choice-card {
    min-height: clamp(150px, 27vh, 230px);
  }

  .game-topbar {
    text-align: center;
  }

  .back-link,
  .timer {
    justify-self: center;
  }

  .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  .screen {
    padding: 10px;
  }

  .play-screen[data-game="quiz-rbp"] {
    gap: 7px;
    padding: 8px;
  }

  .play-screen[data-game="quiz-rbp"] .quiz-board {
    gap: 7px;
  }

  .play-screen[data-game="quiz-rbp"] .question-card {
    gap: 7px;
    padding: 10px 8px;
  }

  .play-screen[data-game="quiz-rbp"] .question-card h2 {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.14;
  }

  .play-screen[data-game="quiz-rbp"] .answer-list {
    gap: 5px;
  }

  .play-screen[data-game="quiz-rbp"] .answer-option {
    grid-template-columns: auto 1fr;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 9px;
    font-size: clamp(12px, 3.4vw, 15px);
  }

  .play-screen[data-game="quiz-rbp"] .answer-option .answer-result {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .answer-letter {
    width: 28px;
  }

  .answer-feedback {
    grid-template-columns: auto 1fr;
    min-height: 72px;
    gap: 8px;
    padding: 9px;
  }

  .feedback-icon {
    width: 36px;
    font-size: 26px;
  }

  .memory-how-to-screen {
    gap: 8px;
  }

  .memory-how-to-screen .image-header {
    margin-top: 0;
  }

  .memory-how-to-content {
    gap: 8px;
  }

  .memory-how-to-panel {
    width: min(100%, 520px);
    min-height: clamp(250px, 52vh, 340px);
    gap: 10px;
    margin-top: 0;
    border-width: 3px;
    border-radius: 20px;
    padding: 16px 10px;
  }

  .memory-how-to-panel h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .memory-how-to-steps {
    gap: 8px;
    font-size: clamp(12px, 3.8vw, 17px);
    line-height: 1.12;
  }

  .memory-how-to-actions {
    gap: 10px;
  }

  .memory-start-button,
  .memory-back-button {
    min-width: 112px;
    min-height: 40px;
    border-radius: 14px;
    font-size: 18px;
  }

  .settings-float-link {
    width: 44px;
    font-size: 24px;
  }

  .settings-panel {
    margin-top: 4px;
    padding: 14px;
    border-radius: 18px;
  }

  .settings-heading {
    display: grid;
  }

  .settings-panel h1 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .duration-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 9px 10px;
  }

  .duration-title {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .duration-row input {
    min-height: 38px;
  }

  .settings-fieldset {
    padding: 12px;
  }

  .settings-upload-row {
    grid-template-columns: 1fr;
  }

  .qris-preview {
    justify-self: center;
    width: 118px;
  }

  .settings-actions {
    justify-content: center;
  }

  .image-header,
  .image-header img {
    max-height: var(--image-header-height);
  }

  .side-pattern,
  .borobudur {
    display: none;
  }

  .hero-title h1 {
    font-size: clamp(30px, 9vw, 40px);
    text-shadow:
      1px 1px 0 #ffffff,
      0 4px 0 rgba(0, 20, 79, 0.62),
      0 0 14px rgba(60, 241, 255, 0.8);
  }

  .hero-title span {
    margin-top: 7px;
  }

  .game-choice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: clamp(14px, 3.5vh, 22px);
  }

  .choice-card {
    min-height: clamp(108px, 23vh, 150px);
    border-radius: 22px;
  }

  .choice-link {
    gap: 8px;
    border-radius: 20px;
    padding: 10px 14px;
  }

  .choice-title {
    font-size: clamp(26px, 8vw, 34px);
    text-shadow:
      2px 3px 0 #091b3d,
      -1px 1px 0 #091b3d,
      0 6px 8px rgba(0, 0, 0, 0.35);
  }

  .choice-note {
    margin-top: -8px;
    font-size: clamp(14px, 4.3vw, 18px);
  }

  .play-pill {
    min-width: 104px;
    min-height: 34px;
    border-width: 3px;
    font-size: 18px;
  }

  .result-content h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .result-line {
    width: min(76vw, 360px);
  }

  .result-content h2 {
    font-size: clamp(16px, 5vw, 22px);
  }

  .reward-panel {
    padding: 8px;
    border-radius: 18px;
  }

  .reward-copy p {
    font-size: 13px;
  }

  .reward-copy strong {
    min-height: 46px;
    font-size: 38px;
  }

  .voucher-mark {
    min-height: 54px;
    border-width: 4px;
    font-size: 16px;
    border-radius: 12px;
  }

  .voucher-gift {
    border-right-width: 4px;
  }

  .voucher-cart {
    font-size: 26px;
  }

  .qris-card {
    width: fit-content;
    height: fit-content;
    max-width: 100%;
    padding: 7px;
    border-width: 3px;
    border-radius: 16px;
    outline-width: 3px;
  }

  .qris-brand {
    max-height: 32px;
  }

  .qris-code {
    width: min(100%, 178px);
    height: auto;
  }

  .thanks-panel {
    padding: 7px 10px;
  }

  .thanks-panel p {
    font-size: 12px;
  }

  .thanks-panel strong {
    font-size: 13px;
  }

  .info-panel {
    border-radius: 20px;
    padding: 16px;
  }

  .info-panel h1,
  .game-topbar h1 {
    font-size: clamp(26px, 8vw, 36px);
    text-shadow: 2px 3px 0 #071a4d;
  }

  .lead,
  .info-panel p:not(.eyebrow),
  .steps {
    font-size: 15px;
  }

  .steps {
    padding-left: 20px;
  }

  .actions {
    gap: 10px;
  }

  .button {
    min-width: 112px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .game-topbar {
    gap: 8px;
    border-radius: 16px;
  }

  .back-link {
    min-width: 86px;
  }

  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .memory-card {
    min-height: 0;
  }

  .card-face {
    border-radius: 10px;
  }

  .card-back,
  .card-front {
    border-width: 3px;
  }

  .question-card {
    gap: 12px;
    border-radius: 18px;
  }

  .question-card h2 {
    font-size: clamp(16px, 4.6vw, 22px);
  }

  .answer-list {
    gap: 8px;
  }

  .answer-option {
    border-radius: 11px;
    padding: 8px 10px;
    font-size: 14px;
  }
}
