@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/lilita-one.ttf") format("truetype");
  font-display: swap;
}

:root {
  --red: #E62E49;
  --outline: #1A1A1A;
  --label: #FFFFFF;

  --surface: #FFFCFC;
  --surface-raised: #F1EAEA;
  --surface-edge: #D9CCCC;
  --card-border: #C4BABA;
  --text: #1A1A1A;
  --text-muted: #6E6763;

  --duel-panel: #282828;
  --card-face: #34405A;
  --card-edge: #222B3E;
  --timer-track: #2B2934;
  --star-off: #4B4957;
  --seg1: #4CC96B;
  --seg2: #F2A33C;
  --seg3: #E4453A;
  --gold: #F5C542;
  --gold-flash: #FFD166;

  --tint-coin: #3B2412;
  --tint-gem: #3A1245;
  --tint-trophy: #1C2747;

  --r-common: #CCCCCC;
  --r-uncommon: #2ECC71;
  --r-rare: #3498DB;
  --r-epic: #9B59B6;
  --r-legendary: #FFD700;
  --r-divine: #E74C3C;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --tile: 400px;
  --drift: 16s;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--red);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p {
  margin: 0;
  font-weight: 400;
}

h1, h2, h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--label);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 700px) {
  .container { padding: 0 32px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.backdrop {
  position: fixed;
  inset: calc(var(--tile) * -1) calc(var(--tile) * -1) 0 0;
  z-index: -1;
  pointer-events: none;
  background: url("assets/img/backdrop-tile.png") 0 0 / var(--tile) var(--tile) repeat;
  animation: drift var(--drift) linear infinite;
  will-change: transform;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(var(--tile) * -1), var(--tile), 0); }
}

.ot {
  --ow: 2px;
  color: var(--label);
  -webkit-text-stroke: calc(var(--ow) * 2) var(--outline);
  paint-order: stroke fill;
}

.kicker {
  --ow: 1.5px;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.display {
  --ow: 3.5px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  text-shadow: 0 5px 0 var(--outline);
}

.title {
  --ow: 3px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 0 var(--outline);
}

.lead {
  color: var(--label);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  max-width: 640px;
  text-shadow: 0 2px 0 rgba(26, 26, 26, 0.35);
}

.btn {
  --face: #4A5A78;
  --top: #5E6F90;
  --edge: #2B364C;
  --ow: 1.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px 15px;
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  background: linear-gradient(var(--top) 0 48%, var(--face) 48% 100%);
  box-shadow: inset 0 -4px 0 var(--edge);
  color: var(--label);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  -webkit-text-stroke: calc(var(--ow) * 2) var(--outline);
  paint-order: stroke fill;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.3, 1.8, 0.5, 1), filter 0.15s;
}

.btn img {
  flex: none;
  width: 24px;
  height: 24px;
}

.btn:hover { filter: brightness(1.06); }

.btn:active {
  transform: scale(0.93);
  transition-duration: 0.06s;
  box-shadow: inset 0 -4px 0 var(--edge), inset 0 0 0 100px rgba(0, 0, 0, 0.18);
}

