/* ==========================================================================
   THE DAILY PUSH — CLASSIC LEAGUE OF LEGENDS CLIENT & KRILLION.IO AESTHETIC
   ========================================================================== */

:root {
  --hex-bg: #010A13;
  --hex-obsidian: rgba(4, 13, 25, 0.95);
  --hex-obsidian-solid: rgba(3, 10, 20, 0.97);
  --hex-gold: #C8AA6E;
  --hex-gold-bright: #F0E6D2;
  --hex-gold-rich: #C89B3C;
  --hex-gold-dark: #785A28;
  --hex-cyan: #0AC8B9;
  --hex-cyan-bright: #67E8F9;
  --hex-crimson: #E11D48;
  --hex-amber: #F59E0B;
  --hex-muted: #CBD5E1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--hex-bg);
  color: var(--hex-gold-bright);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Full-Viewport 3D Summoner's Rift World Canvas */
#rift-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Classic Carved Metallic League of Legends Serif Typography */
.font-classic {
  font-family: 'Cinzel', Georgia, serif;
}

.hex-title-metallic {
  font-family: 'Cinzel', Georgia, serif;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0E6D2 36%, #C89B3C 74%, #785A28 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 24px rgba(200, 155, 60, 0.35));
}

/* ==========================================================================
   CLASSIC RIOT GAMES CHISELED GOLD & OBSIDIAN FRAMES
   ========================================================================== */
.hex-glass-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 22, 40, 0.95) 0%, rgba(3, 11, 22, 0.97) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #C89B3C;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(1, 10, 19, 0.95),
    inset 0 1px 0 rgba(240, 230, 210, 0.28),
    inset 0 0 18px rgba(200, 155, 60, 0.08);
}

.hex-glass-panel-strong {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 155, 60, 0.12) 0%, transparent 62%),
    linear-gradient(180deg, rgba(9, 24, 44, 0.97) 0%, rgba(2, 9, 19, 0.98) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 2px solid #C89B3C;
  outline: 1px solid rgba(240, 230, 210, 0.22);
  outline-offset: -5px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.96),
    0 0 0 2px #010A13,
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 32px rgba(200, 155, 60, 0.12);
}

/* Ornate Corner Diamond Rivets on Classic League Frames */
.classic-corner-studs {
  position: relative;
}
.classic-corner-studs::before,
.classic-corner-studs::after {
  content: '◆';
  position: absolute;
  top: 6px;
  font-size: 9px;
  line-height: 1;
  color: #C89B3C;
  text-shadow: 0 0 6px rgba(200, 155, 60, 0.8);
  pointer-events: none;
}
.classic-corner-studs::before { left: 8px; }
.classic-corner-studs::after  { right: 8px; }

/* Classic League Gold Portrait Frame (Used for Champion & Item Squares) */
.champ-portrait-frame {
  position: relative;
  border: 2.5px solid #C89B3C;
  box-shadow:
    0 0 0 2px #010A13,
    0 8px 22px rgba(0, 0, 0, 0.9),
    inset 0 0 10px rgba(0, 0, 0, 0.85);
  background: #010A13;
}

/* ==========================================================================
   ICONIC CLASSIC RIOT CLIENT "PLAY" & "LOCK IN" BEVELED BUTTONS
   ========================================================================== */
