:root {
  --ui-ink: #05070a;
  --ui-panel: rgba(9, 13, 18, 0.96);
  --ui-panel-soft: rgba(14, 19, 25, 0.92);
  --ui-line: rgba(196, 159, 68, 0.34);
  --ui-line-bright: #d7a91d;
  --ui-gold: #ffd84a;
  --ui-gold-deep: #d89b12;
  --ui-purple: #a34fff;
  --ui-purple-soft: rgba(163, 79, 255, 0.18);
  --ui-cyan: #38d8ff;
  --ui-green: #44e09b;
  --ui-white: #e3e7eb;
  --ui-muted: #929aa6;
  --ui-danger: #ff625f;
  --ui-cut: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --ui-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

body {
  background: var(--ui-ink);
  color: var(--ui-white);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ui-cyan);
  outline-offset: 3px;
}

.screen:not(#hud):not(#launch) {
  background:
    linear-gradient(90deg, rgba(4, 6, 9, 0.98), rgba(6, 7, 11, 0.88)),
    url('../assets/launch/matt-mine-hero.png') center / cover fixed;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--ui-gold-deep) #07090c;
}

.screen:not(#hud):not(#launch)::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 12%, rgba(145, 47, 255, 0.15), transparent 34%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: auto, 100% 4px;
  z-index: 0;
}

.screen > .panel,
.screen > .menu-card {
  position: relative;
  z-index: 1;
}

.panel {
  border: 1px solid var(--ui-line);
  background: linear-gradient(145deg, rgba(14, 18, 23, 0.98), rgba(6, 9, 13, 0.98));
  box-shadow: var(--ui-shadow), inset 0 1px rgba(255, 255, 255, 0.04);
}

.wide-panel {
  width: min(1500px, calc(100vw - 42px));
  max-height: none;
  margin: 22px auto;
}

#leaderboards,
#mine-pass,
#daily-arena,
#pass-cosmetics,
#upgrade-shop,
#nugget-shop,
#miner-profile,
#daily-mine,
#pass-mine {
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  color: var(--ui-purple);
  letter-spacing: 0.14em;
}

.primary-button,
.secondary-button,
.gold-button,
.buy-button,
.text-button,
.profile-tabs button,
.profile-rail-card button,
.section-heading-row button {
  min-height: 46px;
  border-radius: 0;
  clip-path: var(--ui-cut);
  letter-spacing: 0.055em;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease, background 140ms ease;
}

.primary-button,
.gold-button {
  color: #17120a;
  border: 1px solid #ffe073;
  background: linear-gradient(180deg, #ffdf5a, #dfa00e);
  box-shadow: inset 0 1px #fff3a5, 0 0 25px rgba(247, 196, 48, 0.13);
}

.secondary-button,
.text-button,
.profile-rail-card button,
.section-heading-row button {
  color: var(--ui-white);
  border: 1px solid #3b4551;
  background: linear-gradient(180deg, #151a20, #090c10);
}

button:not(:disabled):hover {
  filter: brightness(1.13);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.close-button {
  z-index: 12;
  width: 46px;
  height: 46px;
  border: 1px solid #3d4651;
  border-radius: 0;
  clip-path: var(--ui-cut);
  color: var(--ui-white);
  background: rgba(7, 10, 14, 0.94);
}

.preview-note,
.panel-copy,
.panel p,
.panel small {
  color: var(--ui-muted);
}

/* Global website navigation and home store access */
.launch-nav {
  border-bottom-color: rgba(196, 159, 68, 0.22);
  background: rgba(3, 5, 8, 0.96);
  backdrop-filter: blur(18px);
}

.launch-links button {
  color: #b5bbc3;
  letter-spacing: 0.08em;
}

.launch-links button:hover {
  color: var(--ui-gold);
}

.launch-nugget-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(247, 196, 48, 0.65);
  clip-path: var(--ui-cut);
  color: var(--ui-gold);
  background: rgba(21, 16, 4, 0.78);
  letter-spacing: 0.04em;
}

.launch-nugget-button span {
  font-size: 1.1rem;
  text-shadow: 0 0 14px rgba(247, 196, 48, 0.7);
}

.launch-store-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(247, 196, 48, 0.48);
  clip-path: var(--ui-cut);
  color: var(--ui-gold);
  background: linear-gradient(90deg, rgba(63, 42, 4, 0.7), rgba(11, 13, 16, 0.95));
  text-align: left;
}

.launch-store-shortcut span {
  display: grid;
  gap: 2px;
}

.launch-store-shortcut small {
  color: #a8adb5;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.launch-store-shortcut strong {
  white-space: nowrap;
}

.launch-hero-content h1,
.profile-dashboard-heading h2,
.mine-briefing-hero h2,
.economy-panel > h2,
.wide-panel > h2 {
  text-transform: uppercase;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.75);
}

/* Mine select */
#menu {
  padding: 20px;
}

.economy-menu-card {
  width: min(1540px, calc(100vw - 40px));
  margin: auto;
  border: 1px solid var(--ui-line);
  background: linear-gradient(145deg, rgba(12, 16, 21, 0.98), rgba(5, 8, 11, 0.98));
  box-shadow: var(--ui-shadow);
  clip-path: var(--ui-cut);
}

.lobby-topbar {
  border-bottom: 1px solid rgba(196, 159, 68, 0.22);
}

.compact-brand h1 span,
.matchmaking-day strong,
.menu-stats strong {
  color: var(--ui-gold);
}

.run-mode-card {
  border-radius: 0;
  clip-path: var(--ui-cut);
  background: linear-gradient(150deg, rgba(20, 25, 31, 0.96), rgba(7, 10, 14, 0.98));
  border-color: #34404b;
}

.run-mode-card:hover,
.run-mode-card.ready {
  border-color: var(--ui-gold);
  box-shadow: 0 0 30px rgba(247, 196, 48, 0.1);
}

.paid-run-card {
  border-color: rgba(163, 79, 255, 0.55);
  background: linear-gradient(145deg, rgba(41, 20, 61, 0.76), rgba(8, 10, 15, 0.98));
}

.arena-run-card {
  border-color: rgba(56, 216, 255, 0.45);
}

.menu-nav-grid .secondary-button,
#nugget-shop-button {
  min-height: 48px;
}

.wallet-chip,
.home-chip {
  border-radius: 0;
  clip-path: var(--ui-cut);
}

/* Shared Daily and Pass Mine briefing screens */
.mine-briefing-screen {
  padding: 18px;
  align-items: flex-start;
}

.mine-briefing-panel {
  padding: 0;
  overflow: hidden;
}

.mine-briefing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  min-height: 250px;
  padding: 42px 48px;
  overflow: hidden;
  border-bottom: 1px solid var(--ui-line);
  background:
    linear-gradient(90deg, #070a0e 0%, rgba(7, 10, 14, 0.93) 42%, rgba(7, 10, 14, 0.12) 75%),
    url('../assets/launch/matt-mine-hero.png') right 34% / cover;
}

.mine-briefing-hero > div:first-child {
  position: relative;
  z-index: 2;
  align-self: center;
}

.mine-briefing-hero h2 {
  margin: 6px 0 8px;
  color: var(--ui-gold);
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  line-height: 0.84;
}

.pass-briefing-hero h2 {
  color: var(--ui-white);
}

.pass-briefing-hero h2::first-letter {
  color: var(--ui-purple);
}

.mine-briefing-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 12px 0 18px;
  color: #cbd0d6;
  font-size: 1.08rem;
}

.dashboard-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(56, 216, 255, 0.55);
  clip-path: var(--ui-cut);
  color: var(--ui-cyan);
  background: rgba(5, 31, 39, 0.7);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dashboard-live-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.pass-live-pill {
  color: #c47cff;
  border-color: rgba(163, 79, 255, 0.62);
  background: rgba(45, 16, 68, 0.68);
}

.mine-briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  gap: 16px;
  padding: 18px;
}

.mine-route-card,
.mine-entry-card,
.profile-section-card,
.profile-rail-card {
  border: 1px solid rgba(196, 159, 68, 0.28);
  background: linear-gradient(150deg, rgba(16, 21, 27, 0.96), rgba(6, 9, 13, 0.98));
  clip-path: var(--ui-cut);
}

