/* A published life, in the classic game's look: night navy, warm paper cards, gold, the three vitals, Nunito.
 * Written for a phone first. Nothing moves under prefers-reduced-motion. */
@font-face {
  font-family: Nunito;
  src: url('/lives/nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #0c1a2c;
  --navy-2: #16304c;
  --paper: #f5f2ec;
  --card: #ffffff;
  --ink: #1b2232;
  --ink-2: #566074;
  --line: #e7e1d7;
  --gold: #ffc53d;
  --coral: #ff5e57;
  --rose: #ff4f7b;
  --amber: #ffb627;
  --mint: #2ed39a;
  --spring: cubic-bezier(0.2, 1.4, 0.4, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--navy), var(--navy-2) 60%, #20264a);
  background-attachment: fixed;
  color: #fff;
  font: 700 17px/1.45 Nunito, ui-rounded, system-ui, sans-serif;
}

/* Until the script runs the words stand alone (crawlers, no JavaScript) */
#life-text {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}
#life-text h1 {
  font-size: 32px;
  line-height: 1.1;
}

.life-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 104px;
}

/* ---- the film ---- */
.stage {
  padding: max(12px, env(safe-area-inset-top)) 12px 0;
}
.stage-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: calc(100dvh - 200px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: 0 30px 70px -24px #000c, 0 0 0 1px #ffffff14;
  animation: frame-in 0.7s var(--ease) both;
}
.stage-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.stage-progress {
  position: absolute;
  inset: 10px 14px auto;
  height: 4px;
  border-radius: 2px;
  background: #ffffff33;
  overflow: hidden;
}
.stage-progress i {
  display: block;
  height: 100%;
  width: calc(var(--done, 0) * 100%);
  background: var(--gold);
}
.stage-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #0c1a2ccc;
  color: #fff;
  font: 900 20px/1 Nunito, system-ui;
  cursor: pointer;
}
/* The film starts silent: a white pill that keeps calling until the sound is on, then a quiet round button */
.stage-sound {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 44px;
  padding: 0 16px 0 12px;
  border-radius: 22px;
  background: #fff;
  color: var(--navy);
  font-size: 15px;
  box-shadow: 0 10px 24px -10px #000;
  animation: sound-call 2s ease-in-out 1s infinite;
}
.stage-sound svg {
  flex: none;
}
.stage-sound .sound-on {
  display: none;
}
.stage-sound.on {
  padding: 0;
  width: 44px;
  background: var(--gold);
  animation: none;
}
.stage-sound.on .sound-on {
  display: block;
}
.stage-sound.on .sound-off,
.stage-sound.on .stage-sound-word,
.ended .stage-sound-word {
  display: none;
}
.ended .stage-sound {
  padding: 0;
  animation: none;
}
.stage-replay {
  right: 66px;
  display: none;
}
.stage-replay::before {
  content: '↻';
}
.ended .stage-replay {
  display: block;
  animation: pop 0.4s var(--spring) both;
}

/* ---- like, share ---- */
.actions {
  display: flex;
  gap: 10px;
  padding: 14px 16px 6px;
}
.actions button {
  position: relative;
  height: 54px;
  border: 0;
  border-radius: 27px;
  font: 900 18px/1 Nunito, system-ui;
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.actions button:active {
  transform: scale(0.95);
}
.like {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--paper);
  color: var(--ink);
}
.like-heart::before {
  content: '♥';
  font-size: 24px;
  color: #c9c2b2;
  transition: color 0.2s;
}
.like.liked .like-heart::before {
  color: var(--rose);
}
.like.liked .like-heart {
  animation: pop 0.45s var(--spring) both;
}
.like-count {
  color: var(--ink-2);
}
.share {
  padding: 0 24px;
  background: #ffffff1f;
  color: #fff;
}
.burst {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
.burst i {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--rose);
  animation: spark 0.75s var(--ease) both;
}
.burst i:nth-child(3n) {
  background: var(--gold);
}

