:root {
  color-scheme: light dark;
  --bg: #fcfaf9;
  --surface: #fff;
  --surface2: #f3efee;
  --ink: #2b2027;
  --muted: #6f626b;
  --border: #e6dfe1;
  --berry: #ac2147;
  --selected: #f8e5e9;
  --good: #216d54;
  --good-bg: #e3f1e9;
  --clue: #f9e4e4;
  --ink-on-poster: #fff5e4;
  --max: 1024px;
  --rail: 220px;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Noto Sans KR", system-ui, sans-serif;
  font: 100%/1.45 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191719;
    --surface: #242024;
    --surface2: #302a2e;
    --ink: #f9f2f1;
    --muted: #c5b5bf;
    --border: #42383f;
    --berry: #ff8da9;
    --selected: #442833;
    --good: #9be3bd;
    --good-bg: #21382e;
    --clue: #56383f;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  font-size: 1.0625rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--berry);
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}
button:active:enabled {
  filter: brightness(0.94);
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.defs,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.initial-load,
.empty {
  min-height: 46svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}
.initial-load {
  font-weight: 800;
  letter-spacing: -0.06em;
}
.initial-load img {
  width: 52px;
}
#layout {
  max-width: 1512px;
  margin-inline: auto;
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px 21px 28px;
  border-inline-end: 1px solid var(--border);
  background: var(--surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 1.52rem;
  font-weight: 810;
  letter-spacing: -0.078em;
  line-height: 1.05;
}
.brand img {
  width: 37px;
  height: 37px;
}
.rail-nav {
  display: grid;
  gap: 6px;
}
.rail-nav button,
.rail-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 10px 15px;
  min-height: 48px;
  border-radius: 13px;
  font-weight: 660;
  font-size: 1rem;
  color: var(--muted);
}
.rail-nav button[aria-current] {
  background: var(--selected);
  color: var(--berry);
}
.rail-nav .icon,
.rail-settings .icon {
  width: 23px;
  height: 23px;
}
.rail-settings {
  margin-top: auto;
}
#app {
  min-width: 0;
  outline: 0;
}
.surface {
  max-width: var(--max);
  margin: auto;
  padding: 51px clamp(32px, 4.5vw, 76px) 54px;
}
.mobile-top,
.tabbar {
  display: none;
}
.view-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.view-heading {
  margin-bottom: 24px;
}
.view-heading h1 {
  font-size: clamp(2.2rem, 3vw, 3.15rem);
  font-weight: 790;
  line-height: 1.14;
  letter-spacing: -0.066em;
}
.pack-button,
.icon-btn,
.text-link,
.zoom-btn,
.quiet,
.source-link {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pack-button {
  max-width: 60%;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 640;
}
.pack-button .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.country-flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 1.18rem;
  line-height: 1.1;
  font-style: normal;
}
.pack-poster {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  container-type: inline-size;
  color: var(--ink-on-poster);
  border-radius: 28px;
  background: linear-gradient(117deg, #982445 0%, #b82c4f 50%, #da566a 100%);
  box-shadow: 0 9px 24px -20px #731330b0;
}
.pack-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.4' d='M0 0h140v140H0z'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: soft-light;
}
.poster-content {
  position: relative;
  z-index: 2;
  width: 48%;
  padding: 34px 0 34px clamp(24px, 4.1cqw, 46px);
  pointer-events: none;
}
.poster-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 660;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.poster-type .icon {
  width: 18px;
  height: 18px;
}
.pack-poster h2 {
  font-size: clamp(2.7rem, 7.1cqw, 4.35rem);
  line-height: 1.025;
  letter-spacing: -0.075em;
  font-weight: 810;
  margin: 17px 0 12px;
  max-width: 5.6em;
  text-wrap: balance;
}
.poster-meta {
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 580;
  color: #fff1df;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 11px 20px;
  border-radius: 16px;
  font-weight: 730;
  font-size: 1.02rem;
  line-height: 1.32;
  text-align: center;
}
.primary {
  background: var(--berry);
  color: white;
}
.primary.on-poster {
  pointer-events: auto;
  margin-top: 24px;
  border-radius: 28px;
  background: #fff4df;
  color: #68132e;
  box-shadow: 0 2px 4px #5811271a;
  padding: 12px 20px;
  min-height: 47px;
  font-size: 0.96rem;
}
.primary .icon {
  width: 18px;
  height: 18px;
}
.secondary {
  background: var(--surface2);
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .primary:not(.on-poster) {
    color: #32101d;
  }
}
.poster-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.poster-globe {
  position: absolute;
  width: 67%;
  max-width: none;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.87;
}
.orbit {
  display: block;
  position: absolute;
  width: 76%;
  height: 70%;
  right: -12%;
  top: 10%;
  border: 1px dashed #ffdfc066;
  border-radius: 50%;
  transform: rotate(-25deg);
}
.print-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f9c596;
}
.dot-a {
  left: 49%;
  top: 25%;
}
.dot-b {
  right: 8%;
  bottom: 14%;
  width: 5px;
  height: 5px;
}
.cut {
  position: absolute;
  display: block;
  object-fit: contain;
  filter: drop-shadow(8px 14px 6px #6e173753);
  max-width: none;
}
.cut-0 {
  z-index: 3;
  right: 18%;
  top: 6%;
  height: 88%;
  width: 24%;
  transform: rotate(13deg);
}
.cut-1 {
  z-index: 2;
  right: 0%;
  top: 38%;
  height: 43%;
  width: 33%;
  transform: rotate(-30deg);
}
.cut-2 {
  z-index: 1;
  right: 33%;
  top: 22%;
  height: 61%;
  width: 21%;
  transform: rotate(-37deg);
  filter: drop-shadow(5px 10px 5px #73143266);
}
.preview-section {
  margin-top: 34px;
}
.section-title h2,
.result-list h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 760;
  letter-spacing: -0.06em;
}
.text-link {
  font-size: 0.91rem;
  font-weight: 650;
  padding: 0 0 0 8px;
  color: var(--berry);
  gap: 3px;
}
.text-link .icon {
  height: 14px;
  width: 14px;
}
.discovery {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.89rem;
  font-weight: 570;
  color: var(--muted);
  margin: 0 0 15px;
}
.ring {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(
    var(--berry) 0 var(--deg),
    var(--border) var(--deg) 100%
  );
  mask-image: radial-gradient(circle, transparent 38%, #000 42%);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.album-card {
  width: 100%;
  min-width: 0;
  text-align: start;
  padding: 0;
  border-radius: 17px;
  overflow: visible;
}
.album-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.18;
  border-radius: 18px;
  isolation: isolate;
  overflow: hidden;
}
.album-art img {
  position: absolute;
  inset: 9% 14%;
  width: 72%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(2px 6px 3px #482b3128);
}
.peach {
  background: #f6e1d5;
}
.mint {
  background: #dfeadf;
}
.lilac {
  background: #e9e2ef;
}
.lemon {
  background: #efead4;
}
.rose {
  background: #f5dde4;
}
.lock-mark {
  position: absolute;
  bottom: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #65595e;
  background: #fffdf3de;
  border-radius: 50%;
}
.lock-mark .icon {
  width: 13px;
  height: 13px;
}
.lock-mark.is-found {
  background: #ebfff4;
  color: #155635;
}
.card-name {
  display: block;
  padding: 7px 2px 2px;
  font-size: 0.93rem;
  font-weight: 650;
}
.card-name.is-hidden {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 540;
}
@media (prefers-color-scheme: dark) {
  .peach {
    background: #5b4542;
  }
  .mint {
    background: #3b5148;
  }
  .lilac {
    background: #50475b;
  }
  .lemon {
    background: #57533d;
  }
  .rose {
    background: #60434e;
  }
}
.album-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--selected);
}
.summary-art,
.empty-glyph,
.result-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  color: var(--berry);
  border-radius: 15px;
}
.album-summary strong {
  font-size: 1.17rem;
  letter-spacing: -0.04em;
}
.album-summary p,
.empty p,
.detail-caption,
.out-brand,
.input-guide {
  color: var(--muted);
  font-size: 0.97rem;
}
.segments {
  display: flex;
  gap: 2px;
  background: var(--surface2);
  padding: 3px;
  border-radius: 13px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0;
}
.segments button {
  min-height: 44px;
  min-width: 66px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.93rem;
  padding: 6px 15px;
  font-weight: 650;
}
.segments button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 4px #20151b15;
  color: var(--ink);
}
.gallery-grid {
  row-gap: 18px;
}
.empty .primary {
  margin-top: 7px;
}
.in-round #layout {
  display: block;
}
.in-round .rail,
.in-round .tabbar {
  display: none;
}
.session {
  max-width: 880px;
  margin: auto;
  padding: 26px clamp(18px, 4vw, 50px) 40px;
}
.gamebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
}
.icon-btn,
.zoom-btn {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  background: var(--surface2);
}
.icon-btn .icon,
.zoom-btn .icon {
  width: 20px;
  height: 20px;
}
.session-label,
.points,
.question-counter,
.outcome-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 660;
}
.session-label {
  font-size: 1rem;
  text-align: center;
}
.points {
  padding: 5px 10px;
  color: var(--berry);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  background: var(--selected);
  border-radius: 24px;
}
.points .icon {
  height: 17px;
  width: 17px;
}
.game-progress {
  margin: 20px 0;
}
.question-counter {
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}
.question-counter b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.track {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.track i {
  height: 5px;
  flex: 1;
  min-width: 1px;
  border-radius: 6px;
  background: var(--border);
}
.track .on {
  background: var(--berry);
}
.track .right {
  background: var(--good);
}
.track .passed {
  background: var(--muted);
}
.round-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.clue-panel,
.detail-photo {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--clue);
  border-radius: 25px;
}
.clue-panel {
  min-height: 320px;
  aspect-ratio: 1/1.04;
}
.clue-orb {
  position: absolute;
  inset: -5%;
  z-index: -1;
  background: url("./globe-grid.svg") no-repeat center/cover;
  opacity: 0.62;
  filter: brightness(0.66);
}
.clue-photo {
  position: absolute;
  inset: 9% 12%;
  width: 76%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(5px 11px 5px #59233d2e);
  animation: appear 0.2s ease-out;
}
.zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--surface);
  box-shadow: 0 1px 5px #4c26300d;
}
.picture-error {
  padding: 18px;
  text-align: center;
}
.picture-error .secondary {
  margin-top: 10px;
}
.answer-area {
  min-width: 0;
}
.answer-area h1 {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  font-weight: 770;
  letter-spacing: -0.065em;
}
.input-guide,
.out-brand {
  margin-top: 7px;
}
.answer-area input {
  width: 100%;
  height: 54px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  margin-top: 20px;
  padding: 0 15px;
  outline-offset: 2px;
  font-size: max(16px, 1.0625rem);
}
.answer-area input[aria-invalid="true"] {
  border-color: var(--berry);
}
.answer-area input::placeholder {
  color: var(--muted);
}
.feedback:not(:empty) {
  color: var(--berry);
  font-size: 0.9rem;
  margin: 7px 0;
  font-weight: 600;
}
.answer-primary {
  width: 100%;
  margin-top: 10px;
}
.assist,
.result-actions {
  display: flex;
  gap: 8px;
}
.assist {
  justify-content: space-between;
  margin-top: 9px;
}
.quiet {
  padding: 4px 9px;
  font-size: 0.94rem;
  font-weight: 640;
  color: var(--muted);
  border-radius: 12px;
}
.quiet.hint {
  color: var(--berry);
}
.quiet .icon {
  width: 17px;
  height: 17px;
}
.outcome-line {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.outcome-line.right {
  color: var(--good);
}
.outcome-line .icon {
  width: 19px;
  height: 19px;
}
.out-brand + .primary {
  margin-top: 22px;
}
.source-link {
  font-size: 0.91rem;
  text-underline-offset: 3px;
}
.source-link .icon {
  width: 15px;
  height: 15px;
}
.result-view {
  max-width: 620px;
}
.result-top {
  padding: 35px 0 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 6px;
}
.result-icon {
  width: 63px;
  height: 63px;
  border-radius: 21px;
  background: var(--selected);
  margin-bottom: 5px;
}
.result-icon .icon {
  width: 34px;
  height: 34px;
}
.result-top h1 {
  font-size: 2.2rem;
  letter-spacing: -0.06em;
}
.result-top p {
  color: var(--muted);
}
.result-actions {
  width: min(100%, 355px);
  margin: 12px 0;
  flex-direction: column;
}
.result-list ol,
.credits {
  padding: 0;
  list-style: none;
}
.result-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  border-bottom: 1px solid var(--border);
}
.result-list li img {
  height: 43px;
  width: 43px;
  object-fit: contain;
}
.result-list strong {
  font-size: 1rem;
}
.result-list li span {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.87rem;
}
.result-list li .icon {
  width: 14px;
  height: 14px;
}
.was-right {
  color: var(--good);
}
.was-skipped {
  color: var(--muted);
}
dialog {
  color: var(--ink);
  border: none;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 20px 80px #17101833;
  width: min(420px, calc(100% - 32px));
  max-height: 82dvh;
  overflow: auto;
  padding: 20px 24px 23px;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgb(23 17 23 / 0.48);
}
dialog[open] {
  animation: appear 0.18s ease-out;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.sheet-header h2 {
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}
.sheet-header .icon-btn {
  width: 44px;
  height: 44px;
}
.sheet-handle {
  display: none;
}
.setting-label,
.setting-row,
.setting-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setting-label,
.setting-row {
  font-weight: 620;
}
.setting-group {
  padding-bottom: 5px;
}
.language-segments {
  width: 100%;
  margin: 8px 0;
}
.language-segments button {
  flex: 1;
}
.setting-row {
  width: 100%;
  text-align: start;
  padding: 14px 2px;
  min-height: 50px;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.setting-row > .icon {
  width: 16px;
  color: var(--muted);
}
.setting-row input {
  appearance: none;
  position: relative;
  width: 47px;
  height: 28px;
  border-radius: 22px;
  background: var(--border);
  cursor: pointer;
  margin: 0;
}
.setting-row input:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #21112445;
}
.setting-row input:checked {
  background: var(--berry);
}
.setting-row input:checked:after {
  transform: translateX(19px);
}
.help-steps {
  padding-inline-start: 25px;
}
.help-steps li {
  padding: 5px 0;
}
.help-steps li::marker {
  color: var(--berry);
  font-weight: 700;
}
.credits li {
  border-bottom: 1px solid var(--border);
}
.credits .source-link {
  width: 100%;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
}
.detail-photo {
  height: clamp(170px, 36svh, 340px);
  border-radius: 19px;
}
.detail-photo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}
.detail-caption {
  margin: 13px 0 2px;
}
.detail-photo.zoomed {
  height: clamp(240px, 50svh, 440px);
}
.detail-photo.zoomed img {
  width: 93%;
  height: 93%;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1320px) {
  #layout {
    --rail: 250px;
  }
  .surface {
    padding-top: 63px;
  }
  .pack-poster {
    min-height: 357px;
  }
}
@media (max-width: 960px) {
  #layout {
    --rail: 180px;
  }
  .rail {
    padding: 38px 12px 24px;
  }
  .rail .brand {
    font-size: 1.33rem;
  }
  .rail .brand img {
    width: 31px;
    height: 31px;
  }
  .surface {
    padding-inline: 27px;
  }
  .album-grid {
    gap: 11px;
  }
  .pack-poster {
    min-height: 298px;
  }
  .poster-content {
    width: 50%;
  }
  .pack-poster h2 {
    font-size: clamp(2.45rem, 7cqw, 3.3rem);
  }
}
@media (max-width: 720px) {
  #layout {
    display: block;
  }
  .rail {
    display: none;
  }
  .surface {
    padding: max(10px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      calc(99px + env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 20px;
  }
  .brand {
    font-size: 1.32rem;
    gap: 7px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .mobile-top .icon-btn {
    background: transparent;
  }
  .view-heading {
    margin-bottom: 14px;
  }
  .view-heading h1 {
    font-size: 2.25rem;
  }
  .pack-button {
    font-size: 0.85rem;
    padding: 4px 10px;
    gap: 5px;
  }
  .pack-poster {
    min-height: 276px;
    border-radius: 24px;
  }
  .poster-content {
    width: 55%;
    padding: 24px 0 24px 21px;
  }
  .pack-poster h2 {
    font-size: clamp(2.3rem, 8.4cqw, 3rem);
    margin: 16px 0 10px;
    max-width: 5.25em;
  }
  .poster-meta {
    font-size: 0.87rem;
    max-width: 14em;
  }
  .poster-type {
    font-size: 0.81rem;
  }
  .poster-type .icon {
    width: 16px;
    height: 16px;
  }
  .primary.on-poster {
    margin-top: 22px;
    min-height: 44px;
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  .poster-globe {
    width: 94%;
    right: -29%;
    top: 51%;
  }
  .cut-0 {
    height: 61%;
    width: 30%;
    right: 11%;
    top: 5%;
    transform: rotate(7deg);
  }
  .cut-1 {
    height: 37%;
    width: 42%;
    right: -2%;
    top: 54%;
    transform: rotate(-28deg);
  }
  .cut-2 {
    height: 43%;
    width: 24%;
    right: 27%;
    top: 24%;
    transform: rotate(-41deg);
  }
  .dot-a {
    left: 58%;
    top: 15%;
  }
  .orbit {
    right: -29%;
    width: 88%;
  }
  .preview-section {
    margin-top: 21px;
  }
  .section-title h2,
  .result-list h2 {
    font-size: 1.33rem;
  }
  .discovery {
    margin-bottom: 11px;
  }
  .tabbar {
    position: fixed;
    z-index: 6;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: min(13vw, 96px);
    padding: 4px max(10px, env(safe-area-inset-right))
      max(5px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  .tabbar button {
    min-width: 78px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 640;
    color: var(--muted);
  }
  .tabbar button .icon {
    width: 23px;
    height: 23px;
  }
  .tabbar button[aria-current] {
    color: var(--berry);
  }
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 9px;
  }
  .preview-grid .album-card:nth-child(n + 4) {
    display: none;
  }
  .album-art {
    aspect-ratio: 0.96;
    border-radius: 14px;
  }
  .lock-mark {
    width: 20px;
    height: 20px;
    bottom: 5px;
    right: 5px;
  }
  .session {
    padding: max(9px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      calc(18px + env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
  .gamebar {
    min-height: 44px;
  }
  .game-progress {
    margin: 13px 0 16px;
  }
  .round-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .clue-panel {
    width: 100%;
    min-height: 0;
    height: clamp(168px, 31svh, 290px);
    aspect-ratio: auto;
    border-radius: 22px;
  }
  .answer-area h1 {
    font-size: 1.6rem;
  }
  .input-guide {
    font-size: 0.89rem;
    margin-top: 3px;
  }
  .answer-area input {
    height: 49px;
    margin-top: 12px;
  }
  .answer-primary {
    min-height: 48px;
  }
  .assist {
    margin-top: 5px;
  }
  .result-top {
    padding-top: 25px;
  }
  dialog {
    position: fixed;
    inset: auto 0 0;
    width: min(100%, 540px);
    max-width: 100%;
    max-height: 85dvh;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
    padding: 9px max(21px, env(safe-area-inset-right))
      calc(19px + env(safe-area-inset-bottom))
      max(21px, env(safe-area-inset-left));
  }
  .sheet-handle {
    display: block;
    width: 37px;
    height: 5px;
    border-radius: 5px;
    background: var(--border);
    margin: 0 auto 9px;
  }
}
@media (max-width: 360px) {
  .surface,
  .session {
    padding-inline: 14px;
  }
  .mobile-top {
    margin-bottom: 12px;
  }
  .poster-content {
    padding-left: 16px;
  }
  .pack-poster h2 {
    font-size: 2.15rem;
  }
  .pack-poster {
    min-height: 251px;
  }
  .cut-0 {
    right: 9%;
  }
  .session-label {
    font-size: 0.87rem;
  }
  .assist .quiet {
    font-size: 0.86rem;
    padding-inline: 4px;
  }
}
@media (min-width: 510px) and (max-width: 720px) {
  .surface {
    max-width: 630px;
  }
  .pack-poster {
    min-height: 310px;
  }
  .cut-0 {
    width: 25%;
    right: 15%;
    height: 85%;
  }
  .cut-1 {
    width: 33%;
    height: 42%;
    top: 43%;
  }
  .cut-2 {
    right: 32%;
    height: 59%;
  }
  .session {
    max-width: 600px;
  }
  .album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .preview-grid .album-card:nth-child(n + 4) {
    display: block;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .session {
    max-width: 900px;
  }
  .game-progress {
    margin: 5px 0 10px;
  }
  .round-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    gap: 16px;
  }
  .clue-panel {
    min-height: 0;
    height: 49svh;
  }
  .answer-area input {
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Let accessibility text sizes take a second line before controls collide. */
.view-heading,
.gamebar {
  flex-wrap: wrap;
}
.pack-button {
  max-width: 100%;
}
.session-label {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
@container (max-width:15rem) {
  .poster-content {
    width: 100%;
    padding: 0.8rem 0.65rem;
  }
  .pack-poster h2 {
    font-size: 1.55rem;
    max-width: none;
    margin: 0.4rem 0;
  }
  .poster-art {
    width: 29%;
    height: 3.5rem;
    inset: 0 0 auto auto;
    opacity: 0.8;
  }
  .poster-meta {
    max-width: none;
  }
  .primary.on-poster {
    margin-top: 0.65rem;
  }
}
@media (max-width: 360px) {
  .gamebar {
    column-gap: 5px;
    row-gap: 3px;
  }
  .points {
    margin-inline-start: auto;
  }
}
@supports (font: -apple-system-body) {
  :root {
    font: -apple-system-body;
    font-family: var(--sans);
    line-height: 1.45;
  }
}
@media (max-width: 720px) {
  .sheet-handle {
    touch-action: none;
    position: relative;
    width: 100%;
    height: 20px;
    margin: -5px 0 2px;
    background: transparent;
  }
  .sheet-handle::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 37px;
    height: 5px;
    border-radius: 5px;
    background: var(--border);
  }
}