.mine-route-card,
.mine-entry-card {
  padding: 18px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading-row h3 {
  margin: 0;
  color: var(--ui-white);
  letter-spacing: 0.045em;
}

.section-heading-row > span {
  color: var(--ui-cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.route-legend {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
  color: #aab1ba;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.mine-entry-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mine-entry-card > h3 {
  margin: 2px 0 4px;
  font-size: 1.5rem;
}

.dashboard-metrics {
  display: grid;
  gap: 8px;
}

.dashboard-metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-metrics.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metrics > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #303a45;
  background: rgba(8, 11, 15, 0.88);
}

.dashboard-metrics span,
.profile-rail-card > span {
  display: block;
  margin-bottom: 5px;
  color: #929ba6;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.dashboard-metrics strong {
  display: block;
  overflow: hidden;
  color: var(--ui-cyan);
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metrics > div:first-child strong {
  color: var(--ui-gold);
}

.mine-rule-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mine-rule-list li {
  padding: 9px 10px 9px 34px;
  border: 1px solid #2b343e;
  color: #c7ccd2;
  background: #090c10;
  font-size: 0.82rem;
  position: relative;
}

.mine-rule-list li::before {
  content: '✓';
  position: absolute;
  left: 11px;
  color: var(--ui-cyan);
}

.mine-entry-card .text-button {
  border-color: transparent;
  background: transparent;
  color: #9aa2ac;
}

.pass-route-card,
.pass-entry-card {
  border-color: rgba(163, 79, 255, 0.42);
}

.pass-route-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(163, 79, 255, 0.24);
  background: radial-gradient(circle at center, rgba(116, 40, 175, 0.2), #080b0f 70%);
}

.pass-route-flow span {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #d5c3e8;
  font-size: 0.7rem;
  font-weight: 900;
}

.pass-route-flow b {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--ui-purple);
  clip-path: var(--ui-cut);
  color: #e2bdff;
  background: rgba(50, 18, 74, 0.85);
  box-shadow: 0 0 20px rgba(163, 79, 255, 0.28);
  font-size: 1.3rem;
}

.pass-route-flow i {
  flex: 1;
  height: 2px;
  margin: 0 5px;
  background: linear-gradient(90deg, var(--ui-purple), var(--ui-gold));
}

.pass-route-scene {
  min-height: 240px;
  margin-top: 12px;
  border: 1px solid rgba(163, 79, 255, 0.2);
  background:
    linear-gradient(0deg, rgba(7, 9, 13, 0.12), rgba(7, 9, 13, 0.7)),
    url('../assets/launch/matt-mine-hero.png') center 45% / cover;
}

.pass-xp-banner {
  padding: 10px;
  color: var(--ui-gold);
  border: 1px solid rgba(247, 196, 48, 0.3);
  background: rgba(58, 40, 4, 0.5);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.cyan-button {
  color: var(--ui-cyan);
  border-color: rgba(56, 216, 255, 0.55);
}

/* Miner Profile live dashboard */
.profile-dashboard-shell {
  padding: 22px;
}

.profile-dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 132px;
  padding: 12px 16px 20px;
  border-bottom: 1px solid rgba(196, 159, 68, 0.24);
  background:
    linear-gradient(90deg, rgba(7, 10, 14, 0.98), rgba(7, 10, 14, 0.45)),
    url('../assets/launch/matt-mine-hero.png') right 41% / 62% auto no-repeat;
}

.profile-dashboard-heading h2 {
  margin: 2px 0 4px;
  color: var(--ui-gold);
  font-size: clamp(2.7rem, 5vw, 5.3rem);
  line-height: 0.9;
}

.profile-dashboard-heading p {
  margin: 0;
}

.profile-dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 290px;
  gap: 14px;
  padding-top: 15px;
}

.profile-identity-card,
.profile-dashboard-main,
.profile-dashboard-rail {
  min-width: 0;
}

.profile-identity-card {
  padding: 12px;
  border: 1px solid var(--ui-line);
  background: linear-gradient(180deg, rgba(19, 22, 27, 0.98), rgba(6, 9, 12, 0.98));
  clip-path: var(--ui-cut);
}

.profile-identity-card .profile-avatar-shell {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  border: 1px solid rgba(247, 196, 48, 0.6);
  border-radius: 0;
  clip-path: var(--ui-cut);
  background:
    radial-gradient(circle at 50% 25%, rgba(163, 79, 255, 0.25), transparent 54%),
    #080b0f;
}

.profile-avatar-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-shell span {
  color: var(--ui-gold);
  font-size: 6rem;
}

.profile-fields {
  display: grid;
  gap: 8px;
}

.profile-fields input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #3a4550;
  color: var(--ui-white);
  background: #080b0f;
}

.profile-fields small {
  line-height: 1.45;
}

.profile-upload-button {
  min-height: 42px;
  padding: 11px;
  border: 1px solid #3b4651;
  clip-path: var(--ui-cut);
  color: #d3d7dc;
  background: #0d1116;
  text-align: center;
  cursor: pointer;
}

.profile-identity-badges {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.profile-identity-badges span {
  padding: 9px;
  border: 1px solid rgba(56, 216, 255, 0.45);
  color: var(--ui-cyan);
  background: rgba(4, 27, 34, 0.6);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
}

.profile-identity-badges span:last-child {
  border-color: rgba(163, 79, 255, 0.52);
  color: #c983ff;
  background: rgba(38, 14, 56, 0.68);
}

.profile-actions {
  display: grid;
  gap: 8px;
}

.profile-back-button {
  width: 100%;
  margin-top: 16px;
}

.profile-dashboard-main {
  border: 1px solid var(--ui-line);
  background: rgba(7, 10, 14, 0.96);
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(196, 159, 68, 0.22);
}

.profile-tabs button {
  min-height: 54px;
  padding: 8px;
  border: 0;
  border-right: 1px solid #242c34;
  clip-path: none;
  color: #9ba3ad;
  background: #0a0d11;
  font-size: 0.7rem;
}

.profile-tabs button.active {
  color: var(--ui-gold);
  box-shadow: inset 0 -3px var(--ui-gold);
  background: linear-gradient(180deg, rgba(53, 39, 7, 0.5), #0a0d11);
}

.profile-tab-panel {
  display: none;
  padding: 13px;
}

.profile-tab-panel.active {
  display: grid;
  gap: 12px;
}

.profile-section-card {
  padding: 14px;
}

.profile-section-card p {
  margin-top: 0;
}

.profile-upgrade-summary,
.profile-upgrade-grid {
  display: grid;
  gap: 7px;
}

.profile-upgrade-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #2c3540;
  background: #090c10;
}

.profile-upgrade-row strong {
  font-size: 0.82rem;
}

.profile-upgrade-row span {
  color: #b9c0c8;
  font-size: 0.74rem;
}

.profile-upgrade-bar {
  height: 7px;
  overflow: hidden;
  background: #1c2229;
}

.profile-upgrade-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ui-purple), var(--ui-gold));
}

.compact-history-wrap {
  max-height: 210px;
}

.profile-history-table td,
.profile-history-table th {
  padding: 9px 10px;
}

.profile-dashboard-rail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.profile-rail-card {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.profile-rail-card > strong {
  color: var(--ui-purple);
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}

.profile-rail-card > small {
  color: #b3bac2;
  font-weight: 700;
}

.profile-rail-card button {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
}

.pass-rail-card {
  border-color: rgba(163, 79, 255, 0.5);
  background: linear-gradient(145deg, rgba(47, 19, 68, 0.82), rgba(8, 10, 14, 0.98));
}

.loadout-rail-card {
  min-height: 170px;
  background:
    linear-gradient(90deg, rgba(7, 10, 14, 0.95), rgba(7, 10, 14, 0.58)),
    url('../assets/launch/matt-mine-hero.png') 55% 45% / cover;
}

.loadout-rail-card > strong {
  color: var(--ui-gold);
}

.nugget-rail-card {
  border-color: rgba(247, 196, 48, 0.55);
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 196, 48, 0.14), transparent 55%),
    #0a0c0f;
}

.nugget-rail-card > strong {
  color: var(--ui-gold);
  font-size: 2.2rem;
}

.nugget-rail-card button {
  color: #17120a;
  border-color: #ffe073;
  background: linear-gradient(180deg, #ffdf5a, #dfa00e);
}

.profile-loadout-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-loadout-summary span {
  padding: 10px 12px;
  border: 1px solid #2c3540;
  color: #cfd4da;
  background: #090c10;
}

.miner-profile-panel.setup-required .profile-dashboard-main,
.miner-profile-panel.setup-required .profile-dashboard-rail,
.miner-profile-panel.setup-required .profile-back-button,
.miner-profile-panel.setup-required .profile-identity-badges {
  display: none;
}

.miner-profile-panel.setup-required .profile-dashboard-layout {
  grid-template-columns: minmax(300px, 560px);
  justify-content: center;
}

.miner-profile-panel.setup-required .profile-identity-card {
  padding: 20px;
}

.miner-profile-panel.setup-required .profile-avatar-shell {
  max-width: 280px;
  margin-inline: auto;
}

/* Existing economy, leaderboard, Arena, Pass, shops and popups share the same system */
#mine-pass .economy-panel,
#daily-arena .arena-panel,
#leaderboards .economy-panel,
#pass-cosmetics .cosmetics-panel,
#upgrade-shop .wide-panel,
#nugget-shop .nugget-shop-panel,
#sound-settings .audio-settings-panel,
#run-end .panel,
#level-up .panel,
#depth-choice .panel {
  padding: 28px;
  clip-path: var(--ui-cut);
}

