@font-face {
  font-family: "Pretendard";
  src: url("./assets/fonts/PretendardVariable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif KR";
  src: url("./assets/fonts/NotoSerifKR-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Pretendard", Arial, sans-serif;
  scroll-behavior: smooth;
  --content-width: 720px;
  --paper: #fcf6ea;
  --paper-deep: #f4ead7;
  --ink: #402b16;
  --muted: #7d6448;
  --gold: #b78024;
  --gold-light: #e1b957;
  --cyan: #079fbd;
  --red: #cb4e4a;
  --rail-gap: 24px;
  --rail-width: 180px;
}

* { box-sizing: border-box; }

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

html {
  background-color: #eddec1;
  background-image: url("./assets/kuma/web/Pattern.png");
  background-position: center top;
  background-size: 560px 560px;
  overscroll-behavior-y: auto;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

[hidden] { display: none !important; }
button, a, select, input { font: inherit; }
button, a, select, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.landing-document {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 42px rgba(91, 58, 20, 0.18);
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1350;
  overflow: hidden;
  background: #efe2c8;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copyright {
  position: absolute;
  top: 1.1%;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  color: rgba(111, 80, 46, 0.48);
  font-size: clamp(9px, 1.3vw, 14px);
}

.hero-logo {
  position: absolute;
  top: 10.8%;
  left: 50%;
  width: 60.4%;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 4px rgba(68, 40, 9, 0.12));
}

.coin-pill {
  position: absolute;
  top: 5.5%;
  left: 4.5%;
  display: flex;
  align-items: center;
  width: 154px;
  height: 46px;
  padding: 3px 13px 3px 4px;
  border: 1px solid rgba(128, 87, 41, 0.5);
  border-radius: 24px;
  background: rgba(112, 80, 47, 0.34);
  cursor: pointer;
}

.coin-pill img { width: 40px; height: 40px; object-fit: contain; }
.coin-pill strong { flex: 1; color: #fff; text-align: center; font-size: 25px; letter-spacing: 0; }

.hero-action {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.hero-actions-left {
  position: absolute;
  top: 15.2%;
  left: 3.8%;
  display: grid;
  gap: 14px;
}

.hero-actions-right {
  position: absolute;
  top: 4.6%;
  right: 3.6%;
  display: grid;
  gap: 10px;
}

.action-icon {
  display: block;
  width: 64px;
  height: 64px;
}

.action-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-action strong { font-size: 18px; line-height: 1; }
.install-action strong { width: 92px; margin-top: -1px; font-size: 12px; line-height: 1.2; }

.new-badge {
  position: absolute;
  right: 1px;
  bottom: 15px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 20px;
  padding: 0 4px;
  color: #fff;
  border: 2px solid #fff4df;
  border-radius: 4px 4px 9px 9px;
  background: #df1d2e;
  font-size: 11px;
  font-weight: 900;
}

.hero-nameplate {
  position: absolute;
  bottom: 1.7%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 300px;
  height: 50px;
  transform: translateX(-50%);
  border: 3px double #ba8125;
  border-radius: 26px;
  background: rgba(255, 248, 230, 0.95);
  box-shadow: 0 3px 8px rgba(76, 46, 12, 0.18);
  font-size: 24px;
  font-weight: 800;
}

.play-menu {
  position: relative;
  z-index: 2;
  padding: 4px 28px 36px;
  background: var(--paper);
}

.primary-play-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  aspect-ratio: 1040 / 214;
}

.primary-play-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.primary-play-panel > :is(button, a) {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 12px 0 12px;
  padding: 12px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.primary-play-panel > [data-launch="ai"] { padding-left: 120px; }
.primary-play-panel strong, .secondary-play strong { display: block; font-size: 21px; line-height: 1.2; white-space: nowrap; }
.primary-play-panel small, .secondary-play small { display: block; margin-top: 6px; color: #674a2b; font-size: 15px; line-height: 1.25; white-space: nowrap; }
.mode-symbol { flex: 0 0 auto; color: #6e430b; font-size: 29px; letter-spacing: -7px; }
.primary-play-panel > [data-launch="ai"] .mode-symbol { display: none; }

.secondary-play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 18px 22px 0;
}

.secondary-play {
  display: grid;
  grid-template-columns: 58px 1fr 16px;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 9px 13px;
  border: 2px solid #d7aa53;
  border-radius: 7px;
  background: linear-gradient(#fff9ea, #f4dfb9);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.54), 0 2px 3px rgba(94,56,14,.12);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.secondary-play > :last-child { color: #996b26; font-size: 34px; }
.secondary-play.is-disabled { opacity: .42; cursor: not-allowed; }
.puzzle-mark, .online-mark { display: grid; place-items: center; width: 50px; height: 50px; color: #8d5f17; font-size: 29px; border-right: 1px solid #d4aa65; }
.online-mark { font-size: 20px; letter-spacing: -5px; }

.document-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  font-size: 15px;
}
.document-links a { text-decoration: none; }
.document-links a:hover { text-decoration: underline; }

.page-section { padding: 54px 38px; background: var(--paper); }
.ornate-heading {
  position: relative;
  width: min(420px, 80%);
  margin: 0 auto 42px;
  padding: 13px 26px;
  border: 3px double #c79437;
  border-radius: 30px;
  background: #fff8e8;
  box-shadow: 0 3px 7px rgba(91, 57, 16, .12);
  text-align: center;
  font-size: 27px;
  line-height: 1.15;
}
.ornate-heading::before, .ornate-heading::after { content: "✦"; position: absolute; top: 50%; color: #b47a18; transform: translateY(-50%); }
.ornate-heading::before { left: -28px; }
.ornate-heading::after { right: -28px; }

.minigame-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 22px; }
.minigame-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}
.minigame-card:hover { transform: translateY(-4px); filter: drop-shadow(0 6px 6px rgba(95, 57, 14, .15)); }
.minigame-card img { display: block; width: 100%; height: auto; object-fit: contain; }
.minigame-card > span { position: absolute; left: 8%; right: 8%; bottom: 6%; display: block; text-align: center; }
.minigame-card strong { display: block; font-size: 21px; line-height: 1.2; }
.minigame-card small { display: block; margin-top: 7px; font-size: 15px; line-height: 1.25; }

.directory-section { padding-top: 30px; }
.directory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.directory-grid a {
  display: grid;
  grid-template-columns: 58px 1fr 18px;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px;
  border: 1.5px solid #dfb86f;
  border-radius: 18px;
  background: rgba(255, 250, 239, .8);
  text-decoration: none;
}
.directory-grid img { width: 48px; height: 48px; object-fit: contain; }
.directory-grid strong { display: block; font-size: 19px; line-height: 1.15; }
.directory-grid small { display: block; margin-top: 3px; color: #725538; font-size: 13px; line-height: 1.25; }
.directory-grid b { color: #a36f22; font-size: 31px; }

.article-section { padding-right: 40px; padding-left: 40px; }
.article-section h2 { margin: 20px 0 16px; font-size: 28px; line-height: 1.25; }
.article-section h3 { margin: 24px 0 7px; font-size: 20px; line-height: 1.3; }
.article-section h4 { margin: 10px 0 5px; font-size: 17px; }
.article-section p { margin: 0 0 12px; color: #59442e; font-size: 16px; line-height: 1.62; }
.track-list { margin-top: 20px !important; }
.feature-image { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: 8px; }
.compact-feature { margin-top: 28px; margin-bottom: 28px; }
.section-divider { display: flex; align-items: center; gap: 16px; margin: -12px auto 38px; color: #c69236; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #d9b574); }
.section-divider::after { background: linear-gradient(90deg, #d9b574, transparent); }

.piece-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.piece-guide-grid article { min-width: 0; }
.piece-guide-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.piece-guide-grid img + img { margin-top: 8px; }
.piece-guide-grid p { font-size: 14px; line-height: 1.5; }
.board-coordinate-image { display: block; width: 150px; height: auto; margin: 18px 0 30px; }
.rule-art-grid { display: grid; gap: 32px; margin-top: 28px; }
.rule-art-grid article { display: grid; grid-template-columns: minmax(160px, 42%) 1fr; align-items: center; gap: 24px; }
.rule-art-grid img { grid-row: 1 / span 2; width: 100%; height: auto; object-fit: contain; }
.rule-art-grid h3 { align-self: end; margin: 0; }
.rule-art-grid p { align-self: start; }

.feature-list { display: grid; gap: 42px; }
.feature-list article { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; column-gap: 26px; }
.feature-list img { grid-row: 1 / span 4; width: 100%; border-radius: 8px; }
.feature-list h3 { margin-top: 0; }
.feature-list button, .section-actions button {
  justify-self: start;
  min-height: 42px;
  padding: 8px 18px;
  border: 2px solid #bd8a31;
  border-radius: 5px;
  color: #fff8e8;
  background: #4a3623;
  font-weight: 800;
  cursor: pointer;
}

.collection-gallery, .reward-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.collection-gallery img, .reward-gallery img { display: block; width: 100%; height: auto; border-radius: 6px; }
.section-actions { display: flex; justify-content: center; gap: 16px; margin-top: 28px; }

.inline-ad { width: 100%; min-height: 100px; padding: 10px 30px; background: var(--paper); }
.inline-ad .adsbygoogle { display: block; width: 100%; min-height: 90px; }

.site-footer { position: relative; min-height: 240px; color: #5d462f; background: #f3ead8; }
.site-footer > img { display: block; width: 100%; height: auto; }
.footer-copy { position: absolute; inset: 20px 40px auto; text-align: center; }
.footer-copy strong { font-family: "Noto Serif KR", serif; font-size: 23px; }
.footer-copy p { margin: 7px 0; font-size: 13px; }
.footer-copy nav { display: flex; justify-content: center; gap: 18px; margin-top: 11px; }
.footer-copy a { font-size: 13px; }

.ad-rail { position: fixed; top: max(24px, env(safe-area-inset-top, 0px)); z-index: 3; width: var(--rail-width); min-height: 600px; overflow: hidden; }
.ad-rail-left { right: calc(50% + (var(--content-width) / 2) + var(--rail-gap)); }
.ad-rail-right { left: calc(50% + (var(--content-width) / 2) + var(--rail-gap)); }
.ad-rail .adsbygoogle { display: block; width: 100%; min-height: 600px; }

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 0px);
  z-index: 15;
  display: grid;
  place-items: center;
  width: min(100vw, var(--content-width));
  height: 67px;
  padding: 0;
  overflow: hidden;
  color: #573713;
  border: 0;
  background: rgba(252, 246, 234, .96);
  box-shadow: 0 -5px 18px rgba(73, 44, 12, .1);
  transform: translateX(-50%);
  transition: opacity 260ms ease, visibility 260ms ease, transform 260ms ease;
  cursor: pointer;
}
.scroll-cue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.scroll-cue span { position: relative; z-index: 1; padding: 4px 14px 5px; border-radius: 18px; background: rgba(252, 246, 234, .9); font-size: 14px; font-weight: 800; }
.scroll-cue.is-hidden { visibility: hidden; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

.scroll-top {
  position: fixed;
  right: max(14px, calc((100vw - min(100vw, var(--content-width))) / 2 + 14px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 16;
  display: grid;
  justify-items: center;
  width: 68px;
  min-height: 90px;
  padding: 0;
  color: #573713;
  border: 0;
  background: transparent;
  animation: kuma-scroll-float 2.8s ease-in-out infinite;
  cursor: pointer;
}
.scroll-top img { width: 62px; filter: drop-shadow(0 5px 7px rgba(68, 40, 8, .2)); }
.scroll-top span { margin-top: -8px; padding: 2px 8px; border-radius: 10px; background: rgba(252,246,234,.92); font-size: 12px; font-weight: 800; white-space: nowrap; }
@keyframes kuma-scroll-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: transparent;
}
.game-overlay.is-popup {
  background: rgba(43, 33, 24, .34);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.game-overlay.is-content {
  background-color: #eddec1;
  background-image: url("./assets/kuma/ui/pattern.png");
  background-position: center top;
  background-size: 560px 560px;
}
body.game-open { overflow: hidden; }
.game-popup-open .landing-document { z-index: auto; }
.game-wallet-open .coin-pill {
  z-index: 110;
  pointer-events: none;
}
.game-overlay iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity 180ms ease; }
.game-overlay.is-ready iframe { opacity: 1; }
.google-account-bridge {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: .001;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.google-account-bridge:disabled { pointer-events: none; }
.game-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; color: #5a3c1d; background: transparent; }
.game-loading::before { content: ""; position: absolute; top: 50%; left: 50%; width: min(320px, calc(100vw - 40px)); height: 210px; border: 1px solid rgba(183,128,42,.34); border-radius: 6px; background: rgba(255,248,234,.92); box-shadow: 0 12px 36px rgba(58,38,17,.2); transform: translate(-50%, -50%); }
.game-loading > * { position: relative; z-index: 1; }
.game-loading span { width: 44px; height: 44px; border: 4px solid #ddc99e; border-top-color: #b47b20; border-radius: 50%; animation: loading-spin .8s linear infinite; }
.game-loading strong { font-family: "Noto Serif KR", serif; font-size: 22px; }
.game-loading p { min-height: 20px; margin: -7px 0 0; font-size: 14px; font-weight: 700; }
.game-loading button { min-width: 150px; min-height: 46px; padding: 8px 18px; border: 2px solid #b78332; border-radius: 5px; color: #fff8e9; background: #493522; font-weight: 800; cursor: pointer; }
.game-overlay.is-failed .game-loading span { animation: none; border-color: #cfb37b; border-top-color: #b35b49; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.game-overlay.is-ready .game-loading { display: none; }

.web-dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 0; overflow: visible; border: 0; background: transparent; }
.web-dialog::backdrop { background: rgba(45, 32, 20, .46); backdrop-filter: blur(4px); }
.dialog-panel { position: relative; max-height: calc(100dvh - 28px); margin: 0; padding: 42px 38px 30px; overflow: auto; border: 4px double #b57d26; border-radius: 7px; background: #fff4dd; box-shadow: 0 16px 48px rgba(45,28,10,.34); }
.dialog-panel h2 { margin: 0 0 24px; text-align: center; font-size: 28px; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.dialog-summary { color: #8a622c; text-align: center; font-weight: 800; }
.daily-list { display: grid; gap: 12px; margin: 20px 0; }
.daily-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 14px 16px; border: 1px solid #dfc28e; border-radius: 6px; background: #fffaf0; }
.daily-item strong { font-size: 17px; }
.daily-item span { color: #8a673f; font-size: 14px; font-weight: 800; }
.daily-item progress { grid-column: 1 / -1; width: 100%; accent-color: var(--cyan); }
.daily-item.is-complete { border-color: #6fc2d3; }
.reward-message { min-height: 24px; color: var(--cyan); text-align: center; font-weight: 800; }
.dialog-primary { display: block; min-width: 160px; min-height: 48px; margin: 18px auto 0; border: 2px solid #bd8a31; border-radius: 5px; color: #fff8e8; background: #493523; font-weight: 900; cursor: pointer; }
.dialog-panel > label { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; min-height: 58px; border-bottom: 1px solid #e1c99d; font-weight: 800; }
.dialog-panel select, .dialog-panel input[type="text"] { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #c79f63; border-radius: 4px; background: #fffaf0; }
.dialog-panel input[type="range"] { width: 100%; accent-color: #bf862a; }
.dialog-panel output { justify-self: end; color: var(--cyan); }
.toggle-row input { justify-self: end; width: 48px; height: 26px; accent-color: #b67d24; }
.coupon-row { margin-top: 18px; }
.coupon-row > label { display: block; margin-bottom: 8px; font-weight: 800; }
.coupon-row > div { display: grid; grid-template-columns: 1fr 84px; gap: 8px; }
.coupon-row button { border: 1px solid #aa7629; border-radius: 4px; background: #f3d89f; font-weight: 800; cursor: pointer; }
.coupon-row p { min-height: 20px; margin: 7px 0 0; color: #8b5e27; font-size: 13px; }
.contact-line { margin: 20px 0 0; color: #9b7c58; text-align: center; font-size: 14px; font-weight: 700; }
.mode-choice-grid { display: grid; gap: 14px; margin-top: 26px; }
.mode-choice-grid button { min-height: 78px; padding: 12px 20px; border: 2px solid #c08b34; border-radius: 5px; background: linear-gradient(#fff9e9, #efd5a0); cursor: pointer; }
.mode-choice-grid button:last-child { color: #fff8e9; background: #493522; }
.mode-choice-grid strong, .mode-choice-grid small { display: block; }
.mode-choice-grid strong { font-size: 21px; }
.mode-choice-grid small { margin-top: 5px; font-size: 14px; }

button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #08a7c7; outline-offset: 3px; }
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
select:focus:not(:focus-visible) { outline: none; }

@media (max-width: 1160px) { .ad-rail { display: none !important; } }

@media (min-width: 900px) {
  .scroll-top { right: max(14px, calc((100vw - var(--content-width)) / 2 - 84px)); }
}

@media (max-width: 720px) {
  html { background: var(--paper); }
  .landing-document { width: 100%; box-shadow: none; }
  .coin-pill { width: 21.4%; height: 5.1%; min-height: 32px; padding-right: 7px; }
  .coin-pill img { width: auto; height: 88%; }
  .coin-pill strong { font-size: clamp(16px, 3.5vw, 25px); }
  .hero-action { width: 10vw; max-width: 72px; }
  .action-icon { width: 9vw; height: 9vw; max-width: 64px; max-height: 64px; }
  .hero-action strong { font-size: clamp(11px, 2.5vw, 18px); }
  .hero-actions-right { gap: 1.3vw; }
  .new-badge { right: -1px; bottom: 9px; min-width: 15px; height: 17px; font-size: 9px; }
  .hero-nameplate { width: 42%; height: 5.6%; font-size: clamp(15px, 3.3vw, 24px); }
  .play-menu { padding-right: 3.9vw; padding-left: 3.9vw; }
  .primary-play-panel > :is(button, a) { gap: 2vw; padding: 1.6vw 2vw; }
  .primary-play-panel > [data-launch="ai"] { padding-left: 16.7vw; }
  .primary-play-panel strong, .secondary-play strong { font-size: clamp(13px, 2.9vw, 21px); }
  .primary-play-panel small, .secondary-play small { margin-top: 3px; font-size: clamp(9px, 2.1vw, 15px); }
  .mode-symbol { font-size: clamp(17px, 4vw, 29px); }
  .secondary-play-grid { gap: 3.6vw; margin-right: 3vw; margin-left: 3vw; }
  .secondary-play { grid-template-columns: 8vw 1fr 12px; min-height: 11.4vw; padding: 1.2vw 1.6vw; }
  .puzzle-mark, .online-mark { width: 7vw; height: 7vw; font-size: 4vw; }
  .secondary-play > :last-child { font-size: 5vw; }
  .page-section { padding-right: 5.3vw; padding-left: 5.3vw; }
  .ornate-heading { font-size: clamp(19px, 3.8vw, 27px); }
  .minigame-grid { gap: 4.7vw 3vw; }
  .minigame-card strong { font-size: clamp(14px, 3vw, 21px); }
  .minigame-card small { margin-top: 4px; font-size: clamp(10px, 2.1vw, 15px); }
  .directory-grid { gap: 2vw 3.8vw; }
  .directory-grid a { grid-template-columns: 7vw 1fr 12px; min-height: 10.3vw; padding: 1.4vw 2vw; border-radius: 2.5vw; }
  .directory-grid img { width: 6.7vw; height: 6.7vw; }
  .directory-grid strong { font-size: clamp(12px, 2.65vw, 19px); }
  .directory-grid small { font-size: clamp(9px, 1.8vw, 13px); }
  .directory-grid b { font-size: 4.3vw; }
  .article-section h2 { font-size: clamp(23px, 3.9vw, 28px); }
  .article-section h3 { font-size: clamp(17px, 2.8vw, 20px); }
  .article-section p { font-size: clamp(14px, 2.25vw, 16px); }
  .feature-list article { grid-template-columns: 1fr; }
  .feature-list img { grid-row: auto; }
  .feature-list h3 { margin-top: 16px; }
  .rule-art-grid article { grid-template-columns: 40% 1fr; gap: 4vw; }
  .scroll-cue { width: 100vw; height: clamp(48px, 9.25vw, 67px); }
}

@media (max-width: 430px) {
  .play-menu { padding-bottom: 28px; }
  .primary-play-panel > :is(button, a) { margin: 6px 0; }
  .document-links { gap: 9px; margin-top: 22px; font-size: 12px; }
  .page-section { padding-top: 42px; padding-bottom: 42px; }
  .ornate-heading { margin-bottom: 30px; }
  .directory-grid { grid-template-columns: 1fr; gap: 10px; }
  .directory-grid a { grid-template-columns: 48px 1fr 16px; min-height: 65px; padding: 9px 13px; border-radius: 14px; }
  .directory-grid img { width: 44px; height: 44px; }
  .directory-grid strong { font-size: 16px; }
  .directory-grid small { font-size: 12px; }
  .piece-guide-grid { gap: 16px 12px; }
  .piece-guide-grid p { font-size: 12px; }
  .rule-art-grid article { grid-template-columns: 1fr; }
  .rule-art-grid img { grid-row: auto; max-height: 260px; }
  .collection-gallery, .reward-gallery { gap: 8px; }
  .footer-copy { inset: 16px 18px auto; }
  .footer-copy strong { font-size: 18px; }
  .footer-copy p, .footer-copy a { font-size: 11px; }
  .dialog-panel { padding: 40px 20px 24px; }
  .dialog-panel > label { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .scroll-top, .game-loading span { animation: none; }
  .minigame-card { transition: none; }
}

/* The supplied mockup is a fixed 1080-wide portrait composition. Keep that
   composition intact and scale it with the same 720:1280 ratio as the game. */
:root {
  --content-width: min(100vw, 56.25dvh, 720px);
}

html {
  overflow-x: hidden;
  background: #eddec1;
}

body { isolation: isolate; }

body::before {
  content: "";
  position: fixed;
  inset: -35vmax;
  z-index: 0;
  background: url("./assets/kuma/ui/pattern.png") 0 0 / 560px 560px repeat;
  transform: rotate(6deg);
  transform-origin: center;
  animation: kuma-pattern-drift 600s linear infinite;
  pointer-events: none;
}

@keyframes kuma-pattern-drift {
  from { background-position: 0 0; }
  to { background-position: 560px 560px; }
}

body::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: min(400px, 10.65vw);
  background: url("./assets/kuma/ui/pattern_bottom_bg.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* The side pattern must continue to the document end; the opaque ambient
   bottom strip is only used by the dedicated game shell. */
body::after { display: none; }

.landing-document {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  max-width: none;
  overflow: hidden;
  container-type: inline-size;
  background: #fcf6ea;
  box-shadow: none;
}

.hero {
  width: 100%;
  height: 125cqw;
  aspect-ratio: auto;
}

.hero-copyright {
  top: 1.2cqw;
  font-size: 1.85cqw;
}

.hero-logo-layer {
  position: absolute;
  top: 12.96cqw;
  left: 19.81cqw;
  width: 60.37cqw;
  height: 39.81cqw;
  z-index: 1;
  transform-origin: center;
  animation: kuma-logo-float 2400ms ease-in-out infinite alternate;
}
.hero-logo-layer .hero-logo,
.hero-logo-layer .hero-logo-glow {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: none;
  transform-origin: center;
  will-change: transform;
  animation: kuma-logo-breathe 3000ms ease-in-out infinite alternate;
}
.hero-logo-layer .hero-logo-glow {
  opacity: 0;
  mix-blend-mode: screen;
  filter: sepia(1) saturate(1.8) brightness(1.42) drop-shadow(0 0 .9cqw rgba(255, 218, 118, .82));
  animation:
    kuma-logo-breathe 3000ms ease-in-out infinite alternate,
    kuma-logo-glow 5840ms ease-in-out 2200ms infinite;
  pointer-events: none;
}

@keyframes kuma-logo-float {
  from { transform: translateY(0); }
  to { transform: translateY(-.83cqw); }
}
@keyframes kuma-logo-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.006); }
}
@keyframes kuma-logo-glow {
  0%, 21.2%, 100% { opacity: 0; }
  9.6%, 11.6% { opacity: .24; }
}

.coin-pill {
  top: 9.77cqw;
  left: 4.68cqw;
  display: block;
  width: 21.3cqw;
  height: 6.48cqw;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.coin-pill .coin-pill-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.coin-pill .coin-pill-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 6.48cqw;
  height: 6.48cqw;
  object-fit: contain;
}
.coin-pill strong {
  position: absolute;
  inset: 0 1.2cqw 0 6.3cqw;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 3.15cqw;
  font-weight: 600;
}

.hero-action {
  width: 9.26cqw;
  gap: .35cqw;
}
.hero-actions-left { top: 19.91cqw; left: 4.63cqw; gap: 2.78cqw; }
.hero-actions-left .action-icon { height: 9.26cqw; }
.hero-actions-right { top: 8.33cqw; right: 3.7cqw; gap: 2.78cqw; }
.hero-actions-right .install-action { margin-top: 2.78cqw; }
.action-icon { width: 9.26cqw; height: 9.26cqw; }
.hero-action strong { font-size: 2.13cqw; line-height: 1.05; }
.install-action strong { width: 12cqw; margin-left: -1.4cqw; font-size: 1.85cqw; }
.hero-action .action-icon,
.primary-play-panel > :is(button, a),
.secondary-play,
.minigame-card,
.directory-grid a,
.reference-hit-area,
.scroll-cue,
.scroll-top { transition: filter 100ms ease, opacity 120ms ease, transform 120ms ease; }
.hero-action:active .action-icon,
.primary-play-panel > :is(button, a):active,
.secondary-play:active,
.minigame-card:active,
.directory-grid a:active,
.reference-hit-area:active,
.scroll-top:active img { filter: brightness(.9); }

.daily-reward-effect {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 9.26cqw;
  height: 9.26cqw;
  pointer-events: none;
}
#daily-button .action-icon,
#daily-button > strong { position: relative; z-index: 2; }
.ranking-action > strong {
  color: #674725;
  font-size: 2.31cqw;
  font-weight: 800;
}
.daily-reward-glow,
.daily-reward-ring {
  position: absolute;
  inset: -.74cqw;
  border-radius: 50%;
  animation: daily-reward-pulse 860ms ease-in-out infinite alternate;
}
.daily-reward-glow {
  border: .37cqw solid rgba(255, 198, 64, .95);
  background: rgba(255, 214, 92, .18);
  box-shadow: 0 0 1.3cqw rgba(255, 218, 92, .62);
}
.daily-reward-ring {
  inset: .28cqw;
  border: .28cqw solid rgba(255, 255, 207, .9);
  animation-delay: -430ms;
}
.daily-reward-badge {
  position: absolute;
  top: -4.17cqw;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.89cqw;
  height: 4.17cqw;
  border: .19cqw solid rgba(216, 163, 68, .92);
  border-radius: 2.08cqw;
  background: rgba(255, 247, 221, .97);
  box-shadow: 0 .28cqw .56cqw rgba(91, 48, 4, .16);
  transform: translateX(-50%);
  animation: daily-reward-float 700ms ease-in-out infinite alternate;
}
.daily-reward-badge img { width: 2.78cqw; height: 2.78cqw; }
.daily-reward-badge b { margin-left: .28cqw; color: #4d3519; font-size: 2.13cqw; line-height: 1; }
.daily-sparkle {
  position: absolute;
  z-index: 3;
  width: 1.2cqw;
  height: 1.2cqw;
  background: #fffbd0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: daily-reward-sparkle 620ms ease-in-out infinite alternate;
}
.daily-sparkle-left { top: -5.65cqw; left: .46cqw; }
.daily-sparkle-right { top: -3.15cqw; right: .28cqw; width: .83cqw; height: .83cqw; animation-delay: -310ms; }
@keyframes daily-reward-pulse { from { opacity: .32; transform: scale(.92); } to { opacity: .9; transform: scale(1.18); } }
@keyframes daily-reward-float { from { transform: translate(-50%, .19cqw) scale(1); } to { transform: translate(-50%, -.19cqw) scale(1.06); } }
@keyframes daily-reward-sparkle { from { opacity: .35; transform: rotate(22deg) scale(.72); } to { opacity: 1; transform: rotate(68deg) scale(1.22); } }

.home-reward-line {
  position: fixed;
  top: max(42%, calc(env(safe-area-inset-top, 0px) + 160px));
  left: 50%;
  z-index: 40;
  display: grid;
  width: min(100vw, var(--content-width));
  min-height: 84px;
  overflow: hidden;
  color: #fff4cf;
  background: rgba(47, 37, 26, .96);
  box-shadow: 0 8px 24px rgba(45, 27, 10, .26);
  transform: translate(-50%, -50%);
  animation: home-reward-line-show 2600ms ease both;
  pointer-events: none;
}
.home-reward-line-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 28px;
}
.home-reward-line-content img { width: 46px; height: 46px; flex: 0 0 auto; }
.home-reward-line-content strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 4cqw, 29px);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 2px 0 #4b2e12;
}
.home-reward-line-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e0b353;
}
.home-reward-line-edge-top { top: 0; }
.home-reward-line-edge-bottom { bottom: 0; }
@keyframes home-reward-line-show {
  0% { opacity: 0; transform: translate(-50%, -50%) scaleX(.05); }
  10%, 80% { opacity: 1; transform: translate(-50%, -50%) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleX(.2); }
}
.new-badge {
  right: -.09cqw;
  bottom: .05cqw;
  min-width: 0;
  width: 2.87cqw;
  height: 3.24cqw;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.new-badge img { display: block; width: 100%; height: 100%; }
#daily-button .new-badge {
  position: absolute;
  right: -.18cqw;
  bottom: 2.05cqw;
  z-index: 3;
}

.hero-nameplate {
  bottom: 7.41cqw;
  width: 59.17cqw;
  height: 8.52cqw;
  border: 0;
  border-radius: 0;
  background: url("./assets/kuma/web/title_bg.png") center / 100% 100% no-repeat;
  box-shadow: none;
  font-size: 2.78cqw;
  font-weight: 800;
}

.play-menu {
  height: 49.72cqw;
  margin-top: -8.06cqw;
  padding: 0;
  background: transparent;
}
.primary-play-panel {
  position: absolute;
  top: 0;
  left: 1.85cqw;
  grid-template-columns: 50.93cqw 45.37cqw;
  width: 96.3cqw;
  height: 19.81cqw;
  aspect-ratio: auto;
}
.primary-play-panel > :is(button, a) {
  gap: 1.1cqw;
  height: 19.81cqw;
  margin: 0;
  padding: 4.2cqw 1.6cqw 2.6cqw;
}
.primary-play-panel > [data-launch="ai"] { padding-left: 23.43cqw; }
.primary-play-panel > [data-launch="pvp"] { padding-left: 3.43cqw; }
.primary-play-panel strong,
.secondary-play strong { font-size: 2.59cqw; }
.primary-play-panel small,
.secondary-play small { margin-top: .46cqw; font-size: 1.85cqw; }
.mode-icon { display: block; flex: 0 0 auto; object-fit: contain; }
.mode-icon-ai { width: 4.07cqw; height: 7.78cqw; }
.mode-icon-pvp { width: 6.39cqw; height: 5.83cqw; transform: translateY(.28cqw); }

.secondary-play-grid {
  position: absolute;
  top: 22.22cqw;
  left: 6.67cqw;
  grid-template-columns: 41.48cqw 41.48cqw;
  gap: 3.7cqw;
  width: auto;
  margin: 0;
}
.secondary-play {
  position: relative;
  display: block;
  width: 41.48cqw;
  height: 11.85cqw;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.secondary-play-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.secondary-play > span {
  position: absolute;
  top: 2.87cqw;
  left: 14.05cqw;
  z-index: 1;
  text-align: left;
}
.secondary-play.is-disabled {
  opacity: .42;
  cursor: not-allowed;
  filter: saturate(.55);
}
.document-links {
  position: absolute;
  top: 38.7cqw;
  left: 0;
  width: 100%;
  margin: 0;
  gap: 2.4cqw;
  font-size: 1.85cqw;
}

.page-section { padding: 0; background: #fcf6ea; }
.ornate-heading {
  width: 59.17cqw;
  height: 8.52cqw;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("./assets/kuma/web/title_bg.png") center / 100% 100% no-repeat;
  box-shadow: none;
  font-size: 2.78cqw;
  line-height: 8.52cqw;
}
.ornate-heading::before,
.ornate-heading::after { display: none; }

.minigame-section { min-height: 210.74cqw; padding: 0 10.19cqw; }
.minigame-grid {
  grid-template-columns: 405fr 415fr;
  gap: 5.56cqw 3.7cqw;
  margin-top: 5.56cqw;
}
.minigame-card { width: 100%; }
.minigame-card > span { left: 6%; right: 6%; bottom: 5.3%; }
.minigame-card strong { font-size: 2.59cqw; }
.minigame-card small { margin-top: .65cqw; font-size: 1.85cqw; }

.directory-section { min-height: 57.87cqw; padding: 0 6.57cqw; }
.directory-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.85cqw 3.8cqw;
  margin-top: 5.56cqw;
}
.directory-grid a {
  grid-template-columns: 8.8cqw 1fr 1.8cqw;
  min-height: 10.56cqw;
  padding: .85cqw 1.6cqw;
  border: 0;
  border-radius: 0;
  background: url("./assets/kuma/ui/rect_long.png") center / 100% 100% no-repeat;
  box-shadow: none;
}
.directory-grid img { width: 6.48cqw; height: 6.48cqw; justify-self: center; }
.directory-grid strong { font-size: 2.13cqw; }
.directory-grid small { margin-top: .28cqw; font-size: 1.48cqw; }
.directory-grid b { font-size: 2.87cqw; }

.article-section { padding: 6.48cqw; }
#story { min-height: 226.11cqw; }
#guide { min-height: 914.44cqw; }
#modes { min-height: 270.83cqw; }
#collection { min-height: 278.24cqw; }
#rewards { min-height: 308.43cqw; }
.article-section h2 { margin: 2.2cqw 0 1.2cqw; font-size: 3.15cqw; }
.article-section h3 { margin: 2.3cqw 0 .55cqw; font-size: 2.31cqw; }
.article-section h4 { margin: .8cqw 0 .35cqw; font-size: 2.04cqw; }
.article-section p { margin: 0 0 1.1cqw; font-size: 1.85cqw; line-height: 1.48; }
.track-list { margin-top: 1.85cqw !important; }
.feature-image { width: 87.04cqw; margin: 0 0 1.5cqw; border-radius: 3.7cqw; }
.compact-feature { margin-top: 2.5cqw; margin-bottom: 2.5cqw; border-radius: 1.85cqw; }
.section-divider { height: 2.96cqw; margin: -3.5cqw auto 3.52cqw; gap: 1.48cqw; font-size: 1.5cqw; }

.board-coordinate-image { width: 21.3cqw; margin: 1.6cqw 0 2.8cqw; }
.piece-guide-grid { display: block; margin-top: 1.85cqw; }
.piece-guide-grid article {
  display: grid;
  grid-template-columns: 37.04cqw 37.04cqw;
  column-gap: 1.85cqw;
  margin-bottom: 4.7cqw;
}
.piece-guide-grid img {
  width: 37.04cqw;
  height: 37.04cqw;
  aspect-ratio: auto;
  border-radius: .56cqw;
}
.piece-guide-grid img + img { margin-top: 0; }
.piece-guide-grid h4,
.piece-guide-grid p { grid-column: 1 / -1; }
.piece-guide-grid p { font-size: 1.85cqw; }

.rule-art-grid { gap: 4.8cqw; margin-top: 2.6cqw; }
.rule-art-grid article { display: block; }
.rule-art-grid img { display: block; height: auto; margin: 0 auto 1.2cqw; }
.rule-art-grid article:nth-child(1) img { width: 46.3cqw; }
.rule-art-grid article:nth-child(2) img { width: 69.44cqw; }
.rule-art-grid article:nth-child(3) img { width: 46.67cqw; }
.rule-art-grid article:nth-child(4) img { width: 70.37cqw; }
.rule-art-grid h3 { margin: 0 0 .55cqw; }

.feature-list { gap: 6.2cqw; }
.feature-list article { display: block; }
.feature-list img { display: block; width: 87.04cqw; border-radius: 3.7cqw; }
.feature-list h3 { margin-top: 1.6cqw; }
.feature-list button,
.section-actions button {
  min-height: 3.9cqw;
  padding: .7cqw 1.65cqw;
  border-width: .18cqw;
  border-radius: .46cqw;
  font-size: 1.67cqw;
}

.collection-gallery,
.reward-gallery {
  grid-template-columns: 45.37cqw;
  justify-content: center;
  gap: 1.85cqw;
  margin-top: 2.4cqw;
}
.collection-gallery img,
.reward-gallery img { border-radius: 1.85cqw; }
.section-actions { gap: 1.48cqw; margin-top: 2.6cqw; }

.site-footer { min-height: 33.33cqw; height: 33.33cqw; }
.footer-copy { inset: 2.2cqw 3.7cqw auto; }
.footer-copy strong { font-size: 2.4cqw; }
.footer-copy p { margin: .65cqw 0; font-size: 1.3cqw; }
.footer-copy nav { gap: 1.7cqw; margin-top: .8cqw; }
.footer-copy a { font-size: 1.3cqw; }

.scroll-cue { width: var(--content-width); height: 5.56cqw; }
.scroll-cue span { font-size: 1.48cqw; }
.scroll-top {
  right: max(10px, calc((100vw - var(--content-width)) / 2 - 8.7cqw));
  width: 8.7cqw;
  min-height: 10cqw;
}
.scroll-top img { width: 8.25cqw; }
.scroll-top span { margin-top: -1.1cqw; font-size: 1.3cqw; }

@media (max-width: 720px) {
  html {
    background-color: #eddec1;
    background-image: url("./assets/kuma/web/Pattern.png");
    background-position: center top;
    background-size: 560px 560px;
  }
  body::before,
  body::after { display: none; }
  .landing-document {
    width: 100vw;
    margin-top: max(12px, env(safe-area-inset-top, 0px));
  }
}

@media (min-width: 721px) {
  html { scrollbar-gutter: stable both-edges; }
}

/* Keep connected overlays in the established in-game parchment style. */
.web-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 20px);
}
.web-dialog::backdrop {
  background: rgba(40, 29, 19, .5);
  backdrop-filter: blur(5px);
}
.dialog-panel {
  min-height: 470px;
  max-height: calc(100dvh - 20px);
  padding: 58px 52px 38px;
  border: 0;
  border-radius: 0;
  background: url("./assets/kuma/ui/popup.png") center / 100% 100% no-repeat;
  box-shadow: none;
}
#settings-dialog .dialog-panel {
  min-height: min(700px, calc(100dvh - 20px));
  padding-top: 74px;
  background-image: url("./assets/kuma/ui/popup_long.png");
}
#daily-dialog {
  position: fixed;
  top: 50dvh;
  left: 50vw;
  width: min(600px, calc(var(--content-width) - 24px), calc(100vw - 24px));
  margin: 0;
  transform: translate(-50%, -50%);
}
#daily-dialog .dialog-panel {
  min-height: 430px;
  padding: 54px 52px 34px;
  background-image: url("./assets/kuma/ui/daily_popup.png");
}
#daily-dialog .dialog-summary { margin: -7px 0 7px; font-size: 13px; }
#daily-dialog .daily-list {
  display: grid;
  gap: 0;
  margin: 7px 0 5px;
}
#daily-dialog .daily-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 70px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid rgba(184, 138, 96, .68);
  border-radius: 0;
  background: transparent;
}
#daily-dialog .daily-item strong {
  color: #846648;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
}
#daily-dialog .daily-progress {
  color: #d34f54;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
#daily-dialog .daily-item.is-complete .daily-progress { color: #079fbd; }
#daily-dialog .daily-item.is-complete strong { color: #9b856d; }
#daily-dialog .daily-coin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  color: #5a3b1d;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}
#daily-dialog .daily-coin img { width: 21px; height: 21px; object-fit: contain; }
#daily-dialog .daily-bonus { border-bottom: 0; }
#daily-dialog .reward-message { min-height: 18px; margin: 3px 0; font-size: 12px; }
#daily-dialog .dialog-primary { width: 155px; min-height: 54px; margin-top: 4px; }
.dialog-panel h2 { margin-bottom: 18px; }
.dialog-close {
  top: 35px;
  right: 34px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: #5b3b19;
}
.dialog-primary {
  border: 0;
  border-radius: 0;
  background: url("./assets/kuma/ui/btn_pop_w_normal.png") center / 100% 100% no-repeat;
  box-shadow: none;
}
.dialog-primary {
  width: 190px;
  min-height: 70px;
  color: #3f2c18;
}
#mode-dialog {
  width: min(700px, calc(var(--content-width) - 20px), calc(100vw - 20px));
  max-height: calc(100dvh - 16px);
}
#mode-dialog .dialog-panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 790 / 990;
  padding: 0;
  overflow: hidden;
  container-type: inline-size;
  background-image: url("./assets/kuma/ui/popup_long.png");
}
#mode-dialog .dialog-panel::after {
  position: absolute;
  top: 18.49%;
  left: 14.43%;
  width: 71.27%;
  height: 4px;
  border-radius: 999px;
  background: #c49f78;
  content: "";
}
#mode-dialog .dialog-panel h2 {
  position: absolute;
  z-index: 2;
  top: 13.1%;
  right: 10%;
  left: 10%;
  margin: 0;
  color: #34291d;
  font-size: 5.6cqi;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}
#mode-dialog .dialog-summary {
  position: absolute;
  z-index: 2;
  top: 20.1%;
  right: 8%;
  left: 8%;
  margin: 0;
  color: #916020;
  font-size: 3.45cqi;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
#mode-dialog .mode-choice-grid {
  position: absolute;
  z-index: 2;
  top: 25.76%;
  right: 7.6%;
  left: 7.85%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.53%;
  height: 51.72%;
  margin: 0;
}
#mode-dialog .mode-choice-grid button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #5b3004;
  background: transparent;
  box-shadow: none;
  outline: none;
}
#mode-dialog .mode-choice-grid button:hover,
#mode-dialog .mode-choice-grid button:focus-visible {
  filter: brightness(1.04);
  border-radius: 3cqi;
  box-shadow: inset 0 0 0 3px rgba(217, 169, 104, .72);
}
#mode-dialog .mode-card-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
#mode-dialog .mode-card-icon {
  position: absolute;
  z-index: 2;
  top: 67.2%;
  left: 50%;
  display: grid;
  width: 12.15cqi;
  height: 12.15cqi;
  transform: translate(-50%, -50%);
  place-items: center;
  box-sizing: border-box;
  border: 4px solid #d9a968;
  border-radius: 50%;
  background: #fbf1db;
}
#mode-dialog .mode-card-icon img {
  display: block;
  object-fit: contain;
}
#mode-dialog [data-minigame-mode="ai"] .mode-card-icon img {
  width: 5.57cqi;
  height: 10.63cqi;
}
#mode-dialog [data-minigame-mode="pvp"] .mode-card-icon img {
  width: 8.73cqi;
  height: 7.97cqi;
}
#mode-dialog .mode-choice-grid strong {
  position: absolute;
  z-index: 2;
  top: 79.4%;
  right: 4%;
  left: 4%;
  font-size: 4.5cqi;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
#mode-dialog .mode-choice-grid small {
  position: absolute;
  z-index: 2;
  top: 87.1%;
  right: 3%;
  left: 3%;
  margin: 0;
  color: #5b3004;
  font-size: 2.75cqi;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
#mode-dialog .mode-home {
  position: absolute;
  z-index: 3;
  top: 80%;
  left: 31.52%;
  width: 36.96%;
  height: 12.32%;
  padding: 0 4%;
  border: 0;
  border-radius: 0;
  color: #f9f6cc;
  background: url("./assets/kuma/ui/btn_pop_b_normal.png") center / 100% 100% no-repeat;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: 5cqi;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: none;
}
#mode-dialog .mode-home:hover,
#mode-dialog .mode-home:focus-visible {
  filter: brightness(1.08);
}
html[lang="en"] #mode-dialog .mode-choice-grid strong { font-size: 3.65cqi; }
html[lang="en"] #mode-dialog .mode-choice-grid small { font-size: 2.35cqi; }
html[lang="ja"] #mode-dialog .mode-choice-grid strong { font-size: 4cqi; }
html[lang="ja"] #mode-dialog .mode-choice-grid small { font-size: 2.45cqi; }
html[lang="en"] #mode-dialog .mode-home { font-size: 4.2cqi; }
html[lang="ja"] #mode-dialog .mode-home { font-size: 4.5cqi; }

.minigame-guide-dialog {
  width: min(700px, calc(var(--content-width) - 16px), calc(100vw - 16px));
  max-width: none;
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.minigame-guide-dialog::backdrop {
  background: rgba(40, 29, 19, .62);
  backdrop-filter: blur(7px);
}
.minigame-guide-dialog > button {
  display: grid;
  width: 100%;
  max-height: calc(100dvh - 16px);
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.minigame-guide-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 16px);
  border-radius: 20px;
  object-fit: contain;
}
.minigame-guide-dialog > button:focus-visible {
  outline: 3px solid #d9a968;
  outline-offset: -3px;
}

#online-dialog { width: min(600px, calc(var(--content-width) - 24px), calc(100vw - 24px)); }
#online-dialog [data-online-view][hidden] { display: none; }
#online-dialog[data-online-view-state="entry"] {
  width: min(700px, calc(var(--content-width) - 20px), calc(100vw - 20px));
  max-height: calc(100dvh - 16px);
}
#online-dialog[data-online-view-state="entry"] .dialog-panel {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: 790 / 990;
  padding: 0;
  overflow: hidden;
  container-type: inline-size;
  background-image: url("./assets/kuma/ui/popup_long.png");
}
#online-dialog[data-online-view-state="entry"] .dialog-panel::after {
  position: absolute;
  top: 18.49%;
  left: 14.43%;
  width: 71.27%;
  height: 4px;
  border-radius: 999px;
  background: #c49f78;
  content: "";
}
#online-dialog[data-online-view-state="entry"] [data-online-title] {
  position: absolute;
  z-index: 2;
  top: 13.1%;
  right: 8%;
  left: 8%;
  margin: 0;
  color: #34291d;
  font-size: 5.6cqi;
  line-height: 1.2;
  text-align: center;
}
#online-dialog[data-online-view-state="entry"] [data-online-summary] {
  position: absolute;
  z-index: 2;
  top: 20.1%;
  right: 7%;
  left: 7%;
  min-height: 0;
  margin: 0;
  color: #916020;
  font-size: 3.45cqi;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
#online-dialog[data-online-view-state="entry"] .online-note {
  position: absolute;
  z-index: 2;
  top: 23.45%;
  right: 7%;
  left: 7%;
  margin: 0;
  color: #916020;
  font-size: 2.75cqi;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
#online-dialog[data-online-view-state="entry"] .online-choice-grid {
  position: absolute;
  z-index: 2;
  top: 25.758%;
  right: 6.076%;
  left: 6.076%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.017%;
  height: 51.515%;
  margin: 0;
}
#online-dialog[data-online-view-state="entry"] .online-choice-grid button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #5b3004;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  outline: none;
}
#online-dialog[data-online-view-state="entry"] .online-choice-grid button:is(:hover, :focus-visible) {
  filter: brightness(1.04);
}
#online-dialog .online-card-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
#online-dialog .online-card-icon {
  position: absolute;
  z-index: 2;
  top: 64.2%;
  left: 50%;
  display: grid;
  width: 25.9%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  place-items: center;
  box-sizing: border-box;
  border: 4px solid #d9a968;
  border-radius: 50%;
  background: #fbf1db;
}
#online-dialog .online-card-icon img { display: block; width: 47%; height: 54%; object-fit: contain; }
#online-dialog [data-online-code-open] .online-card-icon img { width: 53%; }
#online-dialog[data-online-view-state="entry"] .online-choice-grid strong {
  position: absolute;
  z-index: 2;
  top: 75.2%;
  right: 4%;
  left: 4%;
  display: block;
  overflow: hidden;
  font-size: 4.5cqi;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
