/* A bright, playful skin; the game itself keeps its original colors. */
:root {
  background: #fffaf4;
  --blue: #6850d9;
  --line: #e9e2f2;
  --muted: #7f7894;
  color: #32304e;
}
body {
  background:
    radial-gradient(ellipse at 0 16%, #fff0d7 0, transparent 36%),
    radial-gradient(ellipse at 100% 24%, #e6f7f0 0, transparent 36%), #fffaf4;
}
.header {
  border-top: 4px solid transparent;
  border-image: linear-gradient(
      90deg,
      #f15d85,
      #ffbd4b,
      #a6d561,
      #45cbb1,
      #5b9ef4,
      #aa7ee7
    )
    1;
  background: #ffffffeb;
}
.header-inner {
  gap: 24px;
}
.brand {
  white-space: nowrap;
  letter-spacing: -1.8px;
  font-weight: 900;
}
.brand .logo-letters {
  display: inline-flex;
  gap: 0;
  font-size: inherit;
  vertical-align: baseline;
  margin: 0;
}
.brand .logo-letters span {
  color: var(--letter);
  font-size: inherit;
  margin: 0;
  vertical-align: baseline;
  display: inline-block;
  text-shadow: 0 2px 0 #00000009;
}
.logo-letters span:nth-child(3n) {
  transform: rotate(-5deg);
}
.logo-letters span:nth-child(3n + 1) {
  transform: rotate(4deg);
}
.header nav a {
  padding: 12px 13px;
}
.header nav a.active {
  color: #6a45ba;
  background: #f0e8ff;
}
.header nav a:nth-child(2):hover {
  background: #fff0d2;
  color: #97600a;
}
.header nav a:nth-child(3):hover {
  background: #e6f7ed;
  color: #287753;
}
.header nav a:nth-child(4):hover {
  background: #ffe9f0;
  color: #a83b69;
}
.nav-icon {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 3px;
}
.header-note {
  color: #9b7189;
  font-size: 11px;
}
.language {
  display: block !important;
  position: relative;
  padding: 0;
  border: 1px solid #e5d9f4;
  background: #fff;
  border-radius: 13px;
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
}
.language summary {
  cursor: pointer;
  padding: 12px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.language summary::-webkit-details-marker {
  display: none;
}
.language summary > span:first-child {
  font-size: 18px;
}
.chevron {
  color: #9160c9;
}
.language nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  min-width: 155px;
  padding: 7px !important;
  background: #fff;
  border: 1px solid #e8def4;
  box-shadow: 0 12px 36px #52397f21;
  border-radius: 14px;
  z-index: 50;
  gap: 3px !important;
}
.language:not([open]) nav {
  display: none;
}
.language nav a {
  width: 100%;
  font-size: 13px !important;
}
.language nav a[aria-current] {
  background: #f0e8ff;
  color: #7544c2;
}
.breadcrumb a {
  color: #9560bb;
}
.rail-heading > span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.left-rail .rail-heading > span:before {
  content: "💡";
  font-size: 18px;
}
.right-rail .rail-heading > span:before {
  content: "🌟";
  font-size: 18px;
}
.guide-art {
  background: linear-gradient(135deg, #50428a, #234b72);
}
.guide-card {
  border-color: #e5d9f0;
  box-shadow: 0 4px 0 #e9dff033;
}
.compact-guide {
  background: #fff7ed;
  border-color: #f3dfc2;
}
.guide-icon {
  background: #ffe7b7;
  color: #e49613;
}
.side-note {
  border-color: #ffc668;
}
.side-note > span {
  color: #b27623;
}
.collection-link {
  background: linear-gradient(115deg, #f1e6ff, #ffe9ef);
}
.collection-link b {
  color: #9b4d96;
}
.collection-link span {
  color: #a2709e;
}
.game-shell {
  box-shadow: 0 14px 45px #8a618b25;
  border: 2px solid #d6c8ef;
}
.game-toolbar {
  background: linear-gradient(100deg, #49356c, #253c65);
}
.game-toolbar h1 {
  color: #fff1b6;
}
.game-tag {
  color: #f4d3fb;
  background: #b479d933;
}
.game-actions button:first-child {
  background: #7551af;
  border-color: #a481ce;
}
.game-actions button:last-child {
  background: #327a91;
  border-color: #61a9b9;
}
.game-footer {
  background: #342c52;
  color: #dbd2ed;
}
.game-footer i {
  background: #8cde9d;
}
.ad-mount {
  background: linear-gradient(135deg, #fff9f0, #f8f1fc);
  border-color: #dfd0e9;
}
.ad-label {
  color: #8b7b9e;
}
.ad-placeholder {
  color: #9a8ba7;
}
.ad-placeholder small {
  color: #a999b4;
}
.related-card {
  box-shadow: 0 4px 0 #e8def333;
}
.related-card:nth-child(1) {
  border-color: #eed6a7;
}
.related-card:nth-child(2) {
  border-color: #c7e8ce;
}
.related-card:nth-child(3) {
  border-color: #d5c9f2;
}
.related-card:nth-child(4) {
  border-color: #c4e4f4;
}
.game-caption > span {
  color: #8b7b9e;
}
.eyebrow {
  color: #b6649b;
}
.section-heading h2 {
  color: #584176;
}
.pill {
  background: #f1e9ff;
  color: #8a59b3;
  border-color: #e5d4f6;
}
.steps article:nth-child(1) {
  background: #fff8e9;
  border-color: #f1dfb5;
}
.steps article:nth-child(2) {
  background: #f1edff;
  border-color: #ddd3f5;
}
.steps article:nth-child(3) {
  background: #edfaf4;
  border-color: #ccebdc;
}
.steps article:nth-child(1) .step-number {
  background: #ffe6ac;
  color: #9e660e;
}
.steps article:nth-child(2) .step-number {
  background: #e1d5ff;
  color: #7451b4;
}
.steps article:nth-child(3) .step-number {
  background: #c8efdc;
  color: #297b58;
}
.tips-section {
  background: linear-gradient(110deg, #fff0d6, #f5e8ff);
  border-color: #edd5e9;
}
.tip-symbol {
  color: #f1a62d;
}
.tips-section a {
  color: #9b50a7;
}
.about-section h2 {
  color: #a75e9a;
}
.site-footer {
  background: #fffdf9;
  border-color: #ede1e8;
}
.focus-mode .game-shell {
  box-shadow: 0 0 0 100vmax #fffaf4;
}
@media (max-width: 1150px) {
  .header-inner {
    gap: 14px;
  }
  .header nav a {
    padding: 10px 9px;
  }
  .nav-icon {
    font-size: 16px;
    margin-right: 0;
  }
}
@media (max-width: 800px) {
  .header-inner {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    padding: 15px 20px;
    gap: 14px;
  }
  .header-inner > nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .header-inner > nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
  }
  .header-note {
    display: none;
  }
  .language {
    margin-left: auto;
  }
  .brand {
    font-size: 32px;
  }
  .header-inner > nav a:last-child {
    display: flex;
  }
  .header nav a {
    white-space: normal;
  }
  .game-tag {
    display: none;
  }
}
@media (max-width: 440px) {
  .header-inner {
    padding: 12px 14px;
  }
  .header-inner > nav {
    gap: 2px;
  }
  .header-inner > nav a {
    font-size: 11px;
    padding: 9px 6px;
  }
  .nav-icon {
    font-size: 15px;
  }
  .game-toolbar {
    padding: 12px 10px;
    gap: 5px;
  }
  .game-toolbar h1 {
    font-size: 17px;
  }
  .game-actions button {
    font-size: 11px;
    padding: 8px;
  }
  .language summary {
    padding: 9px;
  }
  .game-footer {
    font-size: 9px;
  }
}

.language nav a {
  display: block !important;
}

.header-inner>nav a{white-space:nowrap}.header-inner>nav .nav-icon{flex-shrink:0}


.game-toolbar h1{font-size:16px;max-width:180px}.game-tag{display:none}
#pause-button{color:inherit;background:transparent;border:0;cursor:pointer;font:inherit;min-height:44px;padding:0 8px}
#pause-button:focus-visible{outline:2px solid #ffe26a;outline-offset:2px}


/* Score cards stay outside the touch playfield. */
.score-hud{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 12px 12px;background:#15132d;flex-shrink:0}
.score-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:94px;border-radius:16px;padding:10px 8px;border:1px solid #ffffff26}
.score-card.current{background:linear-gradient(125deg,#472b69,#262c69)}
.score-card.personal{background:linear-gradient(125deg,#543e24,#4c284d)}
.score-card>span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#ede8ff}
.score-card strong{font-size:34px;line-height:1.15;font-weight:900;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.current strong{color:#91f4e5;background:linear-gradient(100deg,#83f3e3,#b9b2ff,#ffb7e3);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.personal strong{color:#ffdc72}.score-card small{min-height:14px;font-size:10px;color:#e0d5ee}.current small{color:#99f6bf;font-weight:800}
.score-pop{animation:scorePop .3s ease-out}@keyframes scorePop{50%{transform:scale(1.12)}}
.game-shell:fullscreen .score-hud{width:min(100%,500px);box-sizing:border-box;min-height:0}.game-shell:fullscreen .score-card{min-height:64px;padding:5px}.game-shell:fullscreen .score-card strong{font-size:26px}
.daily-board{grid-column:1/-1;padding:18px 14px;margin-bottom:24px;border:1px solid #e4dafa;border-radius:20px;background:linear-gradient(150deg,#fff,#f8f4ff);box-shadow:0 8px 24px #5134a00a;color:#292340}
.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.daily-heading h2{font-size:17px;letter-spacing:-.025em;margin:0}.daily-heading>span{font-size:9px;background:#ebe3ff;color:#6840ac;border-radius:6px;padding:4px 5px;font-weight:800}
.daily-reset{font-size:10px;color:#746984;margin:8px 0}.daily-reset+ .daily-reset{color:#7951b5;font-weight:700}
#nickname-form{margin-top:18px}#nickname-form label{font-size:11px;font-weight:700;display:block;margin-bottom:7px}.nickname-row{display:flex;gap:5px}.nickname-row input{width:0;flex:1;min-width:0;border:1px solid #dcd2ec;border-radius:9px;padding:10px 8px;background:#fff;color:#292340;font:inherit;font-size:12px}
.daily-board button{min-height:40px;border:0;border-radius:9px;padding:8px 10px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;background:#7449c5;color:#fff}.daily-board button:disabled{opacity:.5;cursor:wait}.daily-board :focus-visible{outline:3px solid #44bab7;outline-offset:2px}
#nickname-status:empty{display:none}#nickname-status,#board-status{font-size:11px;line-height:1.6;color:#746984}#board-status{margin:16px 0}
#score-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}#score-table th{font-size:9px;color:#83778e;font-weight:600;text-align:left;padding:7px 3px;border-bottom:1px solid #ece6f3}#score-table th:first-child{width:32px}#score-table th:last-child{width:65px;text-align:right}#score-table td{padding:11px 3px;overflow-wrap:anywhere;border-bottom:1px solid #eee8f5}#score-table td:last-child{text-align:right;font-weight:800;color:#7951bb;font-variant-numeric:tabular-nums}#score-table tr.is-you{background:#f0e8ff}
.your-rank{background:#eee6ff;color:#6842a6;font-size:11px;line-height:1.5;padding:10px;border-radius:10px}.daily-actions{display:flex;gap:6px;flex-wrap:wrap}.daily-actions button{background:#eee7f8;color:#674595}
.daily-rules{font-size:10px;color:#83758c;line-height:1.6;margin-top:16px}.daily-rules summary{cursor:pointer;color:#6e6083}.daily-rules p{margin:10px 0}
@media(max-width:680px){.daily-board{max-width:460px;margin:0 auto 24px;padding:20px;box-sizing:border-box}.daily-heading h2{font-size:20px}.daily-reset{font-size:12px}#score-table{font-size:14px}.score-card strong{font-size:30px}.score-card{min-height:82px}}
@media(prefers-reduced-motion:reduce){.score-pop{animation:none}}

/* Reserve the mobile banner before scripts or ad creative load. */
.mobile-top-ad{display:none}
@media(max-width:680px){
  .mobile-top-ad{display:block;min-height:122px;margin:0 auto 22px;width:100%;max-width:460px}
  .mobile-top-ad .ad-label{line-height:14px;margin-bottom:8px}
  .mobile-top-ad .ad-mount{width:min(320px,100%);height:100px;aspect-ratio:auto;margin:0 auto;box-sizing:border-box}
  .mobile-top-ad .ad-placeholder{gap:6px}
}

/* Live ad units: keep their supplied dimensions and label them clearly. */
.ad-slot[hidden]{display:none!important}
.network-ad-mount{border:0;border-radius:0;background:transparent;overflow:visible}
.network-ad-mount>iframe{display:block;margin:auto;border:0;max-width:none}
.banner-ad .network-ad-mount{height:90px;aspect-ratio:auto;display:flex;align-items:center;justify-content:center}
.native-ad{margin:28px auto;max-width:1100px;min-height:122px}
.native-ad .ad-mount{height:auto;min-height:100px;aspect-ratio:auto}
@media(max-width:800px) and (min-width:681px){.banner-ad .network-ad-mount{height:60px}}
@media(max-width:680px){
 .mobile-top-ad{min-height:72px}
 .mobile-top-ad .network-ad-mount{width:320px;height:50px;max-width:none;position:relative;left:50%;margin:0;transform:translateX(-50%)}
 .banner-section{display:none}
}
@media(max-width:319px){.mobile-top-ad{display:none}}