.pass-offer,
.pass-benefits,
.pass-progress-card,
.paid-run-purchase-card,
.arena-pool-grid article,
.arena-entry-card,
.arena-clock-card,
.reward-claim-card,
.shop-card,
.nugget-package-card,
.practice-claim-card {
  border-radius: 0;
  clip-path: var(--ui-cut);
  border-color: rgba(196, 159, 68, 0.3);
  background: linear-gradient(145deg, rgba(18, 23, 29, 0.96), rgba(7, 10, 14, 0.98));
}

.pass-offer,
.pass-progress-card,
.cosmetics-panel {
  border-color: rgba(163, 79, 255, 0.42);
}

.leaderboard-tabs {
  border-bottom: 1px solid rgba(196, 159, 68, 0.26);
}

.leaderboard-tab {
  border-radius: 0;
  clip-path: var(--ui-cut);
}

.leaderboard-tab.active {
  color: var(--ui-gold);
  border-color: var(--ui-gold);
  background: rgba(65, 43, 4, 0.45);
}

.arena-leaderboard-tab {
  display: none;
}

.leaderboard-table-wrap {
  border-color: #2c3540;
  background: #070a0d;
}

.leaderboard-table thead {
  color: var(--ui-cyan);
  background: #0c1117;
}

.leaderboard-table tr.player-row {
  background: rgba(247, 196, 48, 0.09);
}

.arena-state-badge,
.pass-state-label {
  border-radius: 0;
  clip-path: var(--ui-cut);
}

.nugget-package-grid {
  gap: 14px;
}

.nugget-package-card button {
  min-height: 44px;
  border-radius: 0;
  clip-path: var(--ui-cut);
}

dialog.walletconnect-mobile-dialog,
dialog#arena-eligibility-dialog {
  color: var(--ui-white);
  border: 1px solid var(--ui-line);
  background: rgba(4, 6, 9, 0.84);
  backdrop-filter: blur(16px);
}

.walletconnect-mobile-card,
.arena-eligibility-card {
  border: 1px solid rgba(163, 79, 255, 0.48);
  border-radius: 0;
  clip-path: var(--ui-cut);
  background: linear-gradient(145deg, #16101f, #090c10);
  box-shadow: var(--ui-shadow);
}

.toast {
  border-radius: 0;
  clip-path: var(--ui-cut);
  border: 1px solid rgba(56, 216, 255, 0.45);
  background: rgba(7, 11, 15, 0.96);
}

/* Production competition hub and its dynamically mounted detail popup */
.competition-hub-heading {
  padding: 6px 2px 14px;
  border-bottom: 1px solid rgba(196, 159, 68, 0.2);
}

.competition-hub-heading span,
.mine-detail header span {
  color: var(--ui-gold);
}

.competition-slot-grid {
  gap: 12px;
  padding-top: 2px;
}

.competition-slot-card {
  min-height: 218px;
  border-radius: 0;
  clip-path: var(--ui-cut);
  border-color: color-mix(in srgb, var(--slot-color) 64%, #303541);
  background-color: #090c11;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.3);
}

.competition-slot-card::before {
  background:
    linear-gradient(90deg, rgba(4, 6, 9, 0.98) 0%, rgba(5, 7, 11, 0.86) 48%, rgba(5, 7, 11, 0.3) 100%),
    linear-gradient(0deg, rgba(4, 6, 9, 0.94), transparent 64%);
}

.competition-slot-card .slot-state,
.competition-slot-card .slot-meta {
  letter-spacing: 0.12em;
}

.competition-slot-card .slot-meta {
  border-radius: 0;
  clip-path: var(--ui-cut);
}

.mine-detail {
  background: rgba(2, 4, 7, 0.9);
  backdrop-filter: blur(18px);
}

.mine-detail-shell {
  width: min(1320px, 96vw);
  border-color: rgba(196, 159, 68, 0.36);
  border-radius: 0;
  clip-path: var(--ui-cut);
  background:
    radial-gradient(circle at 85% 10%, rgba(163, 79, 255, 0.12), transparent 38%),
    linear-gradient(145deg, #11161d, #06090d);
  box-shadow: var(--ui-shadow);
}

.mine-detail-shell > [data-mine-close] {
  width: 44px;
  height: 44px;
  border-color: #46515d;
  border-radius: 0;
  clip-path: var(--ui-cut);
  background: rgba(8, 11, 15, 0.95);
}

.mine-detail header > b {
  border-radius: 0;
  clip-path: var(--ui-cut);
  background: color-mix(in srgb, var(--slot-color) 10%, #090c10);
}

.mine-detail-map,
.mine-detail-board {
  border-radius: 0;
  clip-path: var(--ui-cut);
  border-color: #303a45;
  background: #070a0e;
}

.mine-depth-tabs button,
.mine-detail-map span {
  border-radius: 0;
  clip-path: var(--ui-cut);
}

.mine-detail-board > button {
  border-radius: 0;
  clip-path: var(--ui-cut);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35);
}

@media (max-width: 1180px) {
  .launch-nugget-button {
    display: none;
  }

  .profile-dashboard-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .profile-dashboard-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mine-briefing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wide-panel,
  .economy-menu-card {
    width: min(100%, calc(100vw - 18px));
    margin: 9px auto;
  }

  #menu,
  .mine-briefing-screen {
    padding: 8px;
  }

  .launch-nav {
    padding-inline: 10px;
  }

  .launch-links {
    display: none;
  }

  .launch-store-shortcut {
    padding: 11px;
  }

  .mine-briefing-hero {
    grid-template-columns: 1fr;
    min-height: 235px;
    padding: 30px 24px;
    background-position: 60% center;
  }

  .mine-briefing-hero h2 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .mine-briefing-grid {
    padding: 9px;
  }

  .pass-route-flow {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .pass-route-flow span {
    min-width: 68px;
  }

  .route-legend {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-dashboard-shell {
    padding: 10px;
  }

  .profile-dashboard-heading {
    min-height: 118px;
    padding: 18px 12px;
  }

  .profile-dashboard-heading h2 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .profile-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .profile-identity-card .profile-avatar-shell {
    max-width: 230px;
    margin-inline: auto;
  }

  .profile-dashboard-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    display: flex;
    overflow-x: auto;
  }

  .profile-tabs button {
    flex: 0 0 auto;
    min-width: 130px;
  }

  .dashboard-metrics.four,
  .dashboard-metrics.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-upgrade-row {
    grid-template-columns: 1fr auto;
  }

  .profile-upgrade-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  #mine-pass .economy-panel,
  #daily-arena .arena-panel,
  #leaderboards .economy-panel,
  #pass-cosmetics .cosmetics-panel,
  #upgrade-shop .wide-panel,
  #nugget-shop .nugget-shop-panel,
  #sound-settings .audio-settings-panel,
  #run-end .panel,
  #level-up .panel,
  #depth-choice .panel {
    padding: 18px 12px;
  }
}

@media (max-width: 520px) {
  .dashboard-metrics.four,
  .dashboard-metrics.three {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-dashboard-heading .dashboard-live-pill {
    display: none;
  }

  .mine-entry-card,
  .mine-route-card {
    padding: 12px;
  }
}

/* 2026 complete player experience — one visual language across every page */
:root {
  --ui-display: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
  --ui-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-red: #ef4938;
  --ui-page-width: 1500px;
}

body {
  font-family: var(--ui-body);
}

h1,
h2,
h3,
.site-nav,
.launch-mine-card strong,
.launch-mine-card b,
.leaderboard-tab,
.dashboard-metrics strong {
  font-family: var(--ui-display);
  font-stretch: condensed;
  -webkit-text-stroke: 0.45px rgba(0, 0, 0, 0.92);
  paint-order: stroke fill;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.92);
}

.site-nav {
  position: absolute;
  z-index: 45;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid rgba(247, 196, 48, 0.22);
  background: rgba(2, 4, 6, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.launch-active .site-nav,
#app.gameplay-active .site-nav {
  display: none;
}

.site-nav button {
  cursor: pointer;
}

.site-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  color: var(--ui-gold);
  background: none;
  font-size: 1.65rem;
}

.site-brand > span {
  font-family: var(--ui-body);
  font-size: 2.35rem;
  filter: drop-shadow(0 0 14px rgba(247, 196, 48, 0.35));
}

.site-brand b {
  color: #f5f5f3;
}

.site-nav nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(18px, 3vw, 52px);
}

.site-nav nav button {
  position: relative;
  padding: 0 3px;
  border: 0;
  color: #aeb1b5;
  background: transparent;
  font-size: 1.08rem;
  letter-spacing: 0.055em;
}

.site-nav nav button::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 2px;
  background: var(--ui-gold);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.site-nav nav button:hover,
.site-nav nav button.active {
  color: var(--ui-gold);
}

.site-nav nav button.active::after {
  transform: scaleX(1);
}

.site-account-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 230px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #d6a900;
  clip-path: var(--ui-cut);
  color: var(--ui-gold);
  background: rgba(13, 13, 10, 0.92);
  font-size: 1rem;
  letter-spacing: 0.055em;
}

.site-account-button.active {
  color: #10110f;
  background: linear-gradient(180deg, #ffdb4d, #d89a0b);
}

.screen:not(#hud):not(#launch) {
  padding-top: max(96px, calc(78px + env(safe-area-inset-top)));
}

/* Landing page: approved hero plus functional mine and store deck */
.launch-hero {
  min-height: min(640px, 72dvh);
  padding-top: 112px;
  padding-bottom: 58px;
}

.launch-hero-content {
  width: min(690px, 52vw);
}

.launch-hero-content h1 {
  font-family: var(--ui-display);
  font-size: clamp(5.8rem, 9vw, 9.6rem);
  line-height: 0.72;
  letter-spacing: -0.025em;
}

.launch-hero-content h1 span {
  color: var(--ui-gold);
  background: linear-gradient(180deg, #fff0a0, #e3ad1e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.launch-daily-summary-card,
.launch-scroll-cue {
  display: none;
}

.launch-mine-select {
  position: relative;
  z-index: 2;
  padding: 26px clamp(24px, 3vw, 52px) 42px;
  border-top: 1px solid rgba(247, 196, 48, 0.18);
  background:
    linear-gradient(180deg, rgba(4, 6, 8, 0.94), #050609 88%),
    url('../assets/launch/matt-mine-hero.png') center 70% / cover;
}

.launch-mine-select-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  max-width: var(--ui-page-width);
  margin: 0 auto 18px;
}

.launch-mine-select-heading span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 196, 48, 0.62));
}

.launch-mine-select-heading span:last-child {
  transform: scaleX(-1);
}

.launch-mine-select-heading h2 {
  margin: 0;
  color: #e1e5e8;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.03em;
}

.launch-mine-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, var(--ui-page-width));
  margin: auto;
}