#online-dialog[data-online-view-state="entry"] .online-choice-grid small {
  position: absolute;
  z-index: 2;
  top: 83.4%;
  right: 6%;
  left: 6%;
  display: block;
  margin: 0;
  font-size: 2.75cqi;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
#online-dialog[data-online-view-state="entry"] .online-entry-status {
  position: absolute;
  z-index: 3;
  top: 77.8%;
  right: 8%;
  left: 8%;
  min-height: 0;
  margin: 0;
  font-size: 2.4cqi;
}
#online-dialog[data-online-view-state="entry"] .online-entry-status:empty { display: none; }
#online-dialog[data-online-view-state="entry"] .mode-home {
  position: absolute;
  z-index: 3;
  top: 80%;
  left: 31.52%;
  width: 36.96%;
  height: 12.32%;
  min-height: 0;
  margin: 0;
  padding: 0 4%;
  border: 0;
  border-radius: 0;
  color: #f9f6cc;
  background: url("./assets/kuma/ui/btn_pop_b_normal.png") center / 100% 100% no-repeat;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: 5cqi;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}
#online-dialog:not([data-online-view-state="entry"]) .dialog-panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 0;
  max-height: none;
  padding: 17cqi 8% 14cqi;
  overflow: hidden;
  container-type: inline-size;
  background: transparent;
}
#online-dialog:not([data-online-view-state="entry"]) .online-three-patch-center {
  position: absolute;
  z-index: 0;
  top: calc(25.602cqi - 2px);
  right: 0;
  bottom: calc(20.152cqi - 2px);
  left: 0;
  background: url("./assets/kuma/ui/pop_3p_center.png") center / 100% 100% no-repeat;
  pointer-events: none;
}
#online-dialog:not([data-online-view-state="entry"]) .dialog-panel::before,
#online-dialog:not([data-online-view-state="entry"]) .dialog-panel::after {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  width: 100%;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  content: "";
}
#online-dialog:not([data-online-view-state="entry"]) .dialog-panel::before {
  top: 0;
  height: calc(25.602cqi - 1px);
  background-image: url("./assets/kuma/ui/pop_3p_top.png");
  background-position: center top;
  background-size: 100% auto;
}
#online-dialog:not([data-online-view-state="entry"]) .dialog-panel::after {
  bottom: 0;
  height: calc(20.152cqi - 1px);
  background-image: url("./assets/kuma/ui/pop_3p_bottom.png");
  background-position: center bottom;
  background-size: 100% auto;
}
#online-dialog:not([data-online-view-state="entry"]) [data-online-view] {
  position: relative;
  z-index: 2;
}
#online-dialog:not([data-online-view-state="entry"]) h2 {
  margin: 0;
  color: #34291d;
  font-size: clamp(25px, 5.6cqi, 34px);
  line-height: 1.25;
  text-align: center;
}
#online-dialog:not([data-online-view-state="entry"]) h2::after {
  display: block;
  width: 84%;
  height: 3px;
  margin: 14px auto 13px;
  border-radius: 999px;
  background: #c49f78;
  content: "";
}
#online-dialog:not([data-online-view-state="entry"]) .dialog-summary {
  min-height: 0;
  margin: 0;
  color: #846648;
  font-size: clamp(14px, 3.1cqi, 18px);
  line-height: 1.35;
  text-align: center;
}
#online-dialog .online-code-form { margin-top: 22px; }
#online-dialog #online-code-input {
  width: 100%;
  height: clamp(58px, 15cqi, 76px);
  box-sizing: border-box;
  padding: 8px 18px;
  border: 4px solid #079fbd;
  border-radius: 7px;
  color: #34291d;
  background: #fffaf0;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(27px, 6cqi, 40px);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}