/* ---- the life ---- */
.hud {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: #0c1a2cf2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -14px #000;
}
.hud-face {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper);
}
/* The face at the age in the bar: each year's picture fades in over the one before (page.ts showFace) */
.hud-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hud-face img.in {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hud-face img {
    transition: none;
  }
}
.hud-who {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hud-who b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}
.hud-age {
  padding: 1px 10px;
  border-radius: 12px;
  background: var(--navy-2);
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
}
.hud-vitals {
  flex: none;
  width: 104px;
  display: grid;
  gap: 5px;
}
.vital {
  display: block;
  height: 7px;
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(max(0.04, var(--left, 1)));
  transition: transform 0.6s var(--ease);
}
.vital.health {
  background: linear-gradient(90deg, #ff7a93, var(--rose));
}
.vital.morale {
  background: linear-gradient(90deg, #ffe07a, var(--amber));
}
.vital.energy {
  background: linear-gradient(90deg, #7df0c4, #22c98c);
}

.entries {
  margin: 0;
  padding: 18px 16px 8px;
  list-style: none;
}
.entry {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 28px -18px #000;
  opacity: 0;
  transform: translateY(26px) rotate(var(--tilt, 0deg));
}
.entry.in {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg));
  transition: opacity 0.35s var(--ease), transform 0.5s var(--spring);
}
.entry p {
  margin: 0;
  font-weight: 800;
}
.entry-age {
  flex: none;
  min-width: 38px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  text-align: center;
  font-weight: 900;
  font-size: 15px;
}
.entry.funny {
  background: #fff8e4;
}
.entry.sad {
  background: #e6e8ee;
}
.entry.shame {
  background: #ffe9e6;
}
.entry.proud {
  background: #e4f8ef;
}

/* ---- numbers ---- */
.numbers {
  margin: 26px 16px 0;
  padding: 22px 22px 8px;
  border-radius: 30px;
  background: var(--paper);
  color: var(--ink);
}
.numbers h2,
.hall h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}
.number {
  padding: 8px 0 14px;
}
.number b {
  display: block;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.number b.zero {
  color: var(--coral);
}
.number span {
  color: var(--ink-2);
  font-size: 20px;
  font-weight: 800;
}

/* ---- the stone ---- */
.grave {
  margin-top: 30px;
  padding: 26px 16px 0;
  text-align: center;
  overflow: hidden;
}
.last-words {
  margin: 0 0 22px;
  font-size: 24px;
  font-weight: 800;
}
.last-words small {
  display: block;
  color: var(--gold);
  font-size: 15px;
}
.stone {
  width: min(82%, 340px);
  margin: 0 auto;
  padding: 44px 20px 62px;
  border-radius: 170px 170px 0 0;
  background: linear-gradient(150deg, #b4bac6, #8d95a4 55%, #666e7e);
  box-shadow: 0 0 0 5px #ffffff22 inset, 0 24px 50px -18px #000;
  color: var(--ink);
  transform: translateY(110%);
}
.grave.in .stone {
  transform: none;
  transition: transform 0.8s var(--spring);
}
.stone-name {
  display: block;
  font-size: 26px;
  font-weight: 900;
}
.stone-years {
  color: #2b3a50;
  font-weight: 800;
}
.stone-words {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

/* ---- what visitors leave at the stone ---- */
.reactions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  max-width: 420px;
}
.reaction {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 0;
  border-radius: 22px;
  background: #ffffff14;
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.reaction img {
  width: 28px;
  height: 28px;
}
.reaction-count {
  color: var(--gold);
}
.reaction.done {
  background: #ffc53d2e;
  box-shadow: 0 0 0 2px #ffc53d66 inset;
}
.reaction:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- the life's record ---- */
.record {
  margin: 26px 16px 0;
  padding: 20px 18px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.record h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}
.record-cause {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-weight: 800;
}
.record-line {
  margin: 0 0 14px;
  color: #9a5b07;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}
.record-squares {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.record-map {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  gap: 4px;
}
.year {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #e6dccb;
}
.year-f {
  background: #f0b232;
}
.year-s {
  background: #e0627a;
}
.year-p {
  background: #37a884;
}
.year-x {
  background: #8c6bd3;
}
.grave.in .record-map .year {
  animation: year-in 0.4s both;
  animation-delay: calc(var(--age) * 18ms);
}
@keyframes year-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
.record-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}
.record-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.record-legend .year {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.record-source {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .grave.in .record-map .year {
    animation: none;
  }
}

/* ---- your turn ---- */
.turn {
  margin: 0 16px;
  padding: 34px 22px 26px;
  border-radius: 30px;
  background: linear-gradient(160deg, var(--navy-2), #2a2460);
  box-shadow: 0 0 0 1px #ffffff14;
  text-align: center;
}
.turn h2 {
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.05;
}
.turn-question {
  margin: 8px 0 10px;
  color: var(--gold);
  font-size: 21px;
  font-weight: 900;
}
.turn-pitch {
  margin: 0 0 20px;
  color: #d7dce6;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.badge img {
  display: block;
  height: 54px;
  width: auto;
}
.turn-play {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 22px;
  border-radius: 24px;
  background: #ffffff1f;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.turn-play::after {
  content: '→';
  margin-left: 8px;
  color: var(--gold);
}
.turn-tag {
  margin: 18px 0 0;
  color: #aab3c4;
  font-size: 14px;
}

/* ---- the most liked ---- */
.hall {
  margin: 26px 16px 0;
}
.hall-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.hall-life {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 2px 10px;
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #ffffff12;
  color: #fff;
  text-decoration: none;
}
.hall-rank {
  grid-row: span 2;
  align-self: center;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}
.hall-life b {
  font-weight: 900;
}
.hall-words {
  grid-column: 2;
  color: #c4cbd8;
  font-size: 15px;
}
.hall-likes {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--rose);
  font-weight: 900;
}
.hall-life small {
  grid-column: 2;
  color: #8c94a3;
}

.life-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding: 0 18px;
  color: #aab3c4;
  font-size: 14px;
}
.life-foot a {
  color: inherit;
}
.report {
  min-height: 44px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---- the bar that is always there ---- */
.dock {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0c1a2c00, #0c1a2cf5 34%);
  animation: rise 0.6s 0.4s var(--ease) both;
}
.dock-go {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 540px;
  margin: 0 auto;
  padding: 8px 10px;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px -14px #000;
}
.dock-go img {
  border-radius: 10px;
}
.dock-go span {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.dock-go b {
  font-weight: 900;
}
.dock-go small {
  color: var(--ink-2);
  font-size: 13px;
}
.dock-go em {
  padding: 10px 16px;
  border-radius: 18px;
  background: var(--gold);
  color: var(--navy);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
  animation: breathe 2.4s ease-in-out infinite;
}

/* ---- the way down, until the first scroll ---- */
.scroll-cue {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 72px);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 17px;
  background: #0c1a2cf0;
  box-shadow: 0 0 0 1px #ffffff26, 0 10px 24px -10px #000;
  color: #fff;
  font: 800 14px/1 Nunito, system-ui;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 0.25s, visibility 0.25s;
  cursor: pointer;
  animation: cue-in 0.5s 1.4s var(--ease) both;
}
.scroll-cue.gone {
  opacity: 0;
  visibility: hidden;
}
.scroll-cue i {
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(45deg);
  animation: cue-down 1.3s ease-in-out infinite;
}
@keyframes cue-in {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@keyframes cue-down {
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}
@keyframes sound-call {
  0%,
  100% {
    box-shadow: 0 0 0 0 #ffffff80, 0 10px 24px -10px #000;
  }
  60% {
    box-shadow: 0 0 0 11px #ffffff00, 0 10px 24px -10px #000;
  }
}

/* ---- a wide screen: the film stays, the life runs beside it ---- */
@media (min-width: 980px) {
  .life-page {
    display: grid;
    grid-template-columns: 440px minmax(0, 560px);
    gap: 0 36px;
    max-width: 1040px;
    align-items: start;
  }
  .stage {
    position: sticky;
    top: 16px;
    grid-row: 1 / span 8;
    grid-column: 1;
  }
  .stage-frame {
    max-height: calc(100dvh - 40px);
  }
  .scroll-cue {
    display: none;
  }
  .actions,
  .life,
  .numbers,
  .grave,
  .turn,
  .hall,
  .life-foot {
    grid-column: 2;
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
@keyframes rise {
  from {
    transform: translateY(110%);
  }
}
@keyframes pop {
  from {
    transform: scale(0.4);
  }
}
@keyframes spark {
  to {
    transform: rotate(var(--turn)) translateY(-54px) scale(0.2);
    opacity: 0;
  }
}
@keyframes breathe {
  50% {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .entry,
  .stone {
    opacity: 1;
    transform: none;
  }
}

/* ---- the most liked lives ---- */
/* A phone (and up to 1023 px): one column, the title, the lists, the rules (the side column's own boxes wait for a wide
   screen). The side column lends its children to the page's column so that the rules come after the lists. */
.hall-page {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  padding: max(20px, env(safe-area-inset-top)) 16px 40px;
}
.hall-side {
  display: contents;
}
.hall-head {
  order: 1;
}
.hall-board {
  order: 2;
}
.hall-rules {
  order: 3;
}
.hall-prizes,
.hall-turn,
.hall-medal,
.hall-country {
  display: none;
}
@media (min-width: 980px) {
  .hall-page {
    padding-top: 56px;
  }
  .hall-head h1 {
    font-size: 44px;
  }
}
/* The language filter under the tabs: quieter than them, a ring of gold on the chosen one */
.hall-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.hall-lang {
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid #ffffff2e;
  border-radius: 20px;
  background: transparent;
  color: #c4cbd8;
  font: 800 14px/1 Nunito, system-ui;
  cursor: pointer;
}
.hall-lang[aria-pressed='true'] {
  border-color: var(--gold);
  background: #ffc53d17;
  color: var(--gold);
}
.hall-head h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}
.hall-head p {
  margin: 8px 0 16px;
  color: #c4cbd8;
}
.hall-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.hall-tab {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #ffffff14;
  color: #fff;
  font: 800 16px/1 Nunito, system-ui;
  cursor: pointer;
}
.hall-tab[aria-selected='true'] {
  background: var(--gold);
  color: var(--navy);
}
.hall-page .hall-list {
  margin-top: 14px;
}
.hall-row {
  animation: rise-row 0.45s var(--delay, 0ms) var(--ease) both;
}
.hall-life-face {
  grid-template-columns: 56px 1fr auto;
  align-items: center;
}
.hall-face {
  grid-row: span 3;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper);
}
.hall-face img {
  width: 100%;
  height: 100%;
}
.hall-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.hall-life-face .hall-text > * {
  grid-column: 1;
}
.hall-life-face .hall-likes {
  grid-row: auto;
  grid-column: 3;
}
.hall-empty {
  padding: 26px 0;
  color: #c4cbd8;
  text-align: center;
}
.hall-rules {
  margin-top: 18px;
  color: #aab3c4;
  font-size: 15px;
}
.hall-rules summary {
  min-height: 44px;
  cursor: pointer;
}
@keyframes rise-row {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---- the most liked lives on a wide screen (owner, 9 Nov 2026: "the web must not look like a phone") ----
   A column at the left that stays while the lists scroll (the title, the week's prizes as medals, the door to the game,
   the rules) and the lists beside it as cards, two to a row; a ranked list's first three stand on a podium of three. */
@media (min-width: 1024px) {
  .hall-page {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
    max-width: 1260px;
    padding: 64px 40px 80px;
  }
  /* The side column stays while the lists scroll; a window too short for it scrolls it on its own */
  .hall-side {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .hall-side::-webkit-scrollbar {
    display: none;
  }
  /* The side column in its own order: the title, the prizes, the door to the game, the rules */
  .hall-head,
  .hall-board,
  .hall-rules {
    order: 0;
  }
  .hall-head h1 {
    font-size: 46px;
    line-height: 1.05;
  }
  .hall-head p {
    margin: 14px 0 0;
    font-size: 17px;
  }
  .hall-rules {
    margin-top: 0;
  }
  /* The week's prizes: three medals and their gems */
  .hall-prizes {
    display: block;
    padding: 18px 20px 16px;
    border-radius: 24px;
    background: #ffffff0d;
    box-shadow: inset 0 0 0 1px #ffffff17;
  }
  .hall-prizes h2 {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .hall-prizes ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .hall-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px 10px;
    border-radius: 18px;
    background: #0c1a2c80;
    text-align: center;
  }
  .hall-prize .hall-medal {
    margin-bottom: 6px;
  }
  .hall-prize b {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .hall-prize span:last-child {
    color: #c4cbd8;
    font-size: 13px;
  }
  .hall-prizes p {
    margin: 10px 0 0;
    color: #c4cbd8;
    font-size: 14px;
    text-align: center;
  }
  /* The door to the game */
  .hall-turn {
    display: block;
    padding: 22px 20px 18px;
    border-radius: 24px;
    background: linear-gradient(160deg, var(--navy-2), #2a2460);
    box-shadow: 0 0 0 1px #ffffff14;
  }
  .hall-turn-icon {
    display: block;
    border-radius: 14px;
    box-shadow: 0 12px 24px -12px #000;
  }
  .hall-turn h2 {
    margin: 12px 0 4px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
  }
  .hall-turn p {
    margin: 0 0 16px;
    color: #d7dce6;
    font-size: 15px;
  }
  .hall-turn .badges {
    justify-content: flex-start;
    gap: 10px;
  }
  .hall-turn .badge img {
    height: 44px;
  }
  .hall-turn .turn-play {
    margin-top: 14px;
  }
  .hall-turn .turn-play:hover {
    background: #ffffff2b;
  }

  /* The lists as cards */
  .hall-page .hall-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
  }
  .hall-page .hall-row {
    grid-column: span 3;
    min-width: 0;
  }
  .hall-page .hall-life-face {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 2px 16px;
    height: 100%;
    margin: 0;
    padding: 16px 18px;
    border-radius: 24px;
    transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .hall-page .hall-life-face:hover {
    background: #ffffff1c;
    transform: translateY(-2px);
  }
  .hall-page .hall-face {
    width: 72px;
    height: 72px;
  }
  .hall-page .hall-words {
    font-size: 16px;
  }
  .hall-page .hall-country {
    display: inline;
  }
  .hall-page .hall-empty {
    grid-column: 1 / -1;
    padding: 48px 0;
    font-size: 18px;
  }
  /* A ranked list's first three: a podium of three cards, each with its medal, a big face and its stone's words */
  .hall-ranked .hall-row:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-life-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 16px 18px;
    text-align: center;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-medal {
    display: grid;
    order: -1;
    margin-bottom: 8px;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-face {
    width: 104px;
    height: 104px;
    margin-bottom: 8px;
    box-shadow: 0 0 0 4px var(--medal), 0 18px 34px -16px #000;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-num {
    display: none;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-text {
    justify-items: center;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-text b {
    font-size: 19px;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) .hall-likes {
    margin-top: 6px;
    font-size: 18px;
  }
  .hall-ranked .hall-row:nth-child(1) .hall-life-face {
    background: linear-gradient(180deg, #ffc53d26, #ffffff0d);
    box-shadow: inset 0 0 0 1.5px #ffc53d66;
  }
  .hall-page .hall-row:nth-child(1),
  .hall-prize-1 {
    --medal: var(--gold);
  }
  .hall-page .hall-row:nth-child(2),
  .hall-prize-2 {
    --medal: #cfd6e4;
  }
  .hall-page .hall-row:nth-child(3),
  .hall-prize-3 {
    --medal: #e0975a;
  }
  .hall-prize .hall-medal {
    display: grid;
  }
  .hall-page .hall-medal {
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--medal, var(--gold));
    box-shadow: inset 0 -3px 0 #0000002e, 0 6px 14px -6px #000;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
  }
}

/* A narrow wide screen (1024 to 1279 px): a slimmer side column, and the cards after the podium one to a row */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hall-page {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 36px;
    padding: 48px 28px 72px;
  }
  .hall-page .hall-row {
    grid-column: 1 / -1;
  }
  .hall-ranked .hall-row:nth-child(-n + 3) {
    grid-column: span 2;
  }
  .hall-head h1 {
    font-size: 40px;
  }
}
