/* one star: a mystery listing on violet, its terrible reviews piling up underneath. */
.gamecard.onestar {
  --violet: #6C4CF1;
  --deep: #4F33C9;
  --star: #FFC72C;
  --ink: #17112B;
  container-type: size;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  color: #FFFFFF;
  background: radial-gradient(70% 70% at 30% 35%, rgba(255, 255, 255, 0.14), transparent 70%), var(--violet);
}

/* ---------- the listing and its reviews ---------- */
.os-stage { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 40px 24px 0 40px; }
.listing { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 24px; background: #FFFFFF; color: var(--ink); box-shadow: 0 20px 40px -24px rgba(30, 10, 90, 0.6); }
.thumb { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 18px; background: #F0ECFF; color: var(--violet); }
.thumb svg { width: 40px; height: 40px; }
.l-info { min-width: 0; }
.l-kind { margin: 0; color: #7B7591; font-size: 14px; font-weight: 600; }
.l-name { margin: 2px 0 4px; overflow: hidden; font-size: clamp(24px, 2.6cqw, 32px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; text-overflow: ellipsis; white-space: nowrap; }
.l-name.reveal { animation: name-in 520ms cubic-bezier(.2,.9,.3,1.4); }
@keyframes name-in { from { opacity: 0; transform: translateY(8px) scale(0.92); } }
.l-rate { display: flex; align-items: center; gap: 6px; margin: 0; color: #7B7591; font-size: 14px; }
.l-rate b { color: var(--ink); }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 16px; height: 16px; }
.stars .on { color: var(--star); }
.stars .off { color: #DCD8E8; }

.feed { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; margin: 0; padding: 4px 4px 40px; overflow-y: auto; list-style: none; scrollbar-width: none; -webkit-mask: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.feed::-webkit-scrollbar { display: none; }
.review { flex: none; padding: 14px 16px 12px; border-radius: 20px; background: #FFFFFF; color: var(--ink); }
.review.latest { box-shadow: 0 0 0 3px var(--star); }
.review.new { animation: review-in 520ms cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes review-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
.r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #FFFFFF; font-size: 14px; font-weight: 700; }
.r-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.r-who b { font-size: 14px; }
.r-who .stars svg { width: 13px; height: 13px; }
.r-tag { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--star); color: #3A2A00; font-size: 12px; font-weight: 700; }
.r-text { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.r-help { margin: 8px 0 0; color: #8C87A0; font-size: 13px; }
/* On the start screen the first review sits there, too blurry to read */
.teaser .r-text { filter: blur(7px); user-select: none; }

/* ---------- the side ---------- */
.side { position: relative; min-width: 0; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 44px 48px 44px 16px; overflow-y: auto; }
.kicker { margin: 0; font-size: 15px; font-weight: 700; opacity: 0.8; }
.title { margin: 4px 0 14px; font-size: clamp(64px, 8cqw, 112px); font-weight: 800; line-height: 0.85; letter-spacing: -0.07em; }
.lede { max-width: 30ch; margin: 0 0 22px; font-size: 19px; font-weight: 500; line-height: 1.45; }
.onestar .chip { background: rgba(255, 255, 255, 0.16); }
.onestar .chip.hot { background: #FFFFFF; color: var(--violet); }
.onestar .chip.gold { background: var(--star); color: #3A2A00; }
.chips:not(:empty) { margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.actions .pill { min-height: 56px; padding: 0 28px; }
.onestar .pill.white { --edge: var(--deep); color: var(--violet); }

.hud { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dots li { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background-color 300ms ease, transform 300ms ease; }
.dots li.on { background: var(--star); transform: scale(1.1); }
.left { margin: 0; font-size: 15px; font-weight: 700; opacity: 0.85; }
.ask { margin: 0 0 16px; font-size: clamp(28px, 3.2cqw, 40px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }

.guess-box { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.guess { display: flex; gap: 8px; }
.guess input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; outline: none; box-shadow: 0 0 0 0 var(--star); transition: box-shadow 150ms ease; }
.guess input:focus { box-shadow: 0 0 0 3px var(--star); }
.guess input::placeholder { color: #9C97B0; font-weight: 500; }
.guess .pill { min-height: 56px; padding: 0 22px; }
.guess.shake { animation: shake 380ms cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.suggest { display: grid; margin: 0; padding: 6px; border-radius: 16px; background: #FFFFFF; color: var(--ink); list-style: none; }
.suggest li { padding: 10px 12px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; }
.suggest li.on, .suggest li:hover { background: #F0ECFF; color: var(--violet); }
.suggest mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note { min-height: 1.5em; margin: 10px 0 6px; font-size: 16px; font-weight: 600; }
.tried { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tried:empty { display: none; }
.tried li { padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-size: 14px; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; }
.tried li.skipped { text-decoration: none; opacity: 0.7; }
.skip { align-self: flex-start; padding: 10px 0; border: 0; background: none; color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; opacity: 0.85; cursor: pointer; }
.skip:hover { opacity: 1; }

/* ---------- the archive ---------- */
.sub { max-width: 34ch; margin: -6px 0 16px; font-size: 16px; font-weight: 500; line-height: 1.45; opacity: 0.85; }
.days { display: grid; gap: 8px; max-width: 460px; max-height: 52cqh; margin: 0 0 10px; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.d-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 10px 0 16px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; font: inherit; font-size: 16px; text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.d-row:hover, .d-row.on { background: rgba(255, 255, 255, 0.24); }
.d-no { font-weight: 800; }
.d-date { opacity: 0.8; font-weight: 500; }
.d-tag { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.18); font-size: 14px; font-weight: 700; }
.d-tag.gold { background: var(--star); color: #3A2A00; }
.d-tag.go { background: #FFFFFF; color: var(--violet); }

.big { margin: 6px 0 0; font-size: clamp(64px, 8cqw, 104px); font-weight: 800; line-height: 0.88; letter-spacing: -0.07em; }
.line { margin: 14px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.fact { max-width: 34ch; margin: 0 0 20px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); font-size: 16px; font-weight: 500; line-height: 1.45; }
.fact:empty { display: none; }
.fact b { display: block; margin-bottom: 2px; color: var(--star); font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .panel.enter > * { animation: rise 600ms cubic-bezier(.2,.8,.2,1) both; }
  .panel.enter > :nth-child(2) { animation-delay: 60ms; }
  .panel.enter > :nth-child(3) { animation-delay: 120ms; }
  .panel.enter > :nth-child(n+4) { animation-delay: 180ms; }
}
@media (prefers-reduced-motion: reduce) {
  .review.new, .l-name.reveal, .guess.shake { animation: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- phones: reviews on top, guessing below ---------- */
@media (max-width: 760px) {
  /* The reviews always keep room for the newest one; the guessing part scrolls if it has to */
  .gamecard.onestar { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(230px, 1fr) fit-content(62%); }
  .os-stage { gap: 10px; padding: 14px 14px 0; }
  .listing { gap: 12px; padding: 10px; border-radius: 18px; }
  .thumb { width: 52px; height: 52px; border-radius: 14px; }
  .thumb svg { width: 28px; height: 28px; }
  .l-name { font-size: 22px; }
  .l-rate { font-size: 13px; }
  .feed { padding-bottom: 24px; -webkit-mask: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); mask: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
  .review { padding: 12px 14px 10px; border-radius: 16px; }
  .r-text { font-size: 16px; }
  .r-help { display: none; }
  .side { min-height: 0; overflow-y: auto; }
  .panel { position: static; padding: 6px 18px 18px; justify-content: flex-start; }
  .panel[hidden] { display: none; }
  .title { font-size: 56px; margin-bottom: 8px; }
  .lede { font-size: 16px; margin-bottom: 14px; }
  .hud { margin-bottom: 6px; }
  .ask { font-size: 22px; margin-bottom: 10px; }
  /* Suggestions sit above the box, so the keyboard doesn't hide them */
  .guess-box { flex-direction: column-reverse; max-width: none; }
  .guess input, .guess .pill { height: 52px; min-height: 52px; }
  .suggest li { padding: 9px 12px; }
  .suggest li:nth-child(n+4) { display: none; }
  #play:has(.suggest:not([hidden])) .ask { display: none; }
  .note { margin: 6px 0 2px; font-size: 14px; min-height: 1.3em; }
  .tried { margin-bottom: 6px; }
  .skip { padding: 4px 0; font-size: 14px; }
  .actions .pill { flex: 1; min-height: 52px; }
  .big { font-size: 52px; }
  .line { font-size: 17px; margin: 8px 0; }
  .fact { font-size: 14px; padding: 10px 12px; margin-bottom: 12px; }
}

/* Short phones: the "Skipped" chips say nothing the dots don't, and their room goes to the newest review */
@media (max-width: 760px) and (max-height: 660px) {
  .tried li.skipped { display: none; }
  .tried:not(:has(li:not(.skipped))) { display: none; }
}
/* The shortest phones (Android with bigger system text or the three-button bar): a slimmer listing, so the newest
   review still has room, and a tighter guessing part */
@media (max-width: 760px) and (max-height: 580px) {
  .gamecard.onestar { grid-template-rows: minmax(196px, 1fr) fit-content(64%); }
  .os-stage { gap: 8px; padding-top: 10px; }
  .listing { gap: 10px; padding: 8px; }
  .thumb { width: 40px; height: 40px; border-radius: 12px; }
  .thumb svg { width: 22px; height: 22px; }
  .l-name { font-size: 20px; }
  .r-text { font-size: 15px; }
  .title { font-size: 44px; margin-bottom: 4px; }
  .lede { font-size: 15px; margin-bottom: 10px; }
  .ask { font-size: 20px; margin-bottom: 8px; }
  .guess input, .guess .pill { height: 48px; min-height: 48px; }
  .tried li { padding: 4px 10px; font-size: 13px; }
}