#online-dialog:not([data-online-view-state="entry"]) .online-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: #bd4d43;
  text-align: center;
  font-size: clamp(12px, 2.65cqi, 15px);
  font-weight: 700;
  line-height: 1.35;
}
#online-dialog .online-entry-status { min-height: 18px; margin-top: 3px; font-size: 13px; }
#online-dialog:not([data-online-view-state="entry"]) .online-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3%;
  height: clamp(72px, 18.2cqi, 100px);
  margin: 20px 0 0;
}
#online-dialog .online-resource-button {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 12px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #3f2c18;
  background: url("./assets/kuma/ui/btn_pop_w_normal.png") center / 100% 100% no-repeat;
  box-shadow: none;
  cursor: pointer;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-size: clamp(19px, 4.8cqi, 27px);
  font-weight: 800;
  outline: none;
}
#online-dialog .online-resource-button.is-dark {
  color: #f9f6cc;
  background-image: url("./assets/kuma/ui/btn_pop_b_normal.png");
}
#online-dialog :is(.online-resource-button, .mode-home):is(:hover, :focus-visible) { filter: brightness(1.08); }
#online-dialog .online-resource-button:disabled {
  cursor: default;
  filter: grayscale(.2);
  opacity: .55;
}
#online-dialog:not([data-online-view-state="entry"]) .online-room-code {
  display: block;
  margin: 22px 0 0;
  color: #079fbd;
  font-size: clamp(42px, 10cqi, 62px);
  line-height: 1;
  text-align: center;
}
#online-dialog:not([data-online-view-state="entry"]) .online-dialog-actions.is-stacked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#online-dialog[data-online-busy="true"] [data-online-create],
#online-dialog[data-online-busy="true"] [data-online-enter] {
  pointer-events: none;
  filter: grayscale(.2);
  opacity: .55;
}