.btn-orange { --face: #FF9F12; --top: #FFB53A; --edge: #C86E00; }
.btn-blue { --face: #0094FF; --top: #3FB5FF; --edge: #0069B8; }
.btn-dark { --face: #4A5A78; --top: #5E6F90; --edge: #2B364C; }

.btn-lg {
  --ow: 2.5px;
  min-height: 64px;
  padding: 14px 36px 18px;
  font-size: 24px;
}
.btn-lg img { width: 30px; height: 30px; }

@media (max-width: 420px) {
  .btn-lg {
    padding: 14px 20px 18px;
    font-size: 20px;
    letter-spacing: 0.8px;
  }
  .btn-lg img { width: 26px; height: 26px; }
}

.btn-sm {
  min-height: 42px;
  padding: 8px 20px 11px;
  font-size: 16px;
  border-width: 2.5px;
  box-shadow: inset 0 -3px 0 var(--edge);
}

.btn-square {
  width: 52px;
  min-height: 52px;
  padding: 0 0 4px;
}

.card {
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 -5px 0 var(--surface-edge);
  padding: 22px 22px 26px;
}

.card h3 {
  font-size: 22px;
  line-height: 1.15;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 16px;
}

.card strong {
  color: var(--text);
  font-weight: 400;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.25s, box-shadow 0.25s;
}

.nav.is-scrolled {
  background: rgba(230, 46, 73, 0.94);
  box-shadow: 0 3px 0 rgba(26, 26, 26, 0.25);
  backdrop-filter: blur(6px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.nav-links {
  display: none;
  margin-left: auto;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--label);
  font-size: 17px;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(26, 26, 26, 0.4);
  transition: background-color 0.15s;
}

.nav-links a:hover {
  background: rgba(26, 26, 26, 0.18);
}

.nav-back {
  margin-left: auto;
  gap: 6px;
  padding-left: 12px;
}

.nav-back img {
  width: 20px;
  height: 20px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-back { margin-left: 8px; }
}

.hero {
  padding-top: 8px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero .kicker {
  margin-top: 40px;
}

.hero .display {
  margin-top: -10px;
  font-size: clamp(52px, 10vw, 96px);
}

.tagline {
  --ow: 2.5px;
  margin-top: -8px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.1;
  text-shadow: 0 3px 0 var(--outline);
}

.hero .lead {
  margin-top: -4px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.btn-store {
  --ow: 1.5px;
  justify-content: flex-start;
  gap: 12px;
  min-width: 222px;
  min-height: 66px;
  padding: 10px 22px 14px 18px;
  text-align: left;
}

.btn-store svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: var(--label);
  stroke: var(--outline);
  stroke-width: 2.6px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  overflow: visible;
}

.store-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-soon {
  font-size: 12px;
  letter-spacing: 1.2px;
  -webkit-text-stroke-width: 2.5px;
}

.store-name {
  font-size: 23px;
  letter-spacing: 0.6px;
}

.btn-store:not([href]) {
  cursor: default;
}

.btn-store:not([href]):active {
  transform: none;
  box-shadow: inset 0 -4px 0 var(--edge);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 8px;
}

.pill {
  --tint: var(--tint-trophy);
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px 0 40px;
  margin-left: 18px;
  border: 2.5px solid var(--outline);
  border-radius: 10px;
  background: var(--tint);
  color: var(--label);
  font-size: 17px;
  letter-spacing: 0.4px;
}

.pill img {
  position: absolute;
  left: -20px;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3));
}

.pill-coin { --tint: var(--tint-coin); }
.pill-gem { --tint: var(--tint-gem); }
.pill-trophy { --tint: var(--tint-trophy); }

.hero-stage {
  position: relative;
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 8px;
}

.hero-banner {
  width: 100%;
}

.vs-badge {
  position: absolute;
  left: 50%;
  top: 46%;
  width: clamp(60px, 10vw, 104px);
  transform: translate(-50%, -50%);
}

.vs-badge img {
  width: 100%;
  filter: drop-shadow(0 4px 0 rgba(26, 26, 26, 0.25));
}

.section {
  padding: 72px 0;
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 620px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 26px;
}

.step-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
}

.step-num {
  --ow: 2px;
  position: absolute;
  top: -16px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid var(--outline);
  border-radius: 12px;
  background: linear-gradient(#3FB5FF 0 48%, #0094FF 48%);
  box-shadow: inset 0 -3px 0 #0069B8;
  font-size: 22px;
  line-height: 1;
}

.rule {
  display: grid;
  gap: 28px;
  margin-top: 26px;
  padding: 24px;
}

@media (min-width: 860px) {
  .rule {
    grid-template-columns: minmax(300px, 420px) 1fr;
    align-items: center;
    gap: 40px;
    padding: 32px;
  }
}

.kicker-dark {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.rule-text h3 {
  margin: 4px 0 18px;
  font-size: clamp(24px, 3vw, 30px);
}

.facts {
  display: grid;
  gap: 14px;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 2px solid var(--surface-edge);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.facts img {
  flex: none;
  width: 40px;
  height: 40px;
}

.x2 {
  color: #C86E00;
}

.rule-demo {
  --cycle: 10s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 20px 22px;
  border: 3px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--duel-panel);
}

.ticket {
  width: 100%;
  max-width: 340px;
  padding: 16px 16px 18px;
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--card-face);
  box-shadow: inset 0 -5px 0 var(--card-edge);
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ticket-dish {
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.ticket-stars {
  display: flex;
  gap: 2px;
}

.ticket-stars img {
  width: 40px;
  height: 40px;
  animation: var(--cycle) steps(1, end) infinite;
}

.ticket-stars .s3 { animation-name: star-3; }
.ticket-stars .s2 { animation-name: star-2; }
.ticket-stars .s1 { animation-name: star-1; }

@keyframes star-3 {
  0% { filter: none; }
  30%, 100% { filter: grayscale(1) brightness(0.45); }
}
@keyframes star-2 {
  0% { filter: none; }
  60%, 100% { filter: grayscale(1) brightness(0.45); }
}
@keyframes star-1 {
  0% { filter: none; }
  90%, 100% { filter: grayscale(1) brightness(0.45); }
}

.timer {
  position: relative;
  height: 20px;
  margin-top: 14px;
  border: 2.5px solid var(--outline);
  border-radius: 8px;
  background: var(--timer-track);
  overflow: hidden;
}

.timer-fill {
  position: absolute;
  inset: 0;
  background: var(--seg1);
  transform-origin: left center;
  animation:
    timer-drain var(--cycle) linear infinite,
    timer-color var(--cycle) steps(1, end) infinite;
}

@keyframes timer-drain {
  0% { transform: scaleX(1); }
  90%, 100% { transform: scaleX(0); }
}

@keyframes timer-color {
  0% { background: var(--seg1); }
  30% { background: var(--seg2); }
  60% { background: var(--seg3); }
}

.timer-notch {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  margin-left: -1px;
  background: var(--outline);
}

.ticket-caption {
  position: relative;
  height: 26px;
  margin-top: 12px;
  text-align: center;
  font-size: 22px;
  line-height: 26px;
}

.ticket-caption span {
  --ow: 2px;
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: var(--cycle) steps(1, end) infinite;
}

.ticket-caption .c3 { animation-name: cap-3; opacity: 1; }
.ticket-caption .c2 { animation-name: cap-2; }
.ticket-caption .c1 { animation-name: cap-1; }
.ticket-caption .c0 { animation-name: cap-0; color: #FF7A70; }

@keyframes cap-3 { 0% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes cap-2 { 0% { opacity: 0; } 30% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes cap-1 { 0% { opacity: 0; } 60% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes cap-0 { 0% { opacity: 0; } 90%, 100% { opacity: 1; } }

.lives {
  display: flex;
  gap: 6px;
}

.lives img {
  width: 40px;
  height: 40px;
}

.lives .life-lost {
  animation: life-lost var(--cycle) steps(1, end) infinite;
}

@keyframes life-lost {
  0% { filter: none; transform: none; }
  90% { filter: grayscale(1) brightness(0.45); transform: scale(0.85); }
  100% { filter: grayscale(1) brightness(0.45); transform: scale(0.85); }
}

.sabo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 620px) {
  .sabo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .sabo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .sabo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sabo {
  display: flex;
  gap: 14px;
  padding: 14px 14px 18px;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 -5px 0 var(--surface-edge);
  transition: transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.sabo:hover {
  transform: translateY(-3px) rotate(-0.6deg);
}

.sabo-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 0 48%, transparent 48%),
    var(--rar);
}

.sabo-icon > img {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25));
}

.sabo-icon .price {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: max-content;
  transform: translateX(-50%);
}

.sabo-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sabo h3 {
  font-size: 19px;
  line-height: 1.15;
  padding-top: 2px;
}

.sabo p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.35;
}

.price {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 9px 0 5px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  background: var(--tint-coin);
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
}

.price img {
  width: 20px;
  height: 20px;
}

.counter {
  margin-top: 22px;
}

.counter h3 {
  margin-bottom: 16px;
}

.counter-list {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .counter-list { grid-template-columns: repeat(3, 1fr); }
}

.counter-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid var(--surface-edge);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.counter-list img {
  flex: none;
  width: 48px;
  height: 48px;
}

.counter-list p {
  font-size: 15px;
}

.modes {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .modes { grid-template-columns: repeat(3, 1fr); }
}

.mode {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--outline);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 rgba(26, 26, 26, 0.25);
}

.mode-banner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1080 / 300;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 0 48%, transparent 48%),
    var(--band);
  border-bottom: 3px solid var(--outline);
  box-shadow: inset 0 -5px 0 var(--band-edge);
}

.mode-banner img {
  width: 100%;
}

.mode-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 24px;
}

.mode-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-head img {
  flex: none;
  width: 48px;
  height: 48px;
}

.mode h3 {
  font-size: 24px;
  line-height: 1.1;
}

.mode-tag {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.4px;
}

.mode p:not(.mode-tag) {
  color: var(--text-muted);
  font-size: 16px;
}

.mode strong {
  color: var(--text);
  font-weight: 400;
}

.worlds {
  position: relative;
  display: grid;
  gap: 16px;
}

@media (min-width: 620px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .worlds { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1120px) {
  .worlds {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }

  .dishes img {
    width: 34px;
    height: 34px;
  }

  .worlds::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 58px;
    height: 14px;
    border: 3px solid var(--outline);
    border-radius: 99px;
    background:
      linear-gradient(90deg, var(--gold) 0 83%, #8A8A8A 83% 100%);
    z-index: 0;
  }
}

.world {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 22px;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 -5px 0 var(--surface-edge);
}

.world-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 3px solid var(--outline);
  border-radius: 50%;
  background:
    linear-gradient(#FEE38A 0 48%, var(--gold) 48%);
  box-shadow: inset 0 -4px 0 #C99A1A;
}

.world-icon img {
  width: 70px;
  height: 70px;
}

.world h3 {
  font-size: 20px;
  line-height: 1.1;
  min-height: 2.2em;
  display: flex;
  align-items: center;
}

.trophies {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 12px 0 6px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  background: var(--tint-trophy);
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
}

.trophies img {
  width: 22px;
  height: 22px;
}

.dishes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}

.dishes img {
  width: 40px;
  height: 40px;
}

@media (max-width: 619px) {
  .world {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    grid-template-areas:
      "icon name trophies"
      "icon dishes dishes";
    align-items: center;
    gap: 6px 12px;
    padding: 14px 14px 18px;
    text-align: left;
  }

  .world-icon {
    grid-area: icon;
    width: 72px;
    height: 72px;
  }

  .world-icon img {
    width: 54px;
    height: 54px;
  }

  .world h3 {
    grid-area: name;
    min-height: 0;
    font-size: 19px;
  }

  .world .trophies { grid-area: trophies; }

  .world .dishes,
  .world .soon-text {
    grid-area: dishes;
    justify-content: flex-start;
    margin: 0;
  }

  .dishes img {
    width: 34px;
    height: 34px;
  }
}

.world-soon {
  background: var(--surface-raised);
  border-style: dashed;
}

.world-soon .world-icon {
  background:
    repeating-linear-gradient(-45deg, #F5C542 0 10px, #1A1A1A 10px 20px);
  box-shadow: none;
}

.world-soon .world-icon img {
  background: var(--surface);
  border-radius: 50%;
  padding: 6px;
}

.world-soon .trophies {
  background: #454545;
  color: var(--surface);
}

.soon-text {
  color: var(--text-muted);
  font-size: 15px;
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel .btn {
  display: none;
  flex: none;
}

@media (min-width: 760px) {
  .carousel .btn { display: inline-flex; }
}

.carousel .btn img {
  width: 26px;
  height: 26px;
}

.chefs {
  display: flex;
  gap: 14px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 4px;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 26, 26, 0.45) transparent;
  overscroll-behavior-x: contain;
}

.chefs:focus-visible {
  outline-offset: 0;
}

.chef {
  --rar: var(--r-common);
  --band: color-mix(in srgb, var(--rar) 75%, #000);
  flex: none;
  display: flex;
  flex-direction: column;
  width: 190px;
  scroll-snap-align: start;
  overflow: hidden;
  border: 3px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 5px 0 rgba(26, 26, 26, 0.25);
  transition: transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.chef:hover {
  transform: translateY(-4px);
}

.chef-art {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.45), transparent 62%),
    var(--rar);
}

.chef-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chef-rarity {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px 4px;
  border: 2px solid var(--outline);
  border-radius: 7px;
  background: var(--band);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.chef-name {
  --ow: 1.5px;
  padding: 8px 10px 9px;
  border-top: 3px solid var(--outline);
  background: var(--band);
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
}

.chef-tagline {
  flex: 1;
  padding: 10px 12px 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.chef[data-rarity="RAINBOW"] .chef-art,
.rarities .rainbow {
  background: linear-gradient(120deg, #FF5F6D, #FFC371, #FFF06B, #5CE38A, #4FC3F7, #A27BFF, #FF5F6D);
  background-size: 300% 100%;
  animation: rainbow 6s linear infinite;
}

@keyframes rainbow {
  to { background-position: 300% 0; }
}

.rarities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 30px;
}

.rarities li {
  padding: 5px 12px 6px;
  border: 2.5px solid var(--outline);
  border-radius: 9px;
  background: var(--rar);
  color: var(--label);
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  -webkit-text-stroke: 3px var(--outline);
  paint-order: stroke fill;
}

.duo {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .duo { grid-template-columns: 1fr 1fr; }
}

.loot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loot-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 6px;
}

.loot-icons img {
  width: 58px;
  height: 58px;
  transition: transform 0.2s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.loot-icons img:hover {
  transform: translateY(-4px) rotate(-6deg) scale(1.08);
}

.social-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 620px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .social-grid { grid-template-columns: repeat(4, 1fr); }
}

.social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
}

.crests,
.emotes {
  display: flex;
  height: 68px;
  align-items: center;
  margin-bottom: 4px;
}

.crests img {
  width: 58px;
  height: 58px;
  margin-right: -10px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
}

.crests img:nth-child(odd) { transform: rotate(-6deg); }
.crests img:nth-child(even) { transform: rotate(6deg) translateY(4px); }

.emotes {
  gap: 2px;
}

.emotes img {
  width: 46px;
  height: 46px;
  animation: bob 2.6s ease-in-out infinite;
}

.emotes img:nth-child(2) { animation-delay: -0.6s; }
.emotes img:nth-child(3) { animation-delay: -1.2s; }
.emotes img:nth-child(4) { animation-delay: -1.8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-6deg); }
}

.final-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 36px;
  text-align: center;
  overflow: hidden;
}

.final-card p {
  max-width: 520px;
  font-size: 18px;
}

.final-chefs {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: calc(100% + 48px);
  margin: 0 -24px 0;
  padding-top: 20px;
  background: linear-gradient(var(--red), #C9223C);
  border-bottom: 3px solid var(--outline);
}

.final-chefs img {
  width: clamp(110px, 22vw, 180px);
  margin: 0 -14px;
}

.final-chefs img:nth-child(2) {
  position: relative;
  z-index: 1;
  width: clamp(130px, 26vw, 210px);
}

.final-card .title {
  margin-top: 6px;
  color: var(--text);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.footer {
  padding: 28px 0 40px;
  border-top: 3px solid rgba(26, 26, 26, 0.25);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer p {
  color: var(--label);
  text-shadow: 0 2px 0 rgba(26, 26, 26, 0.35);
}

.footer p a {
  text-underline-offset: 3px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.pop {
  animation: pop-in 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.7) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .backdrop,
  .vs-badge,
  .emotes img,
  .pop,
  .rarities .rainbow,
  .chef-art,
  .rule-demo *,
  .lives img {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .sabo,
  .chef,
  .loot-icons img {
    transition: none;
  }
}