.launch-mine-card {
  position: relative;
  display: grid;
  grid-template-rows: 88px auto auto 54px auto;
  gap: 8px;
  min-height: 350px;
  padding: 22px 22px 17px;
  overflow: hidden;
  border: 1px solid rgba(247, 196, 48, 0.58);
  clip-path: var(--ui-cut);
  color: #dfe3e6;
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 196, 48, 0.18), transparent 31%),
    linear-gradient(150deg, rgba(18, 20, 22, 0.98), rgba(5, 7, 9, 0.99));
  text-align: center;
}

.launch-mine-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.04) 48%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 350ms ease;
}

.launch-mine-card:hover::after {
  transform: translateX(100%);
}

.launch-mine-card > i {
  align-self: center;
  color: var(--ui-gold);
  font-family: var(--ui-display);
  font-size: 4.8rem;
  font-style: normal;
  line-height: 1;
  text-shadow: 0 0 22px rgba(247, 196, 48, 0.35);
}

.launch-mine-card > strong {
  font-size: 1.85rem;
  letter-spacing: 0.025em;
}

.launch-mine-card > small {
  color: #d4d5d6;
  font-size: 1rem;
}

.launch-mine-card > b {
  display: grid;
  place-items: center;
  border: 1px solid #ffe06c;
  clip-path: var(--ui-cut);
  color: #17120a;
  background: linear-gradient(180deg, #ffdc4e, #d99806);
  font-size: 1.2rem;
  letter-spacing: 0.045em;
}

.launch-mine-card > em {
  color: var(--ui-cyan);
  font-family: var(--ui-display);
  font-size: 0.92rem;
  font-style: normal;
  letter-spacing: 0.045em;
}

.launch-mine-card.pass {
  border-color: rgba(163, 79, 255, 0.8);
  background: radial-gradient(circle at 50% 18%, rgba(163, 79, 255, 0.27), transparent 34%), linear-gradient(150deg, #17111d, #07070a);
}

.launch-mine-card.pass > i,
.launch-mine-card.pass > em {
  color: #b768ff;
}

.launch-mine-card.arena {
  border-color: rgba(239, 73, 56, 0.75);
  background: radial-gradient(circle at 50% 18%, rgba(239, 73, 56, 0.21), transparent 34%), linear-gradient(150deg, #1b1010, #070708);
}

.launch-mine-card.arena > i {
  color: var(--ui-red);
}

.launch-mine-card.practice {
  border-color: #52575e;
}

.launch-mine-card.practice > i {
  color: #b8bec5;
}

.launch-home-store {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--ui-page-width));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 0 26px;
  border: 1px solid rgba(56, 216, 255, 0.58);
  clip-path: var(--ui-cut);
  color: var(--ui-cyan);
  background: linear-gradient(90deg, rgba(6, 28, 36, 0.92), rgba(8, 9, 12, 0.98));
  text-align: left;
}

.launch-home-store span {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 14px;
}

.launch-home-store i {
  grid-row: 1 / 3;
  font-size: 1.6rem;
}

.launch-home-store small {
  color: #9fa8af;
}

/* Dedicated How to Play page */
.experience-screen {
  align-items: flex-start;
  overflow-y: auto;
}

.experience-page {
  position: relative;
  z-index: 2;
  width: min(var(--ui-page-width), calc(100vw - 48px));
  margin: 18px auto 36px;
}

.experience-hero {
  min-height: 188px;
  display: flex;
  align-items: center;
  padding: 26px clamp(28px, 8vw, 140px);
  border: 1px solid var(--ui-line);
  clip-path: var(--ui-cut);
  background:
    linear-gradient(90deg, rgba(3, 5, 7, 0.98) 0 39%, transparent 78%),
    url('../assets/launch/matt-mine-hero.png') right 44% / cover;
}

.experience-hero h1 {
  margin: 0;
  color: #f4f4f2;
  font-size: clamp(4rem, 7vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.experience-hero h1 span {
  color: var(--ui-gold);
}

.experience-hero p:last-child {
  max-width: 640px;
  margin: 12px 0 0;
  color: #c8cbd0;
  font-size: 1.05rem;
}

.how-to-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.how-to-steps article {
  position: relative;
  min-height: 280px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid #67531e;
  clip-path: var(--ui-cut);
  background: radial-gradient(circle at 70% 90%, rgba(247, 196, 48, 0.12), transparent 35%), linear-gradient(150deg, #111418, #07090c);
}

.how-to-steps article.cyan {
  border-color: #0797b5;
}

.how-to-steps article.purple {
  border-color: #7845a7;
}

.how-to-steps article > b {
  float: left;
  margin-right: 24px;
  color: var(--ui-gold);
  font-family: var(--ui-display);
  font-size: 4.5rem;
  line-height: 0.86;
}

.how-to-steps article.cyan > b {
  color: var(--ui-cyan);
}

.how-to-steps article.purple > b {
  color: var(--ui-purple);
}

.how-to-steps h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.how-to-steps p {
  margin: 0;
  color: #d8dade;
  line-height: 1.55;
}

.how-to-steps article > span {
  position: absolute;
  right: 28px;
  bottom: 16px;
  left: 28px;
  color: var(--ui-gold);
  font-family: var(--ui-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: 0.13em;
  text-align: center;
  opacity: 0.86;
}

.how-to-steps article.cyan > span {
  color: var(--ui-cyan);
}

.how-to-steps article.purple > span {
  color: var(--ui-purple);
}

.how-to-bottom {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.run-glance-card,
.goal-card {
  padding: 24px 30px;
  border: 1px solid var(--ui-line);
  clip-path: var(--ui-cut);
  background: rgba(8, 11, 14, 0.97);
}

.run-glance-card h2,
.goal-card h2 {
  margin: 0 0 20px;
  font-size: 1.9rem;
}

.run-glance-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.run-glance-flow span {
  display: grid;
  gap: 10px;
  color: var(--ui-gold);
  text-align: center;
}

.run-glance-flow i {
  display: grid;
  place-items: center;
  width: clamp(68px, 7vw, 108px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  clip-path: var(--ui-cut);
  background: rgba(247, 196, 48, 0.08);
  font-size: 2.5rem;
  font-style: normal;
}

.run-glance-flow em {
  color: var(--ui-gold);
  font-size: 2.5rem;
  font-style: normal;
}

.goal-card > span {
  color: var(--ui-gold);
  font-size: 2.2rem;
}

.goal-card p {
  color: #d2d4d7;
  font-size: 1.05rem;
}

.goal-card button {
  margin-top: 24px;
}

/* Pass, leaderboard, Daily, Arena, profile and store pages */
.pass-page-hero,
.leaderboard-page-hero {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -30px -30px 18px;
  padding: 34px 48px;
  border-bottom: 1px solid var(--ui-line);
  background:
    linear-gradient(90deg, rgba(4, 6, 8, 0.99), rgba(4, 6, 8, 0.55) 60%, rgba(4, 6, 8, 0.1)),
    url('../assets/launch/matt-mine-hero.png') right 52% / cover;
}

.pass-page-hero h2,
.leaderboard-page-hero h2 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6.5rem);
  line-height: 0.9;
}

.pass-page-hero h2 span,
.leaderboard-page-hero h2 span {
  color: var(--ui-gold);
}

.pass-page-hero > div > p:last-child {
  margin: 10px 0 0;
  color: #d5d7da;
  font-family: var(--ui-display);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.pass-page-hero > i {
  display: grid;
  place-items: center;
  width: 160px;
  aspect-ratio: 1.35;
  border: 2px solid #9f55e8;
  clip-path: var(--ui-cut);
  color: #d28cff;
  background: rgba(47, 18, 69, 0.78);
  box-shadow: 0 0 40px rgba(163, 79, 255, 0.3), inset 0 0 30px rgba(163, 79, 255, 0.25);
  font-family: var(--ui-display);
  font-size: 5rem;
  font-style: normal;
}

.pass-feature-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.pass-feature-rail span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--ui-line);
  clip-path: var(--ui-cut);
  color: var(--ui-purple);
  background: #0a0c0f;
  font-family: var(--ui-display);
  font-size: 2rem;
}

.pass-feature-rail b {
  color: #d8dade;
  font-size: 1.1rem;
  letter-spacing: 0.035em;
}

.leaderboard-page-hero {
  min-height: 180px;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  min-height: 260px;
}

.podium-place {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 215px;
  padding: 28px 18px 20px;
  border: 1px solid rgba(163, 79, 255, 0.55);
  clip-path: var(--ui-cut);
  background: radial-gradient(circle at 50% 28%, rgba(163, 79, 255, 0.18), transparent 34%), #090b0e;
  text-align: center;
}

.podium-place.place-1 {
  min-height: 258px;
  border-color: var(--ui-gold);
  background: radial-gradient(circle at 50% 25%, rgba(247, 196, 48, 0.22), transparent 36%), #0c0b08;
}

.podium-place.place-3 {
  border-color: rgba(239, 73, 56, 0.62);
  background: radial-gradient(circle at 50% 28%, rgba(239, 73, 56, 0.16), transparent 34%), #0c0909;
}

.podium-place > b {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--ui-gold);
  font-family: var(--ui-display);
  font-size: 1.45rem;
}

.podium-place .miner-identity {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.podium-place .miner-avatar,
.podium-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  clip-path: var(--ui-cut);
  color: var(--ui-purple);
  background: rgba(163, 79, 255, 0.12);
  font-family: var(--ui-display);
  font-size: 2.5rem;
  object-fit: cover;
}

.podium-place.place-1 .miner-avatar,
.podium-place.place-1 .podium-avatar {
  width: 98px;
  height: 98px;
  color: var(--ui-gold);
}

.podium-place > small {
  margin-top: 12px;
  color: #f4f4f2;
  font-family: var(--ui-display);
  font-size: 1.35rem;
}

#daily-mine .mine-briefing-hero h2::after {
  content: " TODAY'S FREE RANKED RUN";
  display: block;
  margin-top: 16px;
  color: var(--ui-cyan);
  font-size: 0.28em;
  letter-spacing: 0.06em;
}

.daily-briefing-panel .mine-entry-card {
  border-color: rgba(56, 216, 255, 0.48);
}

.daily-briefing-panel .mine-rule-list li::before {
  color: var(--ui-cyan);
}

.arena-panel {
  border-color: rgba(239, 73, 56, 0.48);
}

.arena-heading h2 {
  color: var(--ui-gold);
  font-size: clamp(3.6rem, 6vw, 6rem);
}

.arena-entry-card {
  border-color: rgba(239, 73, 56, 0.52);
}

.arena-total-card strong,
.arena-countdown,
#arena-countdown {
  color: var(--ui-cyan);
}

.profile-dashboard-shell,
.economy-panel,
.nugget-shop-panel,
#upgrade-shop .wide-panel,
.cosmetics-panel,
.audio-settings-panel,
.results-panel-v4,
#level-up .wide-panel,
#depth-choice .choice-panel {
  clip-path: var(--ui-cut);
}