@media (max-width: 560px) {
  .dialog-panel { padding: 52px 36px 34px; }
  #settings-dialog .dialog-panel { padding: 62px 40px 34px; }
  #daily-dialog .dialog-panel { padding: 52px 34px 32px; }
  #daily-dialog .daily-item {
    grid-template-columns: minmax(0, 1fr) 70px 57px;
    gap: 5px;
  }
  #daily-dialog .daily-item strong { font-size: 14px; }
  #daily-dialog .daily-progress,
  #daily-dialog .daily-coin { font-size: 13px; }
  #daily-dialog .daily-coin img { width: 17px; height: 17px; }
  .dialog-close { top: 28px; right: 25px; }
  #online-dialog .online-resource-button { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero-logo-layer,
  .hero-logo-layer .hero-logo,
  .hero-logo-layer .hero-logo-glow { animation: none; will-change: auto; }
}

/* main_update.svg fidelity layout: all values scale from the 1080px reference canvas. */
.reference-section {
  position: relative;
  overflow: hidden;
  color: #5b3004;
  background: #fcf6ea;
}
.reference-section h2,
.reference-section h3,
.reference-section p,
.reference-section ul { margin: 0; }
.reference-section h2 { font-size: 3.15cqw; font-weight: 800; line-height: 1.25; }
.reference-section h3 { font-size: 2.31cqw; font-weight: 800; line-height: 1.25; }
.reference-section p,
.reference-section li { font-size: 2.13cqw; font-weight: 450; line-height: 1.27; }
html[lang="en"] .reference-section p,
html[lang="en"] .reference-section li { font-size: 1.94cqw; line-height: 1.22; }
html[lang="ja"] .reference-section p,
html[lang="ja"] .reference-section li { font-size: 2.02cqw; line-height: 1.24; }
.reference-section ul { padding-left: 2.1cqw; }
.reference-art { position: absolute; display: block; max-width: none; object-fit: fill; }
.reference-copy { position: absolute; left: 6.48cqw; width: 87.04cqw; }
.reference-copy h2,
.reference-copy h3 { margin-bottom: .7cqw; }
.reference-copy p + p { margin-top: 1.35cqw; }
.reference-copy .track-list { margin-top: 1.8cqw; }

