[data-theme="one-lie"] .page-shell { width: min(1560px, calc(100% - 64px)); }
.local-preview { max-width: 800px; margin: 16px auto; padding: 16px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--paper); overflow-wrap: anywhere; }
.local-preview > a { margin-left: 12px; }
.local-preview p { font-size: 13px; line-height: 1.5; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.preview-controls input { width: 160px; max-width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 16px; }
.preview-controls .button { min-height: 44px; }
[data-theme="one-lie"] .app-heading { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 0; }
[data-theme="one-lie"] .app-heading > :not(.game-engagement):not(.mode-tabs) { max-width: none; }
[data-theme="one-lie"] .app-heading .game-engagement { margin: 0; }
[data-theme="one-lie"] .mode-tab[aria-pressed="true"] { background: linear-gradient(145deg, #c1a0ff, #ed9cc5); color: #211d3e; }
[data-theme="one-lie"] .game-workspace { grid-template-columns: minmax(260px, 1fr) minmax(560px, 2.4fr) minmax(260px, 1fr); gap: 28px; padding: 24px 0 40px; }
[data-theme="one-lie"] .game-primary { grid-column: 2; grid-row: 1 / span 3; width: 100%; max-width: 800px; margin-inline: auto; }
[data-theme="one-lie"] .game-sidebar { display: contents; }
[data-theme="one-lie"] .game-quick-guide { grid-column: 1; grid-row: 1; }
[data-theme="one-lie"] .game-sidebar > .game-more { grid-column: 1; grid-row: 2; }
[data-theme="one-lie"] .game-sidebar > .daily-leaderboard { grid-column: 3; grid-row: 1 / span 2; }
[data-theme="one-lie"] .game-recommendations { grid-column: 3; grid-row: 3; }
[data-theme="one-lie"] .game-play-panel { padding: 12px 16px 24px; border: 0; border-radius: 0; background: none; box-shadow: none; }
[data-theme="one-lie"] .game-panel-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-theme="one-lie"] .game-play-panel > section { text-align: center; }
[data-theme="one-lie"] .scoreboard { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 48px; margin: 0 0 30px; }
[data-theme="one-lie"] .score-card { display: grid; justify-items: center; justify-content: center; gap: 6px; padding: 0; border: 0; background: none; color: #c7c4e3; font-size: 10px; letter-spacing: .12em; text-shadow: 0 2px 10px #0c183a; }
[data-theme="one-lie"] .score-card strong { color: #f3d8ff; font-size: 30px; letter-spacing: 0; }
[data-theme="one-lie"] #ready-button { margin: 35px auto 50px; min-width: 200px; min-height: 56px; border-radius: 999px; background: linear-gradient(145deg, #443560, #27264d); border-color: #c1a0ff; }
[data-theme="one-lie"] .clues { grid-template-columns: minmax(0, 1fr); align-items: center; gap: 22px; margin: 24px 0 28px; padding: 12px 8px; }
[data-theme="one-lie"] .clues li {
  position: relative;
  isolation: isolate;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 22px 30px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: #f1eafa;
  text-align: left;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgb(5 12 31 / 70%);
}
[data-theme="one-lie"] .clues li::before,
[data-theme="one-lie"] .clues li::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  mask: var(--clue-mask, url("./clue-card.svg")) center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}
[data-theme="one-lie"] .clues li::before {
  background: rgb(193 160 255 / 45%);
}
[data-theme="one-lie"] .clues li::after {
  inset: 2px;
  background:
    radial-gradient(ellipse at 30% 30%, rgb(161 132 220 / 13%), transparent 60%),
    linear-gradient(135deg, #382f5c, #202445 70%, #30244e);
}
[data-theme="one-lie"] .clue-number { color: #d2b9f3; font-size: 12px; }
[data-theme="one-lie"] .clues li.is-entering { animation: lie-card-enter 450ms ease-out both; }
@keyframes lie-card-enter {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-theme="one-lie"] .clues.is-contemplating li::before,
[data-theme="one-lie"] .clues.is-contemplating li::after { animation: lie-edge-wiggle var(--wiggle-duration, 4s) ease-in-out var(--wiggle-delay, 0s) infinite; }
[data-theme="one-lie"] .clues li.is-lie { background: none; color: #ffb4ac; }
[data-theme="one-lie"] .clues li.is-lie::before { background: #e78f87; }
[data-theme="one-lie"] .clues li.is-lie::after { background: linear-gradient(135deg, #4d2e49, #35243e); }
[data-theme="one-lie"] .clue-explanation { color: #c8c3df; }
[data-theme="one-lie"] .puzzle-prompt { max-width: 480px; margin: 24px auto 14px; color: #e7dcf5; line-height: 1.6; }
[data-theme="one-lie"] .puzzle-prompt.is-correct { color: #b4edbe; }
[data-theme="one-lie"] .puzzle-prompt.is-wrong { color: #ffb4ac; }
[data-theme="one-lie"] .guess-form { justify-content: center; max-width: 480px; margin-inline: auto; }
[data-theme="one-lie"] .answer-input { border-radius: 18px; background: #1d264c; border-color: #7d6ba4; text-align: center; }
[data-theme="one-lie"] .guess-form .button { border-radius: 999px; border-color: #b79ce8; background: linear-gradient(145deg, #49335d, #302749); }
[data-theme="one-lie"] .game-status { font-weight: 600; }
[data-theme="one-lie"] .one-lie-result-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px auto 10px; }
[data-theme="one-lie"] .one-lie-result-navigation > .button { min-height: 46px; margin: 0; }
[data-theme="one-lie"] #new-case { min-width: 150px; }
[data-theme="one-lie"] #change-mode { min-width: 140px; }
[data-theme="one-lie"] .game-status:empty,
[data-theme="one-lie"] .result-share-status:empty { display: none; }
[data-theme="one-lie"] .result-share-actions { justify-content: center; }
[data-theme="one-lie"] .result-share-actions:not(:has(button:not([hidden]))) { margin: 0; }
[data-theme="one-lie"] .game-quick-guide,
[data-theme="one-lie"] .game-sidebar > .daily-leaderboard { padding: 28px 24px; border: 1px solid rgb(193 160 255 / 30%); border-radius: 40px; background: radial-gradient(ellipse at 30% 20%, #2c2d58, #141f40 75%); box-shadow: 0 0 24px rgb(135 100 191 / 8%); }
[data-theme="one-lie"] .game-quick-guide li::before { background: #42335f; color: #edc6ee; }
[data-theme="one-lie"] .game-quick-guide .instructions { margin: 18px 0 0; }
[data-theme="one-lie"] #ranked-status { margin-bottom: 0; color: var(--muted); font-size: 12px; }
[data-theme="one-lie"] .game-more,
[data-theme="one-lie"] .game-recommendations { border-radius: 28px; background: rgb(24 30 62 / 94%); }

@keyframes lie-edge-wiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.006, 1.035) rotate(.2deg); }
}
@media (min-width: 1241px) {
  [data-theme="one-lie"] .clues { gap: 16px; margin: 18px 0 22px; }
  [data-theme="one-lie"] .clues li { padding: 16px 26px; font-size: 17px; line-height: 1.5; }
}
@media (max-width: 1240px) {
  [data-theme="one-lie"] .game-workspace { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  [data-theme="one-lie"] .game-primary { grid-column: 1; grid-row: 1; }
  [data-theme="one-lie"] .game-sidebar { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
  [data-theme="one-lie"] .game-quick-guide { grid-column: 1; grid-row: 1; }
  [data-theme="one-lie"] .game-sidebar > .game-more { grid-column: 1; grid-row: 2; }
  [data-theme="one-lie"] .game-sidebar > .daily-leaderboard { grid-column: 2; grid-row: 1; }
  [data-theme="one-lie"] .game-recommendations { grid-column: 2; grid-row: 2; }
}
@media (max-width: 600px) {
  [data-theme="one-lie"] .page-shell { width: calc(100% - 32px); }
  [data-theme="one-lie"] .app-heading .mode-tabs { align-self: center; margin-inline: auto; }
  [data-theme="one-lie"] .game-play-panel { padding: 8px 0 16px; }
  [data-theme="one-lie"] .scoreboard { gap: 36px; margin-bottom: 20px; }
  [data-theme="one-lie"] .clues { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 6px; }
  [data-theme="one-lie"] .clues li { padding: 24px 25px; font-size: 16px; }
  [data-theme="one-lie"] .game-sidebar { grid-template-columns: minmax(0, 1fr); }
  [data-theme="one-lie"] .game-sidebar > .daily-leaderboard { grid-column: 1; grid-row: 3; }
  [data-theme="one-lie"] .game-recommendations { grid-column: 1; grid-row: 4; }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="one-lie"] .clues li.is-entering,
  [data-theme="one-lie"] .clues.is-contemplating li::before,
  [data-theme="one-lie"] .clues.is-contemplating li::after { animation: none; }
}

body[data-game-session][data-theme="one-lie"] .game-workspace { display: block; min-height: calc(100svh - 108px); padding: 0; }
body[data-game-session][data-theme="one-lie"] .game-primary { display: block; width: min(820px, 100%); max-width: none; margin: 0 auto; }
body[data-game-session][data-theme="one-lie"] .game-play-panel {
  position: relative;
  width: 100%;
  min-height: min(650px, max(380px, calc(100svh - 174px)));
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: clamp(18px, 4vw, 32px);
  background: none;
  box-shadow: none;
}
body[data-game-session][data-theme="one-lie"] .game-play-panel > #game-session-content { width: 100%; }
body[data-game-session][data-theme="one-lie"] .game-play-panel > section { text-align: center; }
body[data-game-session][data-theme="one-lie"] .game-session-start { margin: 0; }
body[data-game-session][data-theme="one-lie"] #ready-button { margin: 0; }
body[data-game-session][data-theme="one-lie"] .game-session-status { position: relative; z-index: 1; width: min(720px, 100%); margin: 8px auto 0; }
body[data-game-session][data-theme="one-lie"] #game-status { min-height: 0; }
body[data-game-session][data-theme="one-lie"] .game-session-dialog .game-guide > h2 { margin-left: 36px; }
body[data-game-session][data-theme="one-lie"] .game-recommendations { margin-top: 64px; }

@media (max-width: 600px) {
  body[data-game-session][data-theme="one-lie"] .game-play-panel { padding: 10px 8px; }
  body[data-game-session][data-theme="one-lie"] #game-session-content { padding: 4px; }
  body[data-game-session][data-theme="one-lie"] .scoreboard { gap: 8px; margin-bottom: 8px; }
  body[data-game-session][data-theme="one-lie"] .score-card strong { font-size: 22px; }
  body[data-game-session][data-theme="one-lie"] .clues { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 6px; margin: 8px 0; padding: 0; }
  body[data-game-session][data-theme="one-lie"] .clues li { grid-template-columns: 14px minmax(0, 1fr); gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.35; }
  body[data-game-session][data-theme="one-lie"] .clue-number { font-size: 10px; }
  body[data-game-session][data-theme="one-lie"] .puzzle-prompt { margin: 6px auto 4px; font-size: 11px; }
  body[data-game-session][data-theme="one-lie"] .guess-form { flex-wrap: nowrap; gap: 6px; }
  body[data-game-session][data-theme="one-lie"] .answer-input { width: auto; min-width: 0; flex: 1 1 0; }
  body[data-game-session][data-theme="one-lie"] .answer-input,
  body[data-game-session][data-theme="one-lie"] .guess-form .button { min-height: 40px; }
  body[data-game-session][data-theme="one-lie"] .guess-form .button { flex: 0 0 120px; padding-inline: 8px; font-size: 12px; }
  body[data-game-session][data-theme="one-lie"] .game-session-status { margin-top: 6px; }
  body[data-game-session][data-theme="one-lie"] #game-status { font-size: 11px; line-height: 1.3; }
}

body[data-theme="one-lie"] { -webkit-tap-highlight-color: transparent; }
body[data-game-session][data-theme="one-lie"] .app-heading { flex-flow: column nowrap; }
[data-theme="one-lie"] .app-heading h1 { color: var(--ink); text-shadow: none; }
[data-theme="one-lie"] .app-heading :is(.app-eyebrow, .game-description) { color: var(--muted); }
[data-theme="one-lie"] .mode-tabs { padding: 0; border: 0; gap: 6px; background: none; box-shadow: none; }
[data-theme="one-lie"] .mode-tab { border: 1px solid var(--line); border-radius: 999px; }
[data-theme="one-lie"] .mode-tab[aria-pressed="true"] { background: var(--accent); color: var(--canvas); }
body[data-game-session][data-theme="one-lie"] #game-session-intro #ready-button,
[data-theme="one-lie"] :is(.guess-form .button, #new-case) { border-color: var(--accent); border-radius: 999px; background: linear-gradient(135deg, #e1c4fc, #bb91e4); color: #2b193d; box-shadow: 0 0 24px rgb(205 168 244 / 10%); }
body[data-game-session][data-theme="one-lie"] #game-session-intro #ready-button:hover:not(:disabled),
[data-theme="one-lie"] :is(.guess-form .button, #new-case):hover:not(:disabled) { background: #e8d2fd; }
[data-theme="one-lie"] .score-card { color: var(--muted); text-shadow: none; }
[data-theme="one-lie"] .score-card strong { color: var(--accent); }
[data-theme="one-lie"] .scoreboard { margin-bottom: 12px; }
[data-theme="one-lie"] #score-meter { appearance: none; width: min(240px, 60vw); height: 5px; border: 0; border-radius: 999px; overflow: hidden; background: var(--accent-soft); color: var(--accent); }
[data-theme="one-lie"] #score-meter::-webkit-progress-bar { background: var(--accent-soft); }
[data-theme="one-lie"] #score-meter::-webkit-progress-value { background: var(--accent); transition: width 250ms linear; }
[data-theme="one-lie"] #score-meter::-moz-progress-bar { background: var(--accent); }
[data-theme="one-lie"] .clues li { color: var(--ink); text-shadow: none; }
[data-theme="one-lie"] .clues li::before { background: var(--line); }
[data-theme="one-lie"] .clues li::after { background: linear-gradient(135deg, var(--paper), var(--accent-soft)); }
[data-theme="one-lie"] .clue-number { color: var(--accent); }
[data-theme="one-lie"] .clue-explanation { color: var(--muted); }
[data-theme="one-lie"] .clues li.is-lie::before { background: #ee9eaa; }
[data-theme="one-lie"] .clues li.is-lie::after { background: linear-gradient(135deg, #513044, #3e253d); }
[data-theme="one-lie"] .clues li.is-lie { color: #ffc0c9; }
[data-theme="one-lie"] .answer-input { width: 200px; background: var(--paper); border-color: var(--line); color: var(--ink); }
[data-theme="one-lie"] .puzzle-prompt { color: var(--muted); }
[data-theme="one-lie"] .puzzle-prompt { text-align: center; }
body[data-game-session][data-theme="one-lie"] .game-play-panel[data-phase="result"] .puzzle-prompt {
  max-width: 100%; margin: 10px auto; font-size: clamp(18px, 3vw, 25px);
  font-weight: 900; line-height: 1.4; text-wrap: balance;
}
[data-theme="one-lie"] .clue-verdict {
  display: inline-block; margin-left: 8px; border: 1px solid currentColor;
  border-radius: 4px; padding: 1px 5px; color: #ffc0c9; vertical-align: middle;
  font: 900 10px/1.4 var(--font-body, sans-serif); letter-spacing: .06em; white-space: nowrap;
}
body[data-game-session][data-theme="one-lie"] .game-play-panel[data-phase="result"] .clues { gap: 6px; margin: 8px 0; }
body[data-game-session][data-theme="one-lie"] .game-play-panel[data-phase="result"] .clues li { padding-block: 8px; }
[data-theme="one-lie"] .clue-explanation { margin-top: 3px; font-size: 12px; line-height: 1.35; }
@media (max-width: 600px) {
  body[data-game-session][data-theme="one-lie"] .game-play-panel[data-phase="result"] .clues li { padding-block: 6px; }
  [data-theme="one-lie"] .clue-explanation { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="one-lie"] #score-meter::-webkit-progress-value { transition: none; }
}
[data-theme="one-lie"] .clues li.is-lie::before { background: #ffb4c1; }
[data-theme="one-lie"] .clues li.is-lie::after { inset: 3px; }
[data-theme="one-lie"] .clues li.is-lie .clue-number { font-weight: 900; font-size: 18px; }
html:not([data-color-mode="dark"]) [data-theme="one-lie"] .clue-verdict { color: #9c2c45; }
[data-theme="one-lie"] #change-mode { border-color: var(--line); background: var(--paper); color: var(--ink); }
[data-theme="one-lie"] #change-mode:hover { background: var(--accent-soft); }
body[data-game-session][data-theme="one-lie"] .game-recommendations,
[data-theme="one-lie"] .game-recommendations a { border: 0; border-radius: 0; background: none; box-shadow: none; }
[data-theme="one-lie"] .result-share-dialog-preview { background: var(--canvas); }
html:not([data-color-mode="dark"]) [data-theme="one-lie"] .clues li.is-lie { color: #9c2c45; }
html:not([data-color-mode="dark"]) [data-theme="one-lie"] .clues li.is-lie::after { background: #f9e4ed; }

.one-lie-backdrop { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; mask-image: linear-gradient(90deg, #000 16px, transparent var(--clear-left, 25%), transparent var(--clear-right, 75%), #000 calc(100% - 16px)); }
.one-lie-question { position: absolute; top: var(--question-y); left: -60px; color: var(--accent); font: 700 var(--question-size)/1 var(--font-display); opacity: .5; user-select: none; animation: lie-question-in var(--question-duration) var(--question-delay) linear infinite; }
.one-lie-question[data-side="right"] { left: auto; right: -60px; animation-name: lie-question-in-right; }
.one-lie-question-face { display: block; transform: rotate(0deg); transition: transform 480ms cubic-bezier(.2, .8, .25, 1); }
.one-lie-question[data-inverted="true"] .one-lie-question-face { transform: rotate(180deg); }
.one-lie-backdrop[data-paused="true"] .one-lie-question { animation-play-state: paused; }
@keyframes lie-question-in { from { transform: translateX(0); } to { transform: translateX(calc(50vw + 60px)); } }
@keyframes lie-question-in-right { from { transform: translateX(0); } to { transform: translateX(calc(-50vw - 60px)); } }
html:not([data-color-mode="dark"]) .one-lie-backdrop { display: none; }
@media (max-width: 600px) { .one-lie-question { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .one-lie-backdrop { display: none; }
  .one-lie-question-face { transition: none; }
}

body[data-game-session][data-theme="one-lie"] .game-play-panel { --one-lie-cog-width: clamp(80px, 12vw, 112px); }
.one-lie-cog-companion { position: absolute; z-index: 1; top: 0; left: 50%; width: var(--one-lie-cog-width); aspect-ratio: 320 / 280; transform: translateX(-50%); transition: top 550ms cubic-bezier(.22, 1, .36, 1), left 550ms cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.one-lie-cog-companion > :is(img, svg) { display: block; width: 100%; height: 100%; background: transparent; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .one-lie-cog-companion { transition: none; }
}