.mine-detail {
  z-index: 40;
  align-items: start;
  padding: 96px 24px 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 82% 14%, rgba(120, 52, 193, 0.17), transparent 34%),
    #030507;
}

.mine-detail-shell {
  width: min(var(--ui-page-width), calc(100vw - 48px));
  max-height: calc(100dvh - 120px);
  margin: 0 auto;
  overflow-y: auto;
}

.profile-dashboard-heading {
  background:
    linear-gradient(90deg, rgba(6, 9, 12, 0.98), rgba(6, 9, 12, 0.38)),
    url('../assets/launch/matt-mine-hero.png') right 46% / cover;
}

.profile-identity-card {
  border-color: rgba(247, 196, 48, 0.52);
}

.nugget-shop-panel > h2,
#upgrade-shop .wide-panel > h2,
.cosmetics-panel > h2 {
  color: var(--ui-gold);
  font-size: clamp(3rem, 5vw, 5.5rem);
}

.nugget-package-card,
.shop-card,
.cosmetic-card {
  clip-path: var(--ui-cut);
}

.walletconnect-mobile-card,
.arena-eligibility-dialog form,
.choice-panel {
  border: 1px solid rgba(247, 196, 48, 0.55);
  clip-path: var(--ui-cut);
  background: linear-gradient(145deg, #11151a, #06080b);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

@media (max-width: 1100px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav nav {
    justify-content: center;
    gap: 18px;
  }

  .site-nav nav button {
    font-size: 0.88rem;
  }

  .site-account-button {
    min-width: 170px;
  }

  .launch-mine-card-grid,
  .pass-feature-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how-to-steps,
  .how-to-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 12px;
  }

  .site-brand {
    font-size: 1.12rem;
  }

  .site-brand > span {
    font-size: 1.7rem;
  }

  .site-nav nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    min-height: 42px;
    justify-content: space-around;
    gap: 4px;
    border-bottom: 1px solid rgba(247, 196, 48, 0.18);
    background: rgba(3, 5, 7, 0.97);
  }

  .site-nav nav button {
    padding: 0 4px;
    font-size: 0.68rem;
  }

  .site-nav nav button::after {
    bottom: 3px;
  }

  .site-account-button {
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .screen:not(#hud):not(#launch) {
    padding-top: max(122px, calc(106px + env(safe-area-inset-top)));
  }

  .mine-detail {
    padding: 118px 12px 12px;
  }

  .mine-detail-shell {
    width: 100%;
    max-height: calc(100dvh - 130px);
  }

  .launch-hero {
    min-height: 640px;
    align-items: flex-end;
    padding: 118px 22px 42px;
  }

  .launch-hero-shade {
    background: linear-gradient(0deg, #050609 0%, rgba(5, 6, 9, 0.74) 56%, rgba(5, 6, 9, 0.3) 100%);
  }

  .launch-hero-content {
    width: 100%;
  }

  .launch-hero-content h1 {
    font-size: clamp(5rem, 25vw, 8rem);
  }

  .launch-mine-card-grid,
  .pass-feature-rail {
    grid-template-columns: 1fr;
  }

  .launch-mine-card {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto 52px auto;
    min-height: 235px;
    text-align: left;
  }

  .launch-mine-card > i {
    grid-row: 1 / 3;
    font-size: 3.2rem;
    text-align: center;
  }

  .launch-mine-card > b,
  .launch-mine-card > em {
    grid-column: 1 / -1;
    text-align: center;
  }

  .launch-home-store {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .experience-page {
    width: calc(100vw - 24px);
    margin-top: 8px;
  }

  .experience-hero {
    min-height: 220px;
    padding: 24px;
  }

  .experience-hero h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .how-to-steps article {
    min-height: 240px;
  }

  .run-glance-flow {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .run-glance-flow span,
  .run-glance-flow em {
    flex: 0 0 auto;
  }

  .pass-page-hero,
  .leaderboard-page-hero {
    margin: -18px -12px 14px;
    padding: 24px 18px;
  }

  .pass-page-hero > i {
    width: 88px;
    font-size: 3rem;
  }

  .leaderboard-podium {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .podium-place,
  .podium-place.place-1 {
    min-height: 180px;
  }

  .podium-place.place-1 {
    order: -1;
  }
}

/* Exact desktop composition from the approved 1536 x 1024 player-page boards. */
@media (min-width: 1000px) and (min-height: 700px) {
  :root {
    --ui-page-width: 1480px;
    --reference-header: 80px;
  }

  .site-nav,
  .launch-nav {
    height: var(--reference-header);
    min-height: var(--reference-header);
    padding: 0 28px;
    border-bottom-color: rgba(247, 196, 48, 0.22);
    background: #020304;
  }

  .site-nav {
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav nav,
  .launch-links {
    gap: 68px;
  }

  .site-nav nav button,
  .launch-links button {
    font-family: var(--ui-display);
    font-size: 1.18rem;
    letter-spacing: 0.05em;
  }

  .site-nav nav button[data-site-action='store'] {
    display: none;
  }

  .site-brand,
  .launch-brand {
    gap: 10px;
    color: var(--ui-gold);
    font-family: var(--ui-display);
    font-size: 2rem;
    letter-spacing: 0.025em;
  }

  .site-brand > span,
  .launch-brand-mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: var(--ui-gold);
    background: transparent;
    box-shadow: none;
    font-size: 3rem;
    line-height: 1;
    transform: rotate(-10deg);
  }

  .site-brand strong,
  .launch-brand > span:last-child {
    flex-direction: row;
    align-items: baseline;
    gap: 7px;
    line-height: 0.9;
    white-space: nowrap;
  }

  .site-brand b,
  .launch-brand b {
    color: var(--ui-gold);
  }

  .launch-brand small {
    display: none;
  }

  .site-account-button,
  .launch-wallet-button {
    min-width: 264px;
    min-height: 52px;
    border-color: #d7aa00;
    clip-path: var(--ui-cut);
    color: var(--ui-gold);
    background: #07090b;
    font-family: var(--ui-display);
    font-size: 1.12rem;
    letter-spacing: 0.06em;
  }

  .launch-nugget-button,
  .launch-enter-button {
    display: none;
  }

  .launch-nav-actions {
    justify-self: end;
  }

  .launch-hero {
    min-height: 576px;
    height: 576px;
    align-items: flex-start;
    padding: 113px 50px 24px;
    border-bottom: 0;
  }

  .launch-hero-art {
    background-image: url('../assets/ui/matt-mine-hero-reference.png');
    background-position: center;
    background-size: cover;
    filter: none;
    transform: none;
  }

  .launch-hero-shade {
    background: linear-gradient(90deg, #020304 0%, rgba(2, 3, 4, 0.98) 25%, rgba(2, 3, 4, 0.62) 45%, rgba(2, 3, 4, 0.08) 66%, transparent 100%);
  }

  .launch-hero-content {
    width: 650px;
    max-width: 650px;
    padding-top: 0;
  }

  .launch-live-pill {
    min-height: 38px;
    margin: 0 0 12px;
    padding: 0 16px;
    border-color: rgba(28, 213, 255, 0.7);
    clip-path: var(--ui-cut);
    color: var(--ui-cyan);
    font-size: 0.82rem;
  }

  .launch-kicker,
  .launch-chain-note {
    display: none;
  }

  .launch-hero-content h1 {
    margin: 10px 0 0;
    font-size: 7.25rem;
    line-height: 0.82;
    letter-spacing: -0.02em;
    text-shadow: 0 7px 24px rgba(0, 0, 0, 0.8);
  }

  .launch-hero-content h1 > span {
    display: block;
    white-space: nowrap;
  }

  .launch-hero-content h1 > small {
    display: block;
    margin-top: 10px;
    color: #f0f0ed;
    font-family: var(--ui-display);
    font-size: 0.49em;
    line-height: 1;
    letter-spacing: 0.015em;
    -webkit-text-fill-color: #f0f0ed;
  }

  .launch-hero-copy {
    width: 590px;
    max-width: 590px;
    margin: 18px 0 17px;
    color: #e0e1e2;
    font-size: 1.32rem;
    line-height: 1.35;
  }

  .launch-hero-actions {
    display: grid;
    grid-template-columns: 338px 300px;
    gap: 18px;
    max-width: none;
  }

  .launch-primary-cta,
  .launch-secondary-cta {
    width: auto;
    min-height: 78px;
    padding: 0 28px;
    clip-path: var(--ui-cut);
    font-family: var(--ui-display);
    text-align: left;
  }

  .launch-primary-cta span,
  .launch-secondary-cta span {
    font-size: 1.55rem;
    letter-spacing: 0.04em;
  }

  .launch-mine-select {
    min-height: 448px;
    padding: 0 48px 36px;
    border-top: 0;
    background: linear-gradient(180deg, #040608 0%, #020304 100%);
  }

  .launch-mine-select-heading {
    position: relative;
    top: -17px;
    margin-bottom: -3px;
  }

  .launch-mine-select-heading h2 {
    padding: 0 24px;
    background: #040608;
    font-size: 2.9rem;
    text-shadow: 0 4px 18px #000;
  }

  .launch-mine-card-grid {
    gap: 22px;
  }

  .launch-mine-card {
    grid-template-rows: 126px auto auto 62px auto;
    gap: 8px;
    min-height: 374px;
    padding: 16px 23px 18px;
    border-width: 1px;
    background: radial-gradient(circle at 50% 25%, rgba(247, 196, 48, 0.13), transparent 39%), #090b0e;
  }

  .launch-mine-card > i {
    width: 150px;
    height: 126px;
    justify-self: center;
    color: transparent !important;
    background-image: url('../assets/ui/mine-selector-emblems.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 400% auto;
    filter: saturate(1.2) contrast(1.08) drop-shadow(0 0 18px rgba(247, 196, 48, 0.28));
    font-size: 0;
    text-shadow: none;
  }

  .launch-mine-card.daily > i { background-position: left center; }
  .launch-mine-card.pass > i { background-position: 33.333% center; }
  .launch-mine-card.arena > i { background-position: 66.667% center; }
  .launch-mine-card.practice > i { background-position: right center; filter: grayscale(0.15) contrast(1.1); }

  .launch-mine-card > strong {
    font-size: 2rem;
  }

  .launch-mine-card > small {
    font-size: 1rem;
  }

  .launch-mine-card > b {
    min-height: 60px;
    border-width: 2px;
    font-size: 1.36rem;
  }

  .launch-mine-card > em {
    font-size: 0.95rem;
  }

  .launch-home-store {
    margin-top: 24px;
  }

  .screen:not(#hud):not(#launch) {
    padding: var(--reference-header) 0 0;
    background: #040608;
  }

  .screen:not(#hud):not(#launch)::before {
    background: radial-gradient(circle at 88% 10%, rgba(108, 37, 196, 0.12), transparent 35%);
  }

  .screen:not(#hud):not(#launch) > .panel,
  .experience-page {
    width: calc(100vw - 48px);
    max-width: 1488px;
    margin: 20px auto 30px;
  }

  .screen:not(#hud):not(#launch) > .panel {
    padding: 20px;
    border-color: rgba(210, 165, 38, 0.3);
    border-radius: 0;
    clip-path: none;
    background: #07090b;
  }

  #mine-pass > .panel > .close-button,
  #leaderboards > .panel > .close-button {
    display: none;
  }

  .experience-page {
    margin-top: 20px;
  }

  .experience-hero {
    min-height: 190px;
    padding: 22px 136px;
    background:
      linear-gradient(90deg, rgba(3, 4, 5, 0.96) 0 39%, rgba(3, 4, 5, 0.2) 72%),
      url('../assets/ui/matt-mine-hero-reference.png') center / cover;
  }

  .experience-hero h1 {
    font-size: 5.8rem;
    line-height: 0.88;
  }

  .experience-hero .eyebrow {
    display: none;
  }

  .experience-hero h1 span {
    color: var(--ui-gold);
  }

  .experience-hero p:last-child {
    font-family: var(--ui-display);
    font-size: 2rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }

  .how-to-steps {
    gap: 16px;
    margin-top: 18px;
  }

  .how-to-steps article {
    min-height: 330px;
    padding: 26px 34px;
    background-color: #07090b;
    background-image: linear-gradient(180deg, #090b0e 0 31%, rgba(9, 11, 14, 0.84) 48%, rgba(9, 11, 14, 0.04) 72%), url('../assets/ui/how-to-panels.png');
    background-repeat: no-repeat;
    background-size: 300% auto;
    background-position: left bottom;
  }

  .how-to-steps article.cyan { background-position: center bottom; }
  .how-to-steps article.purple { background-position: right bottom; }

  .how-to-steps article > b {
    font-size: 5.2rem;
  }

  .how-to-steps h2 {
    font-size: 2rem;
  }

  .how-to-steps p {
    font-size: 1.12rem;
  }

  .how-to-steps article > span {
    display: none;
  }

  .how-to-bottom {
    grid-template-columns: 1.7fr 1fr;
  }

  .run-glance-card,
  .goal-card {
    min-height: 285px;
  }

  .pass-page-hero,
  .leaderboard-page-hero {
    margin: 0 0 20px;
    min-height: 266px;
    padding: 28px 68px;
    border: 1px solid rgba(210, 165, 38, 0.7);
    clip-path: var(--ui-cut);
    background:
      linear-gradient(90deg, rgba(4, 5, 7, 0.98) 0 32%, rgba(4, 5, 7, 0.12) 72%),
      url('../assets/ui/matt-mine-hero-reference.png') center / cover;
  }

  .pass-page-hero h2,
  .leaderboard-page-hero h2 {
    font-size: 5.2rem;
  }

  .pass-page-hero .eyebrow {
    color: #b966ff;
    font-size: 1.55rem;
  }

  .pass-page-hero > i {
    width: 210px;
    height: 180px;
    margin-right: 180px;
    border: 4px solid #9a4bea;
    color: #d28bff;
    background-color: #08070a;
    background-image: url('../assets/ui/mine-selector-emblems.png');
    background-repeat: no-repeat;
    background-position: 33.333% center;
    background-size: 400% auto;
    font-size: 0;
    box-shadow: inset 0 0 0 10px rgba(186, 95, 255, 0.12), 0 0 40px rgba(157, 64, 255, 0.28);
  }

  #mine-pass > .economy-panel {
    position: relative;
    min-height: 880px;
  }

  #mine-pass .pass-page-hero {
    margin-right: 356px;
  }

  #mine-pass .pass-page-hero h2 {
    color: var(--ui-gold);
  }

  #mine-pass .pass-page-hero h2 span {
    color: #efefed;
  }

  #mine-pass > .economy-panel {
    padding-top: 0;
  }

  #mine-pass .pass-hero-grid {
    position: absolute;
    top: 0;
    right: 20px;
    display: block;
    width: 336px;
    height: 266px;
    margin: 0;
  }

  #mine-pass .pass-offer {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-color: #d5a317;
    text-align: center;
  }

  #mine-pass .pass-offer .pass-state-label {
    color: #ff594a;
    font-family: var(--ui-display);
    font-size: 1.25rem;
  }

  #mine-pass .pass-offer > strong {
    font-family: var(--ui-display);
    font-size: 4.8rem;
    line-height: 1;
  }

  #mine-pass .pass-offer > small,
  #mine-pass .pass-offer > p,
  #mine-pass .pass-benefits {
    display: none;
  }

  #mine-pass .pass-offer button {
    width: 100%;
    min-height: 62px;
    margin-top: 12px;
    font-family: var(--ui-display);
    font-size: 1.3rem;
  }

  .pass-feature-rail {
    min-height: 138px;
    margin: 0 0 20px;
    gap: 14px;
  }

  .pass-feature-rail span {
    font-size: 2.8rem;
  }

  .pass-feature-rail span {
    font-size: 0;
  }

  .pass-feature-rail span::before {
    content: '';
    width: 88px;
    height: 82px;
    flex: 0 0 88px;
    background-image: url('../assets/ui/mine-selector-emblems.png');
    background-repeat: no-repeat;
    background-position: 33.333% center;
    background-size: 400% auto;
  }

  .pass-feature-rail span:nth-child(2)::before { background-position: 66.667% center; }
  .pass-feature-rail span:nth-child(3)::before {
    content: '2×';
    display: grid;
    place-items: center;
    color: var(--ui-cyan);
    background: none;
    font-family: var(--ui-display);
    font-size: 3.2rem;
  }
  .pass-feature-rail span:nth-child(4)::before {
    background-image: url('../assets/ui/pass-rewards.png');
    background-position: 100% center;
    background-size: 800% auto;
  }

  .pass-feature-rail b {
    font-size: 1.45rem;
  }

  .pass-progress-card {
    min-height: 300px;
    padding: 18px 24px;
  }

  .pass-progress-card .preview-note {
    display: none;
  }

  .pass-track {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
  }

  .pass-node {
    position: relative;
    min-height: 176px;
    padding: 10px 8px 12px;
    border: 1px solid rgba(157, 77, 231, 0.6);
    border-radius: 0;
    clip-path: var(--ui-cut);
    opacity: 0.78;
    background-color: #08090c;
    background-image: url('../assets/ui/pass-rewards.png');
    background-repeat: no-repeat;
    background-size: 800% auto;
    background-position: 0 center;
  }

  .pass-node:nth-child(2) { background-position: 14.286% center; }
  .pass-node:nth-child(3) { background-position: 28.571% center; }
  .pass-node:nth-child(4) { background-position: 42.857% center; }
  .pass-node:nth-child(5) { background-position: 57.143% center; }
  .pass-node:nth-child(6) { background-position: 71.429% center; }
  .pass-node:nth-child(7) { background-position: 85.714% center; }
  .pass-node:nth-child(8) { background-position: 100% center; }

  .pass-node span {
    position: relative;
    z-index: 1;
    border: 1px solid currentColor;
    background: #17131d;
  }

  .pass-node small {
    position: absolute;
    z-index: 1;
    right: 4px;
    bottom: 7px;
    left: 4px;
    color: #c188ff;
    font-family: var(--ui-display);
    font-size: 0.95rem;
    text-shadow: 0 2px 8px #000, 0 2px 8px #000;
  }

  .pass-cosmetics-button {
    width: 44%;
    min-height: 68px;
    margin-top: 18px;
    font-family: var(--ui-display);
    font-size: 1.35rem;
  }

  .paid-run-purchase-card {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: calc(56% - 28px);
    min-height: 68px;
    margin: 0;
  }

  .paid-run-purchase-card p {
    display: none;
  }

  #leaderboards > .economy-panel {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.3fr) minmax(250px, 0.7fr);
    grid-template-rows: auto auto minmax(180px, auto) auto;
    gap: 14px;
  }

  #leaderboards.screen:not(#hud) > .economy-panel,
  #daily-arena.screen:not(#hud) > .arena-panel {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - var(--reference-header));
    max-height: none;
    margin: 0;
    overflow: visible;
    border-right: 0;
    border-left: 0;
  }

  #leaderboards .leaderboard-page-hero,
  #leaderboards .leaderboard-tabs {
    grid-column: 1 / -1;
  }

  #leaderboards .leaderboard-page-hero {
    min-height: 186px;
    padding-right: 8px;
    padding-left: 8px;
    border: 0;
    border-bottom: 1px solid rgba(210, 165, 38, 0.25);
    clip-path: none;
  }

  #leaderboards .leaderboard-page-hero h2 {
    order: 1;
    font-size: 5.2rem;
  }

  #leaderboards .leaderboard-page-hero > div {
    display: flex;
    flex-direction: column;
  }

  #leaderboards .leaderboard-page-hero .eyebrow {
    order: 2;
    margin: 8px 0 0;
    font-size: 1.45rem;
  }

  #leaderboards .leaderboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 80px;
    margin: 0;
  }

  #leaderboards .leaderboard-tab {
    min-height: 80px;
    border: 1px solid rgba(210, 165, 38, 0.75);
    font-size: 1.45rem;
  }

  #leaderboards .arena-leaderboard-tab {
    display: grid;
    place-items: center;
    border-color: var(--ui-red);
    color: var(--ui-red);
  }

  #leaderboards .arena-leaderboard-tab span {
    font: inherit;
  }

  #leaderboards .arena-leaderboard-tab.active {
    color: #fff;
    border-color: #ff483d;
    background: linear-gradient(180deg, rgba(123, 19, 14, 0.72), rgba(52, 8, 6, 0.9));
    box-shadow: inset 0 -3px #ff483d, 0 0 22px rgba(255, 58, 47, 0.18);
  }

  #leaderboards .leaderboard-podium {
    grid-column: 1;
    grid-row: 3 / 5;
    min-height: 580px;
    padding: 28px 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background-color: #07090b;
    background-image: linear-gradient(180deg, transparent 0 62%, #07090b 91%), url('../assets/ui/leaderboard-podium.png');
    background-position: center, center top;
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% auto;
  }

  #leaderboards .podium-place {
    min-height: 390px;
    border-color: transparent;
    background: transparent;
  }

  #leaderboards .leaderboard-table-wrap {
    grid-column: 2;
    grid-row: 3 / 5;
    margin: 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  #leaderboards .leaderboard-table th,
  #leaderboards .leaderboard-table td {
    height: 64px;
    font-size: 1.05rem;
  }

  #leaderboards .leaderboard-summary {
    grid-column: 3;
    grid-row: 3;
    grid-template-columns: 1fr;
    margin: 0;
  }

  #leaderboards .leaderboard-summary > div {
    min-height: 88px;
  }

  #leaderboards .reward-claim-card {
    grid-column: 3;
    grid-row: 4;
    margin: 0;
    align-self: stretch;
  }

  #leaderboards .preview-note {
    display: none;
  }

  #daily-mine .mine-briefing-panel {
    width: calc(100vw - 48px);
    max-width: 1488px;
    margin: 20px auto;
    border-radius: 0;
    background: #07090b;
  }

  #daily-mine .mine-briefing-hero,
  #daily-arena .arena-heading {
    min-height: 202px;
    padding: 28px 34px;
    background:
      linear-gradient(90deg, rgba(3, 5, 7, 0.98) 0 30%, rgba(3, 5, 7, 0.12) 70%),
      url('../assets/ui/matt-mine-hero-reference.png') center / cover;
  }

  #daily-mine .mine-briefing-hero {
    height: 202px;
    min-height: 202px;
    padding-left: 8px;
  }

  #daily-mine .mine-briefing-hero > div:first-child {
    align-self: center;
    text-align: left;
  }

  #daily-mine .mine-briefing-hero p:not(.eyebrow) {
    display: none;
  }

  #daily-mine .dashboard-live-pill {
    position: absolute;
    top: 40px;
    right: 18px;
    width: 330px;
    min-height: 116px;
    display: grid;
    place-items: center;
    border-width: 2px;
    font-family: var(--ui-display);
    font-size: 1.55rem;
    text-align: center;
  }

  #daily-mine .mine-briefing-hero h2,
  #daily-arena .arena-heading h2 {
    font-size: 5.8rem;
    line-height: 0.85;
  }

  #daily-mine .mine-briefing-hero h2::after {
    content: "TODAY'S FREE RANKED RUN";
    display: block;
    margin-top: 12px;
    color: var(--ui-cyan);
    font-size: 2.1rem;
    letter-spacing: 0.05em;
  }

  #daily-arena .arena-heading h2 {
    background: linear-gradient(90deg, var(--ui-gold), var(--ui-red));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #daily-arena .arena-heading p:last-child {
    max-width: 640px;
  }

  #daily-arena .arena-pool-grid article,
  #daily-arena .arena-entry-card,
  #daily-arena .arena-clock-card,
  #daily-arena .arena-table-wrap {
    border-radius: 0;
    clip-path: var(--ui-cut);
  }

  #daily-arena .arena-table-wrap {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }
}