.section-rule {
  position: absolute;
  top: 0;
  left: 21.3cqw;
  z-index: 2;
  width: 57.41cqw;
  height: 6.76cqw;
}
.section-rule img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-section { height: 226.11cqw; min-height: 0 !important; }
.story-art-1 { top: 6.48cqw; left: 6.48cqw; width: 87.04cqw; height: 48.98cqw; border-radius: 3.7cqw; }
.story-copy-1 { top: 57.78cqw; }
.story-art-2 { top: 89.54cqw; left: 6.48cqw; width: 87.04cqw; height: 37.96cqw; border-radius: 3.7cqw; }
.story-copy-2 { top: 129.63cqw; }
.story-art-3 { top: 160.83cqw; left: 6.48cqw; width: 87.04cqw; height: 42.59cqw; border-radius: 3.7cqw; }
.story-copy-3 { top: 205.65cqw; }

.guide-section { height: 914.44cqw; min-height: 0 !important; padding: 0; }
.guide-hero { top: 14.17cqw; left: 6.48cqw; width: 87.04cqw; height: 48.98cqw; border-radius: 3.7cqw; }
.guide-intro { top: 65.74cqw; }
.guide-intro h3 { margin-top: 2.3cqw; }
.board-coordinate-image { top: 105.37cqw; left: 6.48cqw; width: 21.3cqw; height: 21.3cqw; margin: 0; }
.board-copy { top: 127.78cqw; }
.board-copy h3:last-child { margin-top: 2.4cqw; }
.piece-rule,
.special-rule,
.mode-feature,
.collection-feature,
.reward-feature { position: absolute; left: 6.48cqw; width: 87.04cqw; }
.piece-rule > img,
.piece-image-pair img { position: absolute; top: 0; left: 0; width: 37.04cqw; height: 37.04cqw; object-fit: fill; }
.piece-rule > div:last-child { position: absolute; top: 39.1cqw; left: 0; width: 87.04cqw; }
.king-rule { top: 161.85cqw; height: 50.65cqw; }
.queen-rule { top: 212.5cqw; height: 50.65cqw; }
.rook-rule { top: 263.15cqw; height: 47.96cqw; }
.bishop-rule { top: 311.11cqw; height: 50.65cqw; }
.knight-rule { top: 361.76cqw; height: 50.65cqw; }
.piece-image-pair { position: absolute; inset: 0; }
.piece-image-pair img:last-child { left: 38.89cqw; }
.pawn-rule { top: 412.41cqw; height: 53.33cqw; }
.capture-art { top: 465.74cqw; left: 6.48cqw; width: 87.04cqw; height: 17.04cqw; border-radius: 1.85cqw; }
.capture-copy { top: 484.63cqw; }
.check-art { top: 499.07cqw; left: 6.48cqw; width: 87.04cqw; height: 19.44cqw; border-radius: 1.85cqw; }
.check-copy { top: 520.56cqw; }
.check-copy ul { margin-top: .4cqw; margin-bottom: .4cqw; }
.special-rule > img { position: absolute; display: block; max-width: none; object-fit: fill; }
.special-rule > div { position: absolute; left: 0; width: 87.04cqw; }
.special-rule ul { margin-top: .4cqw; margin-bottom: .4cqw; }
.castling-rule { top: 545.56cqw; height: 78.7cqw; }
.castling-rule > img { left: 20.37cqw; width: 46.3cqw; height: 46.3cqw; }
.castling-rule > div { top: 49.35cqw; }
.enpassant-rule { top: 624.26cqw; height: 68.61cqw; }
.enpassant-rule > img { left: 8.8cqw; width: 69.44cqw; height: 46.94cqw; }
.enpassant-rule > div { top: 49.35cqw; }
.promotion-rule { top: 692.87cqw; height: 76.39cqw; }
.promotion-rule > img { left: 20.19cqw; width: 46.67cqw; height: 46.67cqw; }
.promotion-rule > div { top: 49.35cqw; }
.draw-rule { top: 769.26cqw; height: 105.46cqw; }
.draw-rule > img { left: 8.33cqw; width: 70.37cqw; height: 70.37cqw; }
.draw-rule > div { top: 72.5cqw; }
.tip-art { top: 874.72cqw; left: 6.48cqw; width: 87.04cqw; height: 14.44cqw; border-radius: 1.85cqw; }
.tip-copy { top: 891.2cqw; }