/* Classic Season 2-4 Red/Orange Ruby Beveled "PLAY" Button with Chiseled Gold Trim */
.league-play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 2.6rem;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  color: #FFFBEB;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
  background: linear-gradient(180deg, #F97316 0%, #DC2626 48%, #991B1B 100%);
  border: 2px solid #F0E6D2;
  box-shadow:
    0 0 0 2px #785A28,
    0 12px 28px rgba(0, 0, 0, 0.92),
    0 0 24px rgba(220, 38, 38, 0.55),
    inset 0 2px 1px rgba(255, 255, 255, 0.45);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.league-play-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(180deg, #FB923C 0%, #EF4444 48%, #B91C1C 100%);
  border-color: #FFFFFF;
  box-shadow:
    0 0 0 2px #C89B3C,
    0 16px 36px rgba(0, 0, 0, 0.96),
    0 0 34px rgba(249, 115, 22, 0.78),
    inset 0 2px 2px rgba(255, 255, 255, 0.6);
}

.league-play-btn:active {
  transform: translateY(0) scale(0.99);
}

/* Classic Champion Select Golden/Amber "LOCK IN" Button */
.league-lockin-btn {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #010A13;
  background: linear-gradient(180deg, #FEF08A 0%, #F59E0B 52%, #B45309 100%);
  border: 1.5px solid #FFFBEB;
  box-shadow:
    0 0 0 1px #785A28,
    0 4px 14px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(245, 158, 11, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.18s ease;
}

.league-lockin-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: scale(1.02);
  box-shadow:
    0 0 0 1.5px #F0E6D2,
    0 6px 18px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(250, 204, 21, 0.75);
}

.hex-secondary-btn {
  font-family: 'Cinzel', Georgia, serif;
  background: linear-gradient(180deg, rgba(12, 28, 50, 0.96) 0%, rgba(4, 12, 24, 0.98) 100%);
  border: 1.5px solid #C89B3C;
  color: #F0E6D2;
  transition: all 0.2s ease;
}

.hex-secondary-btn:hover:not(:disabled) {
  border-color: #67E8F9;
  color: #FFFFFF;
  background: rgba(12, 34, 62, 0.98);
  box-shadow: 0 0 16px rgba(10, 200, 185, 0.35);
}

/* ==========================================================================
   RARITY TIER BADGES (HIGH-CONTRAST HEXTECH & RUNETERRA COLORS)
   ========================================================================== */
.tier-badge-nexus {
  background: linear-gradient(135deg, #042f2e 0%, #083344 100%);
  color: #67E8F9;
  border: 1.5px solid #0AC8B9;
  box-shadow: 0 0 20px rgba(10, 200, 185, 0.5);
}
.tier-badge-elder {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  color: #FDE047;
  border: 1.5px solid #F59E0B;
}
.tier-badge-baron {
  background: linear-gradient(135deg, #2e1065 0%, #581c87 100%);
  color: #F3E8FF;
  border: 1.5px solid #C084FC;
}
.tier-badge-herald {
  background: #0c4a6e;
  color: #BAE6FD;
  border: 1.5px solid #38BDF8;
}
.tier-badge-scuttler {
  background: #064e3b;
  color: #A7F3D0;
  border: 1.5px solid #10B981;
}
.tier-badge-minion {
  background: #1e293b;
  color: #F1F5F9;
  border: 1.5px solid #94A3B8;
}
.tier-badge-miss {
  background: #4c0519;
  color: #FECDD3;
  border: 1.5px solid #F43F5E;
}

/* ==========================================================================
   KRILLION.IO PLAYFUL ANIMATIONS (SHAKE, SPRING REVEAL, DANGER PULSE)
   ========================================================================== */
@keyframes pulseDanger {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}
.timer-danger {
  animation: pulseDanger 0.55s infinite ease-in-out;
}

@keyframes krillionShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-0.8deg); }
  40% { transform: translateX(8px) rotate(0.8deg); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.shake-invalid {
  animation: krillionShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes krillionSpringPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 28px) scale(0.88);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
.krillion-pop-card {
  animation: krillionSpringPop 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* A contained game viewport: only the results page scrolls. */
body.playing { overflow: hidden; height: 100dvh; }
body.playing #view-arena { height: 100dvh !important; min-height: 0 !important; overflow: hidden; }
body.playing #arena-roast-card { position: fixed !important; max-height: 45dvh; overflow: auto; }
#hud-depth-rail button { pointer-events: none; cursor: default; }
.hex-glass-panel, .hex-glass-panel-strong {
  background: linear-gradient(135deg, rgba(45,42,30,.97), rgba(13,22,20,.98) 60%);
  border-color: #978052;
  border-radius: 3px !important;
  backdrop-filter: none;
}
.league-lockin-btn { background: linear-gradient(#9f864d, #65502b); color: #f4e7bc; border-color: #c2a56a; box-shadow: inset 0 1px #e0cb97, 0 2px 5px #000; }
#arena-prompt-text { font-family: 'Spectral', Georgia, serif; text-transform: none; letter-spacing: 0; font-size: clamp(18px, 2vw, 24px); }
#arena-input { border-color: #8c805d; background: #101b19; }
#arena-timer-bar { background: linear-gradient(90deg, #608d76, #c1ac6b); }
@media (max-width: 640px) {
  #hud-depth-rail { display: none !important; }
  body.playing #arena-roast-card { top: 38dvh !important; width: 94vw; max-height: 49dvh; }
  #arena-console-card { max-height: 65dvh; overflow: auto; }
}
@media (max-width: 640px) {
  #hud-bottom-bar > div { flex-direction: column; gap: 6px; padding: 8px; }
  #hud-bottom-bar > div > div:first-child { white-space: nowrap; }
  #footer-wave-pills { justify-content: center; width: 100%; }
}

/* Keep attention on the prompt, journey and result. */
#hud-depth-rail, #arena-pool-badge { display: none !important; }
#arena-roast-card { top: 38dvh !important; max-height: 54dvh !important; }
#roast-splash-bg { opacity: .16 !important; }
.hex-glass-panel-strong { box-shadow: 0 8px 28px #0008; outline: none; }
.classic-corner-studs::before, .classic-corner-studs::after { display: none; }
.hex-title-metallic { filter: drop-shadow(0 2px 4px #000); }
.league-play-btn { background: linear-gradient(#71603d, #3d3424); border: 1px solid #b29b69; box-shadow: inset 0 1px #d7c28a55, 0 3px 9px #0006; border-radius: 3px; }
.league-play-btn:hover { background: linear-gradient(#857249, #51432b); box-shadow: 0 4px 12px #0008; transform: translateY(-1px); }
#arena-timer-text { font-size: 15px; }
#arena-console-card { padding: 20px; }
#arena-input { padding-right: 112px; }
#flight-hud-status { font-size: 11px; letter-spacing: .02em; }

/* Keep the existing arena readable and reachable on narrow touch screens. */
#view-landing, #view-results { min-height: 100svh; }
#view-landing h1 { font-size: clamp(2.2rem, 11vw, 4.5rem); }
#fan-notice { text-wrap: balance; }
button { touch-action: manipulation; }
button:focus-visible, input:focus-visible {
  outline: 2px solid #67e8f9 !important;
  outline-offset: 3px;
}
#arena-input { font-size: 16px; }
.skip-wave-btn { min-height: 44px; padding: 8px 4px; }
#arena-feedback { min-width: 0; overflow-wrap: anywhere; }
#share-grid-box { overflow-wrap: anywhere; }
#end-questions-grid summary { list-style: none; cursor: pointer; }
#end-questions-grid summary::-webkit-details-marker { display: none; }
#end-questions-grid details:not([open]) summary { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
#end-questions-grid details[open] .answer-toggle-closed,
#end-questions-grid details:not([open]) .answer-toggle-open { display: none; }
#hud-bottom-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
body.playing #arena-roast-card {
  top: 25dvh !important;
  max-height: calc(75dvh - 105px) !important;
  overscroll-behavior: contain;
}

@media (max-width: 640px) {
  #site-header { gap: 4px; padding: 8px; }
  #site-header > button { min-width: 0; max-width: 45vw; padding: 6px; gap: 5px; min-height: 40px; }
  #site-header > button img { width: 21px; height: 21px; }
  #site-header > button > div { min-width: 0; }
  #site-header > button > div > span:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; letter-spacing: .04em; }
  #site-header > div { gap: 4px; flex-shrink: 0; }
  #site-header > div > div { min-height: 40px; padding: 4px 5px; }
  #site-header > div > button { min-width: 40px; min-height: 40px; padding: 5px 4px; font-size: 10px; letter-spacing: 0; text-align: center; }
  #site-header > div > button .mobile-control-label { display: none; }
  #site-header > div > button span:first-child { font-size: 16px; line-height: 1; }
  #view-landing { padding-top: 72px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  #view-landing .max-w-2xl { min-width: 0; }
  #arena-console-card { max-height: calc(100dvh - 165px); overflow-y: auto; }
  #arena-form { margin-top: 14px; }
  #arena-input { padding-right: 112px; }
  #arena-form button[type="submit"] { min-height: 44px; }
  body.playing #arena-roast-card {
    top: 22dvh !important;
    width: calc(100vw - 20px);
    max-height: calc(78dvh - 105px) !important;
  }
  #arena-roast-card > div > div:last-child { padding-left: 14px; padding-right: 14px; }
  #modal-tiers { padding: 10px; }
  #modal-tiers > div { max-height: calc(100dvh - 20px); padding: 20px 15px; }
  #view-results { padding-left: 10px; padding-right: 10px; }
  #view-results .grid-cols-3 > div { min-width: 0; padding: 8px 4px; }
  #view-results .grid-cols-3 > div > div:first-child { font-size: 9px; line-height: 1.2; }
  #view-results .grid-cols-3 > div > div:last-child { font-size: clamp(12px, 3.7vw, 18px); }
}

#modal-tiers button.absolute {
  z-index: 2;
  top: 8px;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  background: rgba(3, 10, 20, .9);
  border: 1px solid #978052;
  border-radius: 3px;
}
#tiers-title { padding-right: 48px; }

@media (max-width: 360px) {
  #site-header > button { max-width: 45vw; }
  #site-header > button > div > span:first-child { font-size: 9px; }
  #site-header > div > button:last-child { padding-inline: 4px; }
  #arena-console-card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Winion branding and the locked future mode. */
.brand-tagline { font-size: clamp(15px, 3vw, 21px); }
.unlimited-locked { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 15px; border: 1px solid #746a50; color: #b9ad94; background: #111b19e8; font-family: 'Cinzel', Georgia, serif; font-size: 12px; cursor: not-allowed; opacity: .8; }
.unlimited-soon { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 10px; color: #94a3a3; }

/* Arrival occupies the lower part of the screen so the minion stays visible. */
body.playing #arena-roast-card { top: 49dvh !important; max-height: calc(51dvh - 104px) !important; padding-top: 30px; }
#arena-roast-card .arrival-card-content > div:first-child { height: 64px; }
#arena-roast-card .arrival-card-content > div:last-child { margin-top: -30px; padding-bottom: 14px; }
#roast-tier-icon { width: 52px; height: 52px; }
#roast-answer-name { font-size: clamp(20px, 2.5vw, 27px); }
#roast-region-reached { display: inline-block !important; font-size: 9px; }
.nexus-reason { margin-top: 8px; color: #cbd5e1; font: 12px/1.5 'Plus Jakarta Sans', sans-serif; }
.nexus-reason strong { color: #67e8f9; }
.map-view-toggle { display: block; width: 100%; min-height: 30px; background: #0b1c1bee; border: 1px solid #978052; color: #f0e6d2; font: 11px 'JetBrains Mono', monospace; cursor: pointer; }
#arena-roast-card .map-view-toggle { position: absolute; top: 0; left: 0; }
body.playing #arena-roast-card.map-expanded { top: auto !important; bottom: 104px; padding-top: 30px; overflow: visible; }
#arena-roast-card.map-expanded .arrival-card-content { display: none; }
@media (min-width: 1100px) {
  body.playing #arena-roast-card { left: auto; right: 22px; transform: none; width: 380px; top: 20dvh !important; max-height: calc(80dvh - 105px) !important; }
  #arena-roast-card.krillion-pop-card { animation: none; }
  body.playing #arena-roast-card.map-expanded { top: auto !important; }
}
@media (max-width: 640px) {
  #site-header .brand-subtitle { display: block; font-size: 7px; letter-spacing: .02em; white-space: nowrap; }
  body.playing #arena-roast-card { top: 48dvh !important; max-height: calc(52dvh - 107px) !important; }
  #arena-roast-card .arrival-card-content > div:last-child { padding-inline: 12px; }
  #btn-next-wave { min-height: 44px; }
}