@media (min-width: 1000px) and (max-width: 1399px) and (min-height: 700px) {
  #leaderboards > .economy-panel {
    grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto auto auto auto;
  }

  #leaderboards .leaderboard-podium {
    grid-column: 1;
    grid-row: 3;
  }

  #leaderboards .leaderboard-table-wrap {
    grid-column: 2;
    grid-row: 3;
  }

  #leaderboards .leaderboard-summary {
    grid-column: 1 / -1;
    grid-row: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #leaderboards .reward-claim-card {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

.launch-hero-content h1 > span,
.launch-hero-content h1 > small {
  display: block;
}

.launch-hero-content h1 > small {
  margin-top: 0.1em;
  color: #f0f0ed;
  font-family: var(--ui-display);
  font-size: 0.49em;
  line-height: 1;
  letter-spacing: 0.015em;
  -webkit-text-fill-color: #f0f0ed;
}

@media (max-width: 760px) {
  .launch-hero-content h1 {
    font-size: clamp(3.8rem, 18vw, 6rem);
    line-height: 0.88;
  }

  .launch-hero-content h1 > span {
    white-space: nowrap;
  }
}

/* Portrait-first gameplay for Ronin Wallet and other embedded mobile browsers. */
@media (max-width: 760px) and (orientation: portrait) {
  html.portrait-mobile,
  html.portrait-mobile body,
  #app.touch-input.portrait-mobile {
    --mobile-control-deck-height: clamp(186px, 23dvh, 210px);
    width: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
  }

  #app.touch-input.portrait-mobile.gameplay-active {
    display: block;
    background: #030407;
  }

  #app.touch-input.portrait-mobile.gameplay-active #game {
    position: absolute;
    inset: 0 0 auto;
    width: 100vw;
    max-width: none;
    height: calc(100dvh - var(--mobile-control-deck-height));
    max-height: none;
    aspect-ratio: auto !important;
    filter: brightness(1.65) saturate(1.08);
    box-shadow: none;
  }

  #app.touch-input.portrait-mobile.gameplay-active .hud {
    padding: max(8px, env(safe-area-inset-top)) 8px calc(var(--mobile-control-deck-height) + 8px);
  }

  #app.touch-input.portrait-mobile.gameplay-active .hud-top,
  #app.touch-input.portrait-mobile.gameplay-active .hud-bottom {
    display: block;
  }

  #app.touch-input.portrait-mobile.gameplay-active .health-block {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    width: calc(100% - max(92px, calc(env(safe-area-inset-right) + 92px)));
    min-width: 0;
    padding: 8px 10px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .depth-badge {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 68px;
    padding: 6px 8px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .depth-badge strong {
    font-size: 19px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .loot-block {
    top: max(65px, calc(env(safe-area-inset-top) + 65px));
    right: auto;
    left: max(8px, env(safe-area-inset-left));
    padding: 7px 10px;
    text-align: left;
  }

  #app.touch-input.portrait-mobile.gameplay-active .abandon-run-button {
    top: max(68px, calc(env(safe-area-inset-top) + 68px));
    right: max(8px, env(safe-area-inset-right));
    min-width: 98px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .run-mode-hud {
    top: max(110px, calc(env(safe-area-inset-top) + 110px));
    left: max(8px, env(safe-area-inset-left));
    max-width: 46vw;
    overflow: hidden;
    padding: 6px 10px;
    transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #app.touch-input.portrait-mobile.gameplay-active .arena-round-timer {
    top: max(105px, calc(env(safe-area-inset-top) + 105px));
    right: max(8px, env(safe-area-inset-right));
    left: auto;
    min-width: 112px;
    padding: 6px 9px;
    transform: none;
  }

  #app.touch-input.portrait-mobile.gameplay-active .arena-round-timer strong {
    font-size: 18px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .objective {
    position: absolute;
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(var(--mobile-control-deck-height) + 52px);
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 6px 10px;
    transform: none;
  }

  #app.touch-input.portrait-mobile.gameplay-active .objective span {
    font-size: 7px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .objective strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #app.touch-input.portrait-mobile.gameplay-active .xp-wrap {
    position: absolute;
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(var(--mobile-control-deck-height) + 8px);
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    margin: 0;
    padding: 7px 10px;
    transform: none;
  }

  #app.touch-input.portrait-mobile.gameplay-active .toast {
    top: max(154px, calc(env(safe-area-inset-top) + 154px));
    width: calc(100% - 24px);
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 11px;
    text-align: center;
  }

  #app.touch-input.portrait-mobile.gameplay-active .mobile-controls.active {
    display: block;
  }

  #app.touch-input.portrait-mobile.gameplay-active .mobile-control-deck {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: var(--mobile-control-deck-height);
    display: grid;
    grid-template-columns: 132px 1fr 96px;
    align-items: start;
    padding: 11px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-top: 1px solid rgba(247, 196, 48, 0.32);
    background:
      radial-gradient(circle at 18% 62%, rgba(71, 138, 155, 0.16), transparent 35%),
      radial-gradient(circle at 86% 58%, rgba(247, 196, 48, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(8, 11, 15, 0.98), #030507);
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.66);
  }

  #app.touch-input.portrait-mobile.gameplay-active .mobile-control-deck span {
    color: rgba(255, 255, 255, 0.48);
    font: 900 8px/1 var(--ui-body);
    letter-spacing: 0.16em;
  }

  #app.touch-input.portrait-mobile.gameplay-active .mobile-control-deck span:nth-child(2),
  #app.touch-input.portrait-mobile.gameplay-active .mobile-control-deck span:nth-child(3) {
    text-align: right;
  }

  #app.touch-input.portrait-mobile.gameplay-active .joystick {
    z-index: 2;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
    width: 116px;
    height: 116px;
    border-color: rgba(111, 220, 224, 0.42);
    background: rgba(5, 10, 14, 0.82);
    box-shadow: inset 0 0 28px rgba(75, 196, 205, 0.08), 0 10px 28px rgba(0, 0, 0, 0.4);
  }

  #app.touch-input.portrait-mobile.gameplay-active .joystick-knob {
    width: 52px;
    height: 52px;
    margin: -26px;
    background: linear-gradient(145deg, rgba(151, 238, 239, 0.88), rgba(70, 146, 158, 0.82));
  }

  #app.touch-input.portrait-mobile.gameplay-active .attack-button {
    z-index: 2;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(26px, calc(env(safe-area-inset-bottom) + 20px));
    width: 88px;
    height: 88px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .dash-button {
    z-index: 2;
    right: max(116px, calc(env(safe-area-inset-right) + 116px));
    bottom: max(40px, calc(env(safe-area-inset-bottom) + 34px));
    width: 56px;
    height: 56px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .mobile-weapon-buttons {
    z-index: 2;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(var(--mobile-control-deck-height) - 59px);
    gap: 6px;
  }

  #app.touch-input.portrait-mobile.gameplay-active .weapon-button {
    width: 44px;
    height: 44px;
  }
}