.minigame-guide-section {
  min-height: 0 !important;
  padding: 11.11cqw 6.48cqw 9.26cqw;
}
.minigame-guide-header { text-align: center; }
.minigame-guide-header h2 { font-size: 4.17cqw; }
.minigame-guide-header p { margin-top: 1.3cqw; color: #8b6a43; }
.minigame-guide-list {
  display: grid;
  gap: 4.63cqw;
  margin-top: 4.63cqw;
}
.minigame-guide-list img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 20px;
}

.modes-section { height: 270.83cqw; min-height: 0 !important; }
.modes-section > h2 { position: absolute; top: 10.93cqw; left: 6.48cqw; }
.mode-feature { height: 62.78cqw; }
.mode-feature > img { position: absolute; top: 0; left: 0; width: 87.04cqw; height: 48.98cqw; border-radius: 3.7cqw; object-fit: fill; }
.mode-feature > div { position: absolute; top: 51.2cqw; left: 0; width: 87.04cqw; }
.mode-puzzle { top: 16.76cqw; }
.mode-ai { top: 80.28cqw; }
.mode-pvp { top: 143.8cqw; }
.mode-data { top: 207.31cqw; }
.mode-data > div { top: 50.2cqw; }
.reference-hit-area { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reference-hit-area:focus-visible { outline: .37cqw solid #079fbd; outline-offset: .37cqw; border-radius: 3.7cqw; }

.collection-section { height: 278.24cqw; min-height: 0 !important; }
.collection-hero { top: 11.39cqw; left: 6.48cqw; width: 87.04cqw; height: 48.98cqw; border-radius: 3.7cqw; }
.collection-intro { top: 62.69cqw; }
.collection-intro h2 { margin-top: 5.2cqw; }
.collection-feature { height: 50.93cqw; }
.collection-feature > img { position: absolute; top: 0; left: 22.69cqw; width: 45.37cqw; height: 34.07cqw; border-radius: 1.85cqw; object-fit: fill; }
.collection-feature > div { position: absolute; top: 36.11cqw; left: 0; width: 87.04cqw; }
.collection-1 { top: 81.2cqw; }
.collection-2 { top: 132.69cqw; }
.collection-3 { top: 181.02cqw; }
.collection-4 { top: 229.63cqw; }

.rewards-section { height: 308.43cqw; min-height: 0 !important; }
.rewards-section > h2 { position: absolute; top: 10.93cqw; left: 6.48cqw; }
.reward-feature { height: 46.76cqw; }
.reward-feature > img { position: absolute; top: 0; left: 20.83cqw; width: 45.37cqw; height: 34.07cqw; border-radius: 1.85cqw; object-fit: fill; }
.reward-feature > div { position: absolute; top: 36.11cqw; left: 0; width: 87.04cqw; }
.reward-1 { top: 17.69cqw; }
.reward-2 { top: 64.44cqw; }
.reward-3 { top: 111.2cqw; }
.reward-4 { top: 157.96cqw; }
.reward-5 { top: 204.72cqw; }
.reward-6 { top: 251.48cqw; }

.site-footer { position: relative; width: 100%; height: 33.33cqw; min-height: 0; overflow: hidden; }
.site-footer > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; }
.footer-copy { position: absolute; top: 3.7cqw; left: 0; width: 100%; text-align: center; color: #5b3004; }
.footer-copy strong { display: block; font-size: 2.31cqw; line-height: 1.2; }
.footer-copy p { margin: 2.2cqw 0 0; font-size: 2.13cqw; line-height: 1.25; }
.footer-copy p:last-child { margin-top: 2.7cqw; color: rgba(91, 48, 4, .45); }

.scroll-cue {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 18;
  display: block;
  width: var(--content-width);
  height: calc(var(--content-width) * .0926);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  --cue-progress: 0;
  --cue-offset: 0px;
  opacity: calc(1 - var(--cue-progress));
  transform: translate(-50%, var(--cue-offset));
  transition: opacity 90ms linear, visibility 90ms linear, transform 90ms linear;
}
.scroll-cue img { position: absolute; display: block; max-width: none; }
.scroll-cue .scroll-cue-bg { inset: 0; width: 100%; height: 100%; object-fit: fill; }
.scroll-cue .scroll-cue-ornament { top: calc(var(--content-width) * .0463); width: calc(var(--content-width) * .1907); height: calc(var(--content-width) * .0296); object-fit: fill; }
.scroll-cue .scroll-cue-ornament-left { right: auto; left: calc(var(--content-width) * .1676); }
.scroll-cue .scroll-cue-ornament-right { right: calc(var(--content-width) * .1676); left: auto; }
.scroll-cue span { position: absolute; top: 36%; left: 0; z-index: 1; width: 100%; color: #6b4520; font-size: calc(var(--content-width) * .0213); font-weight: 600; text-align: center; }
.scroll-cue.is-hidden { visibility: hidden; pointer-events: none; }

.scroll-top {
  position: fixed !important;
  right: max(8px, calc((100vw - var(--content-width)) / 2 + var(--content-width) * .0463));
  bottom: max(6px, env(safe-area-inset-bottom, 0px));
  z-index: 19;
  display: grid;
  justify-items: center;
  width: calc(var(--content-width) * .1796);
  min-height: calc(var(--content-width) * .2);
  padding: 0;
  border: 0;
  background: transparent;
}
.scroll-top:not([hidden]) { animation: scroll-top-enter 440ms ease-out both; }
.scroll-top img { display: block; width: 100%; height: auto; max-width: none; animation: scroll-top-float 2400ms ease-in-out infinite alternate; }
.scroll-top span { margin-top: calc(var(--content-width) * -.011); color: #5b3004; font-size: calc(var(--content-width) * .0213); font-weight: 800; }
@keyframes scroll-top-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll-top-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

@media (max-width: 720px) {
  .scroll-cue { width: 100vw; }
  .scroll-top { right: calc(var(--content-width) * .0463); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue { transition: none; }
  .scroll-top:not([hidden]),
  .scroll-top img,
  .daily-reward-glow,
  .daily-reward-ring,
  .daily-reward-badge,
  .daily-sparkle,
  .home-reward-line { animation: none; }
}

@media (hover: none) and (pointer: coarse) {
  button:focus-visible,
  a:focus-visible,
  select:focus-visible,
  [role="button"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}
