@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700;800;900&display=swap');

/* === CSS Custom Properties === */
:root {
  /* Colors */
  color-scheme: dark;
  --bg: #101112;
  --panel: #17181b;
  --line: #2a2b2f;
  --muted: #85868e;
  --accent: #dcff5e;
  --pink: #c778ee;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-xl: 15px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Z-index layers */
  --z-base: 1;
  --z-elevated: 10;
  --z-modal: 100;
  --z-toast: 1000;
}

/* === Base Reset === */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 560px at 0% 0%, #dcff5e0d, transparent 75%),
    radial-gradient(ellipse 55% 700px at 100% 35%, #dcff5e08, transparent 75%);
  background-repeat: no-repeat;
  color: #f2f2f4;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(13px, 0.875rem, 14px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
  transition: var(--transition-fast);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px currentColor);
  }
  50% {
    filter: drop-shadow(0 0 15px currentColor);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* === Header === */
header {
  min-height: 90px;
  padding: 12px 4%;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: Unbounded, Arial, sans-serif;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 900;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 2px;
  animation: fadeIn 0.5s ease;
}

.brand > span:not(.brand-icon) {
  color: var(--accent);
}

.brand .brand-icon {
  font-size: clamp(30px, 2.4vw, 39px);
  margin-right: 9px;
  color: var(--accent);
}

.brand small {
  font: 700 10px Manrope;
  margin: 0 0 20px 7px;
  letter-spacing: 0;
  color: var(--muted);
}

nav {
  display: flex;
  height: 100%;
  min-width: 0;
  gap: clamp(8px, 1.2vw, 20px);
  align-items: stretch;
  white-space: nowrap;
}

nav a,
nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 6px;
  line-height: 1.35;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-weight: 700;
  color: #92939a;
  font-size: clamp(12px, 0.875rem, 14px);
  transition: color var(--transition-base), border-color var(--transition-base);
}

nav a:hover,
nav button:hover {
  color: #b5b6bd;
}

nav .active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.account {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
}

.demo-tag {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.balance-control { display:flex;align-items:stretch;border:1px solid #3b422b;border-radius:9px;background:#20221d;overflow:hidden; }
.test-wallet-active { color:var(--accent); }
#walletChoiceDialog { width:min(420px,calc(100vw - 32px)); }
.wallet-option { display:flex;justify-content:space-between;gap:20px;width:100%;padding:18px;margin-top:12px;border:1px solid #424735;border-radius:9px;background:#20221d;color:#f2f2f4;font-size:15px; }
.wallet-option:hover,.wallet-option:focus-visible { border-color:var(--accent); }
.wallet-option strong { color:var(--accent); }
#walletChoiceNote { color:#b1b5ab;font-size:13px;line-height:1.6; }
.test-item-badge { position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:2;background:#41492c;color:#e0ff85;border:1px solid #8eaa41;border-radius:5px;padding:3px 7px;font-size:11px;font-weight:700;line-height:1.2;pointer-events:none; }
.balance-control .balance { border:0;border-radius:0;animation:none;padding:8px 12px; }
.balance-topup { display:grid;place-items:center;width:38px;min-height:38px;flex-shrink:0;color:var(--accent);background:transparent;border:0;border-right:1px solid #3b422b;transition:background .18s ease,color .18s ease; }
.balance-topup svg { width:21px;height:21px; }
.balance-topup:hover { background:var(--accent);color:#191d10; }
.balance-topup:focus-visible { outline:2px solid var(--accent);outline-offset:-3px; }
#rollyDialog { width:min(460px,calc(100vw - 32px));padding:30px; }
#rollyDialog .simulated-topup { border:0;padding:0;margin:0; }
.rolly-test-total { display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-block:1px solid #34382f;font-size:14px; }
.rolly-test-total strong { color:var(--accent); }
#rollyDialog #rollyPayLink,#rollyDialog #rollyCheck,#rollyDialog #rollyNew { margin-top:12px; }
.balance {
  background: #20221d;
  padding: 8px 8px 8px var(--space-md);
  border: 1px solid #3b422b;
  border-radius: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  animation: slideInRight 0.4s ease;
}

.balance:hover {
  border-color: #4e5735;
  box-shadow: 0 0 12px rgba(220, 255, 94, 0.1);
}

.balance b {
  background: var(--accent);
  color: #191d10;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: clamp(16px, 1.25rem, 20px);
  transition: transform var(--transition-fast);
}

.balance:hover b {
  transform: scale(1.05);
}

.avatar {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #363137;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid #60565c;
  transition: border-color var(--transition-base), transform var(--transition-base);
  animation: scaleIn 0.3s ease;
}

.avatar:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}

/* === Main Layout === */
main {
  max-width: 1440px;
  margin: auto;
  padding: 35px 4% 0;
  animation: fadeIn 0.6s ease;
}

.eyebrow {
  display: flex;
  gap: var(--space-lg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
}

.eyebrow span + span {
  color: #606169;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 0 27px;
}

h1 {
  font-family: Unbounded, Arial, sans-serif;
  font-size: clamp(25px, 3.05vw, 43px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 0;
  animation: slideInLeft 0.5s ease;
}

h1 span {
  color: var(--accent);
}

.title-row p {
  color: var(--muted);
  font-size: clamp(11px, 0.75rem, 12px);
  margin: 14px 0 0;
  line-height: 1.6;
}

.how {
  background: none;
  border: 1px solid #36373a;
  border-radius: var(--radius-md);
  font-size: 11px;
  padding: 12px var(--space-md);
  color: #b6b7bc;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.how:hover {
  border-color: #4a4c50;
  color: #d2d3d8;
}

/* === Upgrade Stage === */
.upgrade-stage {
  position: relative;
  isolation: isolate;
  border: 1px solid #303236;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(ellipse at 0% 30%, #56683120, transparent 48%), radial-gradient(ellipse at 100% 65%, #35476326, transparent 45%), radial-gradient(ellipse at 50% 90%, #27301845, transparent 45%), #161719;
  animation: slideInUp 0.6s ease;
}

.upgrade-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 320px 240px at var(--light-x, 50%) var(--light-y, 50%), #d4f87818, transparent 75%);
  opacity: var(--light-strength, 0);
  transition: opacity 0.35s ease;
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}

.stage-top,
.stage-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: var(--space-lg) 25px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #92939b;
}

.stage-top > span:first-child {
  color: #cfd0d2;
  display: flex;
  gap: 9px;
  align-items: center;
}

.stage-note {
  letter-spacing: 0;
  font-weight: 400;
  color: #696a72;
}

/* === Machine Section === */
.machine {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 290px 1fr;
  gap: 24px;
  align-items: center;
  padding: 0 40px 8px;
}

.pedestal {
  text-align: center;
  min-width: 0;
}

.step {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #72747d;
  text-transform: uppercase;
}

.hero-image {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: 180px;
  margin: 12px 0 14px;
  padding: 10px 8px var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: none;
  transition: transform var(--transition-base);
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--rarity-rgb, 115, 119, 128), 0.2) 0%, rgba(var(--rarity-rgb, 115, 119, 128), 0.08) 35%, transparent 68%);
}

.hero-image img {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px #0008);
  transform: rotate(-5deg) scale(0.93);
  transition: transform var(--transition-base);
}

.hero-image:hover img {
  transform: rotate(-2deg) scale(0.98);
}

.item-heading {
  position: relative;
  font-size: clamp(14px, 1rem, 16px);
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.item-heading small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: #9697a0;
  font-weight: 500;
  margin-top: 5px;
}

.item-cost {
  font-weight: 800;
  margin-top: 9px;
  font-size: clamp(16px, 1.125rem, 18px);
}

/* === Source & Multipliers === */
.source-switch,
.multipliers {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: var(--space-lg);
}

.source-switch button,
.multipliers button {
  background: #202124;
  border: 1px solid #313237;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 10px;
  color: #9b9ca4;
  transition: border-color var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.source-switch button:hover:not(.selected),
.multipliers button:hover:not(.selected) {
  border-color: #42453f;
  color: #b5b6bc;
}

.source-switch .selected,
.multipliers .selected {
  border-color: #64733d;
  color: var(--accent);
  background: #2b3020;
}

.target-hint {
  display: block;
  margin-top: 12px;
  font-size: 9px;
  color: #6f7179;
  text-align: center;
}

/* === Dial === */
.dial {
  width: 252px;
  height: 252px;
  margin: 0 auto;
  position: relative;
  touch-action: none;
  user-select: none;
}

.dial svg {
  height: 100%;
  width: 100%;
  overflow: visible;
  transform: rotate(0deg);
}

.dial circle {
  fill: none;
  stroke-width: 7;
}

.track {
  stroke: #2e3031;
  stroke-dasharray: 2 4;
}

#chanceArc {
  stroke: var(--accent);
  stroke-linecap: butt;
  stroke-dasharray: 144 716;
  transform: rotate(-90deg);
  transform-origin: center;
  filter: drop-shadow(0 0 7px #b8e63c55);
  transition: stroke-dasharray var(--transition-base);
  cursor: grab;
}

#needle {
  fill: #fff;
  transition: none;
}

.dial-text {
  position: absolute;
  inset: 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #34372c;
  border-radius: 50%;
  box-shadow: inset 0 0 40px #b5e83b05;
  pointer-events: none;
}

.dial-text > span:first-child {
  font-family: Unbounded, Arial;
  font-size: clamp(36px, 2.4375rem, 39px);
  letter-spacing: -2px;
  font-weight: 800;
}

.dial-text > span:first-child span {
  font-size: 21px;
  color: var(--accent);
  margin-left: 2px;
}

.dial-text small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8b8e7b;
  margin-top: 7px;
}

.dial-icon {
  margin-top: 15px;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  animation: pulse 3s infinite;
}

/* === Risk & Upgrade Button === */
.risk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: #969b87;
  margin: 13px 0 19px;
}

.risk > span:last-child {
  margin-left: 12px;
  color: #d4d8c7;
  font-weight: 700;
}

.upgrade-button {
  width: 100%;
  background: var(--accent);
  color: #151a0d;
  border: 0;
  border-radius: var(--radius-md);
  padding: 17px 18px;
  font-size: clamp(11px, 0.75rem, 12px);
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 5px 23px #c5ef3514;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.upgrade-button:hover:not(:disabled) {
  background: #eaff9c;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px #c5ef3528;
}

.upgrade-button:active:not(:disabled) {
  transform: translateY(0);
}

.upgrade-button > span {
  float: right;
  font-size: 17px;
  line-height: 14px;
}

.result {
  min-height: 28px;
  font-size: 9px;
  color: #858879;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.result.win {
  color: var(--accent);
  font-weight: 700;
}

.result.loss {
  color: #ef9b9b;
  font-weight: 700;
}

.stage-bottom {
  font-size: 8px;
  padding: var(--space-md) 25px;
  border-top: 1px solid #ffffff06;
  color: #676c5e;
}

/* === Catalogs === */
.catalogs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 31px;
}

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 32px;
  margin-bottom: var(--space-md);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220, 255, 94, 0.08);
}

h2 {
  font-size: clamp(15px, 1rem, 16px);
  margin: 0;
  letter-spacing: -0.4px;
  font-weight: 700;
}

h2 span {
  font-size: 10px;
  color: #9a9ca5;
  background: #25262a;
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
}

.text-button {
  background: none;
  border: 0;
  font-size: 10px;
  color: #85868f;
  padding: 5px 0;
  transition: color var(--transition-base);
}

.text-button:hover {
  color: var(--accent);
}

.mini-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #696a72;
  text-transform: uppercase;
}

/* === Toolbar & Search === */
.catalog {
  min-width: 0;
  background: linear-gradient(135deg, #1a1c1e 0%, #161819 100%);
  border: 1px solid #2d3028;
  border-radius: 12px;
  padding: 20px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(220, 255, 94, 0.06),
    0 0 0 1px rgba(220, 255, 94, 0.03);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.catalog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 255, 94, 0.15), transparent);
  pointer-events: none;
}

.catalog:hover {
  border-color: #3d4332;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(220, 255, 94, 0.08),
    0 0 0 1px rgba(220, 255, 94, 0.05);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 140px;
  min-height: 44px;
  padding-left: 12px;
  color: #7f828b;
  font-size: 21px;
  border: 1px solid rgba(220, 255, 94, 0.1);
  background: linear-gradient(135deg, rgba(220, 255, 94, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
  border-radius: 6px;
  transition: all var(--transition-base);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #ddd;
  padding: 11px 7px 11px 0;
  font-size: 12px;
}

.search:focus-within {
  border-color: rgba(220, 255, 94, 0.4);
  background: linear-gradient(135deg, rgba(220, 255, 94, 0.06) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(220, 255, 94, 0.1);
}

select,
.min-price {
  background: linear-gradient(135deg, rgba(220, 255, 94, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
  color: #b8b9c0;
  border: 1px solid rgba(220, 255, 94, 0.1);
  border-radius: 6px;
  font-size: 12px;
  min-height: 44px;
  padding: 8px;
  min-width: 0;
  transition: all var(--transition-base);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

select:focus,
.min-price:focus {
  border-color: rgba(220, 255, 94, 0.3);
  background: linear-gradient(135deg, rgba(220, 255, 94, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(220, 255, 94, 0.08);
}

.min-price {
  width: 104px;
}

/* === Cards Grid === */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  max-height: 560px;
  overflow: auto;
  align-content: start;
  grid-auto-rows: max-content;
  padding: 12px;
  scroll-padding: 4px;
  scrollbar-color: #5a6439 transparent;
  scrollbar-width: thin;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(220, 255, 94, 0.06);
}

.card {
  position: relative;
  text-align: left;
  border: 1px solid #35373d;
  border-bottom: 2px solid var(--rarity-color, #737780);
  border-radius: var(--radius-md);
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--rarity-rgb, 115, 119, 128), 0.12), transparent 70%), #1d1f22;
  min-width: 0;
  padding: 12px 11px 10px;
  overflow: hidden;
  transition: border var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: fadeIn 0.2s ease both;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card:hover {
  border-color: #8a9254;
  border-bottom-color: var(--rarity-color, #737780);
  background: radial-gradient(ellipse at center, rgba(var(--rarity-rgb, 115, 119, 128), 0.18), transparent 80%), #24262a;
  transform: translateY(-3px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(220, 255, 94, 0.08);
}

.card.selected {
  border: 1px solid var(--accent);
  border-bottom: 2px solid var(--rarity-color, #737780);
  background: radial-gradient(ellipse at center, rgba(var(--rarity-rgb, 115, 119, 128), 0.18), transparent 80%), #24281f;
  box-shadow:
    0 4px 16px rgba(220, 255, 94, 0.15),
    0 0 0 1px rgba(220, 255, 94, 0.2),
    inset 0 1px 0 rgba(220, 255, 94, 0.1);
  transform: translateY(-2px);
}

.card .tick {
  position: absolute;
  right: 9px;
  top: 8px;
  border: 1px solid #45464b;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.card.selected .tick {
  background: var(--accent);
  border-color: var(--accent);
  color: #15180d;
}

.card .wear {
  font-size: 10px;
  color: #a2a3aa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card img {
  width: 100%;
  height: 85px;
  object-fit: contain;
  margin: 2px 0;
  filter: drop-shadow(0 7px 6px #0006);
  transition: transform var(--transition-base);
}

.card:hover img {
  transform: scale(1.05);
}

.card .weapon {
  display: block;
  font-size: 11px;
  color: #a2a3aa;
}

.card .skin-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
  margin: 3px 0 8px;
}

.card .price {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.catalog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: #a2a3aa;
  margin: 12px 0 0;
}

#retryCatalog {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #414735;
  border-radius: var(--radius-sm);
  background: #20251a;
  color: var(--accent);
  font-size: 12px;
}

#retryCatalog:hover:not(:disabled) {
  border-color: var(--accent);
}

#moreTargets {
  width: 100%;
  margin-top: 12px;
}

.empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-content: center;
  padding: 35px 20px;
  border: 1px dashed #36383d;
  border-radius: var(--radius-md);
  background: #17181b;
  text-align: center;
  color: var(--muted);
  font-size: clamp(11px, 0.75rem, 12px);
}

/* === Brand Strip & History === */
.brand-strip {
  border-top: 1px solid #33362b;
  border-bottom: 1px solid #33362b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0;
  margin: 38px 0;
  color: #767d66;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.brand-strip strong {
  font-family: Unbounded;
  font-size: clamp(22px, 1.5625rem, 25px);
  letter-spacing: -1px;
  color: #d5dbc9;
}

.brand-strip strong span {
  color: var(--accent);
  margin-left: 18px;
}

.history-section {
  padding-bottom: var(--space-lg);
}

.history-empty {
  border: 1px dashed #303236;
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  font-size: 11px;
  color: #71737c;
}

.history-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #2a2c2e;
  border-radius: var(--radius-md);
  margin-top: 6px;
  font-size: 11px;
  background: #17191a;
  transition: border-color var(--transition-base), background var(--transition-base);
  animation: slideInUp 0.3s ease both;
}

.history-row:hover {
  border-color: #3a3c3e;
  background: #1d1f20;
}

.history-row img {
  width: 58px;
  height: 38px;
  object-fit: contain;
}

.history-row .outcome {
  margin-left: auto;
  font-weight: 700;
  color: #de9295;
}

.history-row.success .outcome {
  color: var(--accent);
}

.history-row small {
  color: #777b80;
  font-size: 9px;
}

/* === Footer === */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 24px 4% 28px;
  gap: 20px;
  color: #62646d;
  font-size: 9px;
}

footer .brand {
  font-size: clamp(14px, 1rem, 16px);
}

/* === Dialog === */
dialog {
  color: #e8e9ed;
  background: #1b1d1e;
  border: 1px solid #414735;
  border-radius: var(--radius-xl);
  padding: 35px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555d36 transparent;
  box-shadow: 0 30px 100px #000a;
  animation: scaleIn 0.3s ease;
}

.withdrawal-panel { margin-top: 24px; padding: 24px; }
.withdrawal-panel h2 { font-size: 20px; margin-top: 0; }
.withdrawal-panel p { color: #a7a9b0; line-height: 1.6; overflow-wrap: anywhere; }
.withdrawal-panel a { color: var(--accent); }
.withdrawal-panel .profile-text-button { margin-right: 16px; }
.withdrawal-form { display: grid; gap: 14px; }
.withdrawal-form input[type="url"] { width: 100%; min-width: 0; padding: 12px; color: #e8e9ed; background: var(--bg); border: 1px solid #63656e; border-radius: 7px; }
.withdrawal-confirm { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.6; }
.withdrawal-confirm input { flex: 0 0 auto; margin-top: 5px; accent-color: var(--accent); }
.withdrawal-form p { margin: 0; }
#withdrawalName { overflow-wrap: anywhere; }

dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

dialog .eyebrow {
  display: block;
  margin-bottom: 18px;
}

dialog h2 {
  padding-right: 28px;
  font-size: clamp(20px, 1.4375rem, 23px);
}

dialog li,
dialog p {
  font-size: clamp(11px, 0.75rem, 12px);
  line-height: 1.9;
  color: #a7a9b0;
}

dialog ol {
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
}

dialog p {
  font-size: 13px;
}

.close {
  position: absolute;
  right: var(--space-md);
  top: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  font-size: 25px;
  color: #858a7d;
  transition: color var(--transition-base), transform var(--transition-base);
}

.close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

#balanceStake {
  margin-top: var(--space-sm);
  font-size: 10px;
  color: var(--muted);
}

#stake {
  width: 116px;
  max-width: 100%;
  min-height: 40px;
  background: #20221c;
  color: white;
  border: 1px solid #555d36;
  padding: 6px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-sm);
  transition: border-color var(--transition-base);
}

#stake:focus {
  border-color: var(--accent);
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 25px;
  max-width: min(520px, calc(100% - 32px));
  overflow-wrap: anywhere;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--accent);
  color: #172008;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: var(--z-toast);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  font-size: clamp(11px, 0.75rem, 12px);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* === Wins Strip === */
.online-demo {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 10px;
  color: #a8aaaf;
}

.online-demo > i {
  height: 6px;
  width: 6px;
  box-shadow: 0 0 9px #dcff5e44;
}

.online-demo strong {
  color: var(--accent);
  font-size: clamp(11px, 0.75rem, 12px);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 24px;
}

.online-demo small {
  display: block;
  font-size: 8px;
  color: #898c80;
  margin-top: 3px;
}

.online-demo.updating strong {
  animation: online-flash 0.7s ease;
}

.wins-strip {
  display: flex;
  border-bottom: 1px solid #2b2d30;
  background: #131416;
  min-width: 0;
  padding: 13px 4%;
  gap: var(--space-md);
  overflow: hidden;
}

.wins-label {
  width: 146px;
  min-width: 146px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 27px;
  border-right: 1px solid #303329;
  gap: 6px;
}

.wins-symbol {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-size: 24px;
  animation: glow 2s infinite;
}

.wins-label strong {
  font-size: 11px;
  line-height: 1.4;
}

.wins-label small {
  color: var(--accent);
  font-size: 7px;
  line-height: 1.35;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wins-note {
  color: #898c80;
  font-size: 8px;
  line-height: 1.35;
}



.wins-track {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  padding-bottom: 5px;
}

.win-preview {
  flex: 0 0 178px;
  display: grid;
  grid-template-columns: 68px 1fr;
  grid-template-rows: 19px 20px 19px;
  column-gap: 8px;
  align-content: center;
  padding: 12px 9px;
  border: 1px solid #3d3f35;
  border-bottom: 2px solid var(--rarity-color, #737780);
  border-radius: var(--radius-md);
  background: radial-gradient(ellipse at 10% 50%, rgba(var(--rarity-rgb, 115, 119, 128), 0.13), transparent 80%), linear-gradient(135deg, rgba(220, 255, 94, 0.03) 0%, #1a1b1d 100%);
  min-height: 88px;
  transition: all var(--transition-base);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(220, 255, 94, 0.04);
}

.win-preview[data-image-state="loading"] > * {
  visibility: hidden;
}

.win-preview:hover {
  border-color: #5d6348;
  background: linear-gradient(135deg, rgba(220, 255, 94, 0.04) 0%, #1d1f21 100%);
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(220, 255, 94, 0.06),
    0 0 0 1px rgba(220, 255, 94, 0.05);
}

.win-preview img {
  grid-row: 1 / 4;
  width: 68px;
  height: 59px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px #0008);
}

.win-preview .winner-chance {
  font-size: 9px;
  color: #c1c6ad;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-preview .winner-skin {
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-preview .winner-value {
  font-size: 10px;
  color: var(--accent);
  font-weight: 800;
}


.wins-loading {
  font-size: 11px;
  color: #8b8e84;
}

/* Preserve existing animations */


@keyframes online-flash {
  50% {
    color: white;
  }
}

/* === Zone Control === */
.zone-control {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  z-index: 4;
}

.zone-handle {
  position: absolute;
  top: 6.1538%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #171b10;
  box-shadow: 0 0 0 1px #dfff6077, 0 0 14px #dcff5e44;
  color: #263111;
  font-size: 12px;
  font-weight: 900;
  pointer-events: auto;
  cursor: grab;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.zone-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 2px #dfff6099, 0 0 18px #dcff5e66;
}

.zone-handle[hidden] {
  display: none;
}

.zone-handle:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

.zone-dragging,
.zone-dragging .zone-handle {
  cursor: grabbing;
}

.zone-locked .zone-handle {
  cursor: default;
  pointer-events: none;
  opacity: 0.65;
}

.zone-hint {
  text-align: center;
  margin: -6px 0 12px;
  color: #a4ad8d;
  font-size: 9px;
  min-height: 14px;
}

.zone-locked #chanceArc {
  cursor: default;
}

/* Steam deposits remain a journal, visually separate from playable item cards. */
.steam-deposits {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--panel);
}
.steam-deposits h3 { margin: 12px 0; }
.steam-deposits h4 { margin: 18px 0 10px; }
.steam-deposits p { overflow-wrap: anywhere; }
.steam-deposits button:disabled { opacity: .55; cursor: not-allowed; }
.steam-deposit-policies { display: grid; gap: 14px; margin: 18px 0; }
.steam-deposit-policies section { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; }
.steam-deposit-policies h4 { margin: 0 0 8px; color: var(--accent); }
.steam-deposit-policies p { margin: 8px 0 0; font-size: 12px; line-height: 1.7; }
.steam-deposit-amount { font-variant-numeric: tabular-nums; }
.financial-review-notice { padding: 12px 14px; border: 1px solid var(--accent); border-radius: var(--radius-md); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.steam-deposit-list { display: grid; gap: 12px; }
.steam-deposit-entry { padding: 14px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.steam-deposit-entry h4 { margin: 0 0 8px; }
.steam-deposit-entry strong { font-size: 13px; }
.steam-deposit-entry p, .steam-deposit-entry li { font-size: 12px; line-height: 1.65; }
.steam-deposit-entry ul { padding-left: 20px; }
.steam-deposit-pagination { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; }
@media (max-width: 600px) { .steam-deposits { padding: 14px; } }

/* === Target Presets === */
.target-presets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.target-presets button {
  min-width: 0;
  padding: 10px 3px;
  font-size: 11px;
  font-weight: 800;
  background: #1b1c1f;
  border: 1px solid #2e2f33;
  transform: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.target-presets .chance-35 {
  border-color: #75403e;
  color: #d89691;
}

.target-presets .chance-55 {
  border-color: #7b702c;
  color: #d6c66e;
}

.target-presets .chance-75 {
  border-color: #42663a;
  color: #97c383;
}

.target-presets button:hover:not(:disabled) {
  background: #2b2e25;
  border-color: #899468;
  color: #e2ebc9;
  transform: translateY(-1px);
}

.target-presets .selected {
  border-color: var(--accent);
  color: var(--accent);
  background: #30371e;
  box-shadow: 0 0 12px #dfff6010;
}

/* === Auth Gate === */
.auth-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-3xl) var(--space-md);
}

.gate-content {
  text-align: center;
  max-width: 420px;
}

.gate-icon {
  font-size: 72px;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-lg);
  animation: pulse 2s ease-in-out infinite;
}

.gate-content h1 {
  font-family: Unbounded;
  font-size: clamp(32px, 2.5rem, 40px);
  letter-spacing: -1px;
  margin-bottom: var(--space-sm);
}

.gate-content > p {
  color: var(--muted);
  font-size: clamp(13px, 0.875rem, 14px);
  margin-bottom: var(--space-2xl);
}

.steam-login-large,
.steam-login-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 32px;
  background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
  border: 2px solid #2a475e;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 700;
  font-size: clamp(14px, 0.9375rem, 15px);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.steam-login-large:hover,
.steam-login-btn:hover {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border-color: #66c0f4;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 192, 244, 0.3);
}

.steam-login-large svg,
.steam-login-btn svg {
  filter: drop-shadow(0 0 8px rgba(102, 192, 244, 0.6));
}

.gate-content small {
  display: block;
  margin-top: var(--space-lg);
  color: #71737c;
  font-size: 11px;
}

.auth-required {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.auth-required p {
  font-size: 12px;
  color: var(--muted);
}

.auth-required .steam-login-btn {
  padding: 10px 20px;
  font-size: 13px;
}

/* Logged in account section */
.account.logged-in {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.account .balance {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 8px 8px 12px;
  background: #1b1c1f;
  border: 1px solid #2e2f33;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #e8e9ed;
  transition: border-color var(--transition-base);
}

.account .balance:hover {
  border-color: var(--accent);
}

.account .balance span {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.account .balance b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #172008;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 900;
}

.account .avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 2px solid #2e2f33;
  background: #1b1c1f;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.account .avatar:hover {
  border-color: var(--accent);
}

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

/* [CHUNK_CONTINUE_MARKER_K1] */

/* Large Desktop (1500px+) */
@media (min-width: 1500px) {
  main {
    padding-top: 42px;
  }

  .hero-image {
    height: 200px;
  }

  .machine {
    padding-bottom: 18px;
  }

  .card img {
    height: 100px;
  }
}

/* Tablet (max-width: 1000px) */
@media (max-width: 1000px) {
  header {
    gap: 30px;
  }

  .machine {
    gap: 12px;
    padding: 0 18px 8px;
    grid-template-columns: 1fr 240px 1fr;
  }

  .dial {
    width: 225px;
    height: 225px;
  }

  .hero-image {
    height: 150px;
  }

  .item-heading {
    font-size: 13px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-strip strong {
    font-size: 20px;
  }

  .demo-tag {
    display: none;
  }

  .source-switch button {
    padding: 8px;
  }

  .title-row p {
    max-width: 350px;
    line-height: 1.6;
  }

  .account {
    gap: 12px;
  }

  .online-demo {
    font-size: 9px;
  }

  .wins-strip {
    padding: 11px 4%;
  }

  .win-preview {
    flex-basis: 166px;
  }

  .wins-label {
    width: 115px;
    min-width: 115px;
  }

  .target-presets {
    gap: 3px;
  }

  .target-presets button {
    font-size: 9px;
    padding: 9px 2px;
  }
}

/* Mobile (max-width: 700px) */
@media (max-width: 700px) {
  header {
    height: auto;
    min-height: 76px;
    padding: 12px var(--space-md);
    flex-wrap: wrap;
    gap: 9px;
  }

  .brand {
    font-size: 18px;
  }

  .brand .brand-icon {
    font-size: 28px;
    margin-right: 3px;
  }

  .brand small {
    display: none;
  }

  header nav {
    display: flex;
    order: 10;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #64733d transparent;
    padding: 4px 2px;
  }

  header nav a,
  header nav button {
    padding: 0 12px;
  }

  .account {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .balance {
    font-size: 11px;
    padding: 6px 6px 6px 9px;
    gap: 9px;
  }

  .balance b {
    font-size: 14px;
    padding: 3px 6px;
  }

  main {
    padding: var(--space-2xl) 15px 0;
  }

  .eyebrow {
    font-size: 7px;
    gap: 14px;
    letter-spacing: 1.3px;
  }

  .title-row {
    align-items: flex-end;
    margin-bottom: 22px;
  }

  .title-row p {
    font-size: 10px;
    max-width: 220px;
  }

  h1 {
    font-size: 25px;
    letter-spacing: -0.9px;
  }

  #howBtn {
    font-size: 0;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  #howBtn:first-letter {
    font-size: 13px;
  }

  .stage-top {
    padding: 14px;
    font-size: 8px;
  }

  .stage-note {
    font-size: 7px;
  }

  .machine {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    padding: 0 12px 12px;
  }

  .chance-block {
    grid-row: 2;
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
  }

  .dial {
    width: 205px;
    height: 205px;
    margin-top: 15px;
  }

  .pedestal {
    padding-top: 10px;
  }

  .hero-image {
    height: 120px;
    margin: 7px 0 12px;
    padding: 8px 4px 12px;
  }

  .step {
    font-size: 9px;
    letter-spacing: 0.8px;
  }

  .item-heading {
    font-size: 11px;
  }

  .item-heading small {
    font-size: 8px;
  }

  .item-cost {
    font-size: 15px;
  }

  .source-switch,
  .multipliers {
    margin-top: 12px;
    gap: 3px;
  }

  .source-switch button,
  .multipliers button {
    font-size: 8px;
    padding: 7px 6px;
  }

  .target-hint {
    font-size: 10px;
  }

  .dial-text > span:first-child {
    font-size: 32px;
  }

  .dial-text small {
    font-size: 7px;
  }

  .dial-icon {
    font-size: 22px;
    margin-top: 12px;
  }

  .risk {
    margin: 8px 0 14px;
  }

  .stage-bottom {
    font-size: 9px;
    letter-spacing: 0.4px;
    padding: 12px;
  }

  .catalogs {
    grid-template-columns: 1fr;
    gap: 23px;
    margin-top: 25px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 430px;
  }

  .card {
    padding: 9px 8px;
  }

  .card img {
    height: 70px;
  }

  .card .skin-name {
    font-size: 12px;
  }

  .brand-strip {
    padding: var(--space-lg) 0;
    margin: 28px 0;
  }

  .brand-strip > span {
    display: none;
  }

  .brand-strip strong {
    font-size: 22px;
    margin: auto;
  }

  .catalog-heading h2 {
    font-size: 15px;
  }

  .history-row {
    font-size: 10px;
    gap: var(--space-sm);
  }

  .history-row small {
    display: none;
  }

  footer {
    gap: 15px;
    flex-wrap: wrap;
    font-size: 8px;
  }

  footer > span:first-of-type {
    order: 3;
    width: 100%;
  }

  .online-demo {
    order: 2;
    font-size: 8px;
  }

  .online-demo strong {
    font-size: 10px;
    min-width: 20px;
  }

  .online-demo small {
    font-size: 7px;
  }

  .balance {
    font-size: 10px;
  }

  .wins-strip {
    padding: 11px 15px;
    gap: 10px;
  }

  .wins-label {
    min-width: 95px;
    width: 95px;
    padding-left: var(--space-lg);
  }

  .wins-label strong {
    font-size: 10px;
  }

  .wins-label small {
    font-size: 6px;
  }

  .wins-note {
    font-size: 7px;
  }

  .wins-symbol {
    font-size: 19px;
  }

  .win-preview {
    flex-basis: 157px;
    min-height: 80px;
    padding: 9px 7px;
    grid-template-columns: 59px 1fr;
    column-gap: 6px;
  }

  .win-preview img {
    width: 59px;
  }

  .wins-track {
    gap: 7px;
  }

  .target-presets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .target-presets button {
    font-size: 9px;
    padding: 8px 3px;
  }
}

/* Small Mobile (max-width: 390px) */
@media (max-width: 390px) {
  .online-demo {
    order: 2;
    flex-basis: 100%;
    justify-content: flex-end;
  }

  .online-demo small {
    display: inline;
    margin-left: 5px;
  }

  .account {
    max-width: 100%;
    gap: 5px;
  }

  .wins-label {
    min-width: 86px;
    width: 86px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .online-demo.updating strong {
    animation: none;
  }
}



/* Header status and static activity cards. */
.online-demo { display: grid; grid-template-columns: 7px auto; align-items: start; gap: 9px; }
.online-demo > i { margin-top: 7px; border-radius: 50%; background: var(--accent); }
.online-demo strong { font-size: 18px; line-height: 20px; min-width: 32px; }
.online-demo > span { line-height: 20px; }
.online-demo small { margin-top: 1px; line-height: 12px; }
#demoWins { display: flex; gap: var(--wins-gap, 9px); }
@media (max-width: 700px) {
  .online-demo strong { font-size: 16px; }
  #demoWins { --wins-gap: 7px; }
}

/* Wallet controls and receipts share one layout across both test flows. */
.simulated-topup { margin: 24px 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.simulated-topup .eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: 1px; }
.simulated-topup h3 { margin: 8px 0; font-size: 18px; }
.simulated-topup form { display: grid; gap: 10px; margin-top: 18px; }
.simulated-topup label { font-weight: 700; font-size: 13px; }
.simulated-topup input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #424735; border-radius: var(--radius-md); background: #141613; color: #f2f2f4; font-size: 16px; }
.simulated-topup input::placeholder { color: #85868e; }
.simulated-topup small, .topup-receipt small { color: #a7a9b0; font-size: 12px; overflow-wrap: anywhere; }
.simulated-topup [role="status"] { margin: 12px 0 0; overflow-wrap: anywhere; }
.simulated-topup [role="status"]:empty { display: none; }
#topupRefresh, #rollyPayLink, #rollyCheck { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; min-height: 44px; }
.topup-receipt { margin-top: 20px; padding: 16px; border: 1px solid #414735; border-radius: var(--radius-md); background: #151811; }
.topup-receipt ul { padding: 0; list-style: none; }
.topup-receipt li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.topup-receipt li strong { color: var(--accent); }

/* Standalone inventory — same container and rarity language as the upgrader. */
.inventory-view {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.inventory-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 17px 0 24px;
}

.inventory-page-heading p {
  margin: 12px 0 0;
  max-width: 60ch;
  color: #a2a3aa;
  font-size: 13px;
  line-height: 1.7;
}

.inventory-page-heading > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #414735;
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.inventory-page-heading > a:hover {
  border-color: var(--accent);
  background: #20251a;
}

.inventory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.inventory-summary > * {
  min-width: 0;
  margin: 0;
}

.inventory-summary dt,
.inventory-summary small,
.inventory-summary .mini-label {
  display: block;
  color: #a2a3aa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.inventory-summary dd,
.inventory-summary strong {
  display: block;
  margin: 4px 0 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

#ownedValue {
  color: var(--accent);
}

.inventory-page-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.inventory-page-toolbar label {
  display: flex;
  flex: 1 1 180px;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #b6b7bc;
  font-size: 12px;
  font-weight: 600;
}

.inventory-page-toolbar label:first-child {
  flex-grow: 2;
}

.inventory-page-toolbar input,
.inventory-page-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #36373a;
  border-radius: var(--radius-md);
  background: #18191c;
  color: #e8e9ed;
  font-size: 13px;
  font-weight: 500;
}

.inventory-page-toolbar input::placeholder {
  color: #9697a0;
}

.inventory-page-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding: 4px;
}

.owned-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.owned-item > button.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 14px 12px 12px;
}

.owned-item .card img {
  height: 100px;
  margin: 8px 0;
}

.owned-item .card .wear {
  color: #a2a3aa;
  font-size: 9px;
  letter-spacing: 0.6px;
}

.owned-item .card .weapon {
  color: #a2a3aa;
  font-size: 11px;
}

.owned-item .card .skin-name {
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}

.owned-item .card .price {
  margin-top: auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.owned-item .inventory-use {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  padding: 7px 8px;
  border: 1px solid #414735;
  border-radius: var(--radius-sm);
  background: #252b1b;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.inventory-restriction {
  margin: 8px 2px 0;
  color: #b5b6bd;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.owned-item button:hover:not(:disabled) .inventory-use,
.owned-item button:focus-visible .inventory-use {
  border-color: var(--accent);
  background: #30371e;
}

.inventory-notice {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: #a2a3aa;
  font-size: 13px;
  line-height: 1.7;
}

.inventory-notice summary {
  min-height: 44px;
  padding: 10px 0;
  color: #d2d3d8;
  font-weight: 700;
  cursor: pointer;
}

.inventory-notice p {
  max-width: 75ch;
  margin: 8px 0;
}

.wins-track::-webkit-scrollbar {
  display: none;
}

.wins-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}

.inventory-view :is(button, a, input, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.inventory-page-toolbar :is(input, select):focus-visible {
  border-color: var(--accent);
}

.inventory-view .how,
.inventory-view .text-button,
.inventory-view .toolbar button {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
}

@media (min-width: 701px) and (max-width: 1000px) {
  header { gap: 12px; }
  header nav { gap: 4px; }
  header nav a, header nav button { font-size: 12px; }
}

@media (max-width: 1000px) {
  .inventory-page-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .inventory-view { padding: 0 0 32px; }
  .inventory-page-heading { align-items: flex-start; gap: 16px; }
  .inventory-summary { padding: 16px; gap: 16px 28px; }
  .inventory-page-toolbar label { flex-basis: 140px; }
  .inventory-page-toolbar label:first-child { flex-basis: 100%; }
  .inventory-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .inventory-notice { padding: 12px 16px; }
}

@media (min-width: 701px) and (max-width: 1200px) {
  header nav {
    order: 5;
    flex: 1 0 100%;
    min-height: 44px;
    justify-content: center;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  dialog { padding: 28px 20px 20px; }
  .title-row { gap: 12px; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar select { flex: 1; }
  .source-switch { flex-wrap: wrap; }
  #stake { margin: 6px 0 0; }
  .account .steam-login-btn { padding: 10px 12px; font-size: 12px; gap: 8px; }
  .online-demo { margin-left: auto; }
}

/* Internal exchange uses a two-sided receipt, separate from upgrade selectors. */
#internalMarketDialog { max-width: 960px; }
#internalMarketBalance { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.market-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.market-tools .search { flex: 1 1 220px; }
.market-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.market-columns > section { min-width: 0; }
.market-columns h3 { margin-bottom: 4px; font-size: 16px; }
.market-columns section > p { margin-top: 0; }
.market-list { display: grid; gap: 10px; max-height: 480px; overflow-y: auto; padding: 4px; scrollbar-width: thin; }
.market-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; background: var(--panel); }
.market-item strong, .market-item small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.market-item strong { font-size: 13px; }
.market-item small { color: #a7a9b0; font-size: 11px; }
.market-item > span { font-weight: 800; font-variant-numeric: tabular-nums; }
.market-item button { min-height: 44px; }
.market-confirm { position: sticky; top: -1px; z-index: 2; margin: 16px 0; padding: 18px; border: 1px solid var(--accent); border-radius: var(--radius-md); background: #20251a; }
.market-confirm p { margin-top: 0; overflow-wrap: anywhere; }
.market-confirm .how { margin-top: 10px; min-height: 44px; }
#internalMarketStatus { min-height: 24px; overflow-wrap: anywhere; }
#internalMarketRetry, #internalMarketMore { min-height: 44px; margin-top: 12px; }
@media (max-width: 600px) {
  .market-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .market-list { max-height: 340px; }
  .market-item { padding: 12px; }
}

/* Inventory / shop stay beside the target catalog, directly under the upgrader. */
.catalog-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border-bottom: 1px solid rgba(220, 255, 94, 0.12);
  background: radial-gradient(ellipse 180px 48px at 48px 100%, rgba(220, 255, 94, 0.055), transparent 100%);
}
.catalog-tabs button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 11px;
  color: #a7a9b0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 800;
  border-radius: 8px 8px 0 0;
  transition: all var(--transition-base);
}
.catalog-tabs button:hover {
  color: #c8c9d0;
  background: rgba(220, 255, 94, 0.04);
}
.catalog-tabs button.selected {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: radial-gradient(ellipse at 50% 100%, rgba(220, 255, 94, 0.12), transparent 75%);
  box-shadow: none;
}
.catalog-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.catalog-tabs svg { width:24px; height:24px; }
.catalog-tabs span { position:absolute; right:1px; top:2px; min-width:16px; height:16px; padding:0 3px; margin:0; border-radius:9px; background:var(--accent); color:#111; font-size:9px; line-height:16px; }
.inline-market { min-width:0; }
.inline-market > h3 { margin:0 0 8px; font-size:16px; }
.inline-market > p { color:#a7a9b0; font-size:12px; line-height:1.6; }
.inline-market .market-tools { gap:8px; margin:12px 0; }
.inline-market .market-tools .search { flex-basis:160px; }
.inline-market .market-tools button { min-height:40px; font-size:11px; }
.inline-market .market-confirm { position:static; padding:12px; }
.inline-market .market-confirm p { font-size:12px; line-height:1.6; }
.inline-market .market-confirm .upgrade-button { width:100%; font-size:12px; min-height:44px; }
.market-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
.market-skin { display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:10px; min-width:0; }
.market-skin img { width:100%; height:72px; object-fit:contain; }
.market-skin strong { font-size:11px; line-height:1.45; }
.market-skin > span { margin-top:auto; font-size:12px; color:var(--accent); }
.market-skin button { width:100%; padding:8px 4px; font-size:11px; }
.market-sales { margin-top:18px; border-top:1px solid var(--line); padding-top:14px; }
.market-sales summary { cursor:pointer; font-size:13px; font-weight:700; }
.market-sales > p { font-size:12px; color:#a7a9b0; }
.market-sales .market-skin { display:grid; grid-template-columns:64px minmax(0,1fr) auto; }
.market-sales .market-skin img { grid-column:1; grid-row:1/5; height:64px; }
.market-sales .market-skin strong,.market-sales .market-skin small { grid-column:2/-1; }
.market-sales .market-skin small { word-break:break-word; }
.market-sales .market-skin > span { grid-column:2; }
.market-sales .market-skin button { grid-column:3; }
@media(max-width:1100px) { .market-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .catalog-tabs button { font-size:13px; } .market-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Compact catalog controls. Text labels remain available to assistive technology. */
.catalogs > .catalog > .catalog-tabs,
.catalogs > .catalog > .catalog-heading { min-height:50px; margin:0 0 12px; padding:0; box-sizing:border-box; }
.catalogs .toolbar,.catalogs .market-tools { min-height:44px; margin:0 0 12px; }
.price-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 12px; }
.price-toolbar .search { flex:1 1 100%; min-width:0; margin:0; }
.price-toolbar select { flex:1 1 85px; width:85px; }
.price-toolbar .min-price { flex:1 1 65px; width:65px; }
.icon-button,.catalog-pagination button { display:grid; place-items:center; flex:0 0 42px; width:42px; height:44px; padding:10px; background:#1b1d20; border:1px solid var(--line); border-radius:7px; color:#c6c9cc; }
.icon-button svg,.catalog-pagination svg { width:20px; height:20px; }
.icon-button:hover,.catalog-pagination button:hover:not(:disabled) { color:var(--accent); border-color:var(--accent); }
.icon-button:focus-visible,.catalog-pagination button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.catalog-pagination { display:flex; height:auto; justify-content:center; align-items:center; gap:12px; padding:14px 0 2px; }
.catalog-pagination span { min-width:48px; text-align:center; color:#969aa0; font-size:11px; font-variant-numeric:tabular-nums; }
.catalog-pagination button:disabled { opacity:.3; cursor:default; }
.inline-market .market-tools { margin:0 0 12px; }
.inline-market .market-tools .search { flex-basis:100%; }
#internalMarketStatus { margin:8px 0 12px; }

/* Shop cart: pick a card, adjust copies, buy the complete cart once. */
.market-skin.in-cart { border-color:var(--accent); background:linear-gradient(135deg,#dcff5e22,#161a12); }
.market-skin > .market-skin-select { display:flex; flex-direction:column; align-items:stretch; gap:8px; width:100%; height:100%; min-height:142px; padding:0; color:inherit; text-align:left; border:0; background:transparent; }
.market-skin-select strong { font-size:11px; line-height:1.45; }
.market-skin-select > span { margin-top:auto; color:var(--accent); font-size:12px; font-weight:800; }
.market-skin-select:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:4px; }
.cart-quantity { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:4px; border-radius:6px; background:var(--accent); color:#141810; font-weight:800; }
.cart-quantity button { width:28px; height:28px; min-height:28px; padding:0; border:0; border-radius:50%; background:#22291a; color:var(--accent); font-size:20px; line-height:1; }
.cart-quantity span { min-width:20px; text-align:center; font-size:13px; }
.cart-toggle { position:relative; }
.cart-toggle[aria-pressed="true"] { color:#141810; background:var(--accent); }
#marketCartBadge { position:absolute; right:-4px; top:-5px; min-width:17px; padding:2px 4px; border-radius:12px; font-size:10px; font-weight:800; background:var(--accent); color:#151810; border:1px solid #151810; }
.cart-checkout { display:flex; justify-content:flex-end; gap:8px; margin:12px 0; }
#marketCartBuy { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; min-width:145px; padding:10px 14px; border:1px solid var(--accent); border-radius:7px; background:var(--accent); color:#141810; font-size:14px; font-weight:800; }
#marketCartBuy svg { width:21px; height:21px; }
#marketCartCount { font-size:11px; min-width:18px; border-radius:10px; padding:2px 4px; background:#26301c; color:var(--accent); }
#marketCartBuy:disabled { opacity:.4; cursor:default; }
#marketCartBuy:focus-visible { outline:2px solid white; outline-offset:3px; }

/* Whole catalog pages: no inner scrolling or partially visible rows. */
.catalogs .cards { max-height:none; overflow:visible; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px; }
.catalogs .cards > .card,.catalogs .market-skin { height:218px; }
.catalogs .cards > .card { display:flex; flex-direction:column; }
.catalogs .cards > .card img { flex:0 0 100px; height:100px; }
.catalogs .cards > .card .price { margin-top:auto; }
.catalogs .market-skin { position:relative; padding-bottom:46px; }
.catalogs .market-skin-select { min-height:0; }
.catalogs .market-skin-select strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:32px; }
.catalogs .market-skin .cart-quantity { position:absolute; left:10px; right:10px; bottom:8px; }
.catalog-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:12px; min-height:44px; }
.catalog-bottom .catalog-pagination { padding:0; }
.catalog-bottom .cart-checkout { margin:0; gap:6px; }
.catalog-bottom .catalog-foot { display:flex; align-items:center; gap:8px; margin:0; min-width:0; }
.catalog-bottom .catalog-foot #catalogStatus:empty { display:none; }
.catalog-bottom .catalog-foot #retryCatalog { display:grid; place-items:center; width:42px; min-height:44px; padding:8px; font-size:22px; }
#mySkinsPanel > .catalog-pagination { padding-top:12px; }
#inventoryPrev,#inventoryNext { font-size:26px; }
#internalMarketStatus { margin:10px 0 0; font-size:12px; }
@media(max-width:1000px) { .catalogs .cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:400px) {
  .catalogs .cards { padding:6px; gap:6px; }
  .catalogs .cards > .card,.catalogs .market-skin { height:210px; padding-left:8px; padding-right:8px; }
  .catalog-bottom { justify-content:center; }
  #marketCartBuy { min-width:120px; padding:10px; gap:8px; font-size:12px; }
}

/* Account inventory: profile and balance above a compact, full-width collection. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.account-dashboard { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:16px; margin-bottom:24px; border:1px solid #3b3e40; border-radius:26px; background:linear-gradient(135deg,#303234,#242628); }
.profile-card { position:relative; min-width:0; padding:18px; border-radius:13px; background:#202224; }
.profile-identity { display:flex; align-items:flex-start; gap:14px; min-height:242px; }
.profile-identity > img { width:86px; height:86px; flex-shrink:0; border:4px solid #35392c; border-radius:13px; object-fit:cover; }
.profile-identity > div { min-width:0; padding-top:13px; }
.profile-identity strong { display:block; max-width:180px; margin-bottom:8px; overflow:hidden; text-overflow:ellipsis; font-size:14px; white-space:nowrap; }
#profileId { display:inline-block; max-width:180px; padding:3px 7px; border:1px solid #3b3e40; border-radius:4px; color:#96999d; font-size:11px; overflow-wrap:anywhere; }
#profileLogout { margin-left:8px; color:#ddd; font-size:20px; }
.profile-login { align-self:flex-end; color:var(--accent); font-size:12px; }
.profile-balance { display:flex; flex-direction:column; gap:12px; }
.profile-card-label { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#a7a9ad; font-size:13px; }
.profile-card-label svg { width:22px; height:22px; color:#777b7d; }
#profileBalance { margin-top:12px; font-size:32px; font-weight:850; letter-spacing:-1px; }
.profile-text-button { align-self:flex-start; padding:0; border:0; background:none; color:#a1a4a6; font-size:13px; }
.profile-primary { display:flex; justify-content:center; align-items:center; width:100%; min-height:44px; margin-top:auto; padding:12px; border:0; border-radius:8px; background:var(--accent); color:#171c12; font-size:14px; font-weight:800; }
.profile-statistics { display:grid; grid-template-rows:140px 1fr; gap:12px; min-width:0; }
.profile-best { overflow:hidden; background:linear-gradient(120deg,#222426 35%,#334023); }
.profile-best .profile-card-label { position:relative; z-index:1; }
.profile-best > strong { position:relative; z-index:1; display:block; max-width:53%; margin:17px 0 8px; font-size:11px; }
.profile-best strong small { display:block; margin-top:4px; font-size:14px; color:#fff; }
.profile-best > b { position:relative; z-index:1; color:var(--accent); font-size:13px; }
.profile-best > img { position:absolute; right:0; top:8px; width:48%; height:132px; object-fit:contain; }
.profile-best > p { font-size:12px; line-height:1.5; color:#909498; }
.profile-best-chance { position:absolute; top:12px; right:12px; z-index:2; padding:4px 6px; border-radius:4px; background:#3c4c2c; color:var(--accent); font-size:11px; font-weight:800; }
.profile-small-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.profile-small-stats .profile-card { padding:14px; }
.profile-small-stats span { display:flex; justify-content:space-between; gap:5px; color:#a7a9ad; font-size:12px; }
.profile-small-stats svg { width:20px; height:20px; }
.profile-small-stats strong { display:block; margin-top:10px; font-size:15px; }
.profile-small-stats b { display:block; margin-top:5px; color:var(--accent); font-size:14px; }
#profileUpgrades { color:var(--accent); font-size:23px; }
.profile-email { grid-column:1/-1; display:flex; align-items:center; gap:12px; padding:15px 16px; border-radius:13px; background:#1c1e20; }
.profile-email-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:7px; background:#333638; font-size:24px; }
.profile-email strong,.profile-email small { display:block; font-size:13px; }
.profile-email small { margin-top:5px; color:#85898b; font-size:12px; }
.profile-email button { margin-left:auto; min-height:40px; padding:10px 14px; border:0; border-radius:7px; background:#343638; color:#b3b7b9; font-size:12px; }
.profile-inventory-panel { min-height:250px; border:1px solid #26292c; border-radius:11px; background:#17191c; overflow:hidden; }
.profile-inventory-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; min-height:64px; padding:12px; background:#202226; }
.profile-tabs { display:flex; gap:4px; padding:3px; background:#191b1e; border-radius:8px; }
.profile-tabs button { display:flex; align-items:center; gap:6px; min-height:36px; padding:8px 12px; border:0; border-radius:5px; background:transparent; color:#858b8e; font-size:12px; }
.profile-tabs button.selected { color:#171c12; background:var(--accent); }
.profile-tabs svg { width:17px; height:17px; }
.profile-tabs span { font-size:10px; }
.profile-inventory-actions { display:flex; align-items:center; gap:14px; }
.profile-sale-filter { display:flex; align-items:center; gap:9px; font-size:12px; color:#a1a6a8; cursor:pointer; }
.profile-sale-filter input { position:absolute; opacity:0; width:1px; height:1px; }
.profile-sale-filter i { width:34px; height:20px; padding:2px; background:#383c3f; border-radius:12px; transition:background .2s; }
.profile-sale-filter i::before { content:''; display:block; width:16px; height:16px; border-radius:50%; background:#969c9f; transition:transform .2s; }
.profile-sale-filter input:checked+i { background:#657e32; }
.profile-sale-filter input:checked+i::before { transform:translateX(14px); background:var(--accent); }
.profile-sale-filter input:focus-visible+i { outline:2px solid var(--accent); outline-offset:3px; }
.profile-sell-all { min-height:40px; padding:9px 13px; border:1px solid var(--accent); border-radius:5px; background:transparent; color:var(--accent); font-size:12px; }
.profile-sell-all:disabled { opacity:.4; cursor:default; }
.profile-refresh { min-width:36px; min-height:36px; padding:5px; border:0; border-radius:5px; background:#2a2e30; color:#adb4b7; font-size:22px; }
.profile-inventory-meta { display:none; }
.profile-operation-status { margin:12px; padding:10px; border:1px solid #414937; border-radius:6px; color:#bfc9af; font-size:12px; line-height:1.5; }
.inventory-page-grid { grid-template-columns:repeat(auto-fill,minmax(120px,132px)); gap:10px; min-height:190px; padding:20px 12px; align-content:start; }
.inventory-page-grid .empty { grid-column:1/-1; }
.inventory-page-grid .owned-item { align-self:start; }
.inventory-page-grid .owned-item > button.card { height:160px; padding:10px 8px 8px; border-radius:5px 5px 0 0; }
.inventory-page-grid .owned-item .card img { width:100%; height:84px; margin:15px 0 5px; }
.inventory-page-grid .owned-item .card .price { position:absolute; top:8px; right:8px; margin:0; font-size:11px; color:var(--accent); }
.inventory-page-grid .owned-item .card .wear { top:27px; right:8px; left:auto; font-size:8px; }
.inventory-page-grid .owned-item .card .weapon { font-size:9px; }
.inventory-page-grid .owned-item .card .skin-name { font-size:11px; line-height:1.3; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.inventory-page-grid .owned-item .inventory-use { display:none; }
.profile-item-actions { display:grid; grid-template-columns:1fr 1fr; overflow:hidden; border:1px solid #30353a; border-top:0; border-radius:0 0 5px 5px; background:#222528; }
.profile-item-actions button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:42px; padding:7px 4px; border:0; border-right:1px solid #30353a; background:#25292b; color:#c7ccd0; font-size:10px; font-weight:800; letter-spacing:.1px; transition:background .15s,color .15s; }
.profile-item-actions button:last-child { border-right:0; }
.profile-item-actions button:hover:not(:disabled),.profile-item-actions button:focus-visible { background:#343b2a; color:var(--accent); }
.profile-item-actions button:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.profile-item-actions .profile-item-action-withdraw { color:var(--accent); }
.profile-item-actions button:disabled { opacity:.35; cursor:default; }
.profile-item-actions button span { white-space:nowrap; }
.inventory-page-grid .inventory-restriction { padding:6px; margin:0; border:0; font-size:9px; line-height:1.4; background:#202325; color:#9ca295; }
.profile-table-caption { padding:12px; color:#8e969a; font-size:11px; }
.profile-history-row { display:flex; align-items:center; gap:15px; min-height:68px; margin:0 12px; padding:10px 0; border-bottom:1px solid #2b2f32; font-size:12px; }
.profile-history-row > img { width:66px; height:48px; object-fit:contain; }
.profile-history-row > span:first-of-type { flex:1; }
.profile-history-row strong { display:block; margin-top:4px; color:#dce0e2; }
.profile-history-row time { margin-left:auto; color:#858e93; font-size:11px; }
.item-history-state { color:var(--accent); font-size:11px; }
.profile-payment-note { color:#8e969a; font-size:12px; }
.inventory-view :is(button,a):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media(max-width:1000px) { .account-dashboard { grid-template-columns:1fr 1fr; } .profile-statistics { grid-column:1/-1; grid-template-columns:1fr 1fr; grid-template-rows:auto; } .profile-identity { min-height:220px; } .profile-best { min-height:140px; } }
@media(max-width:700px) { .account-dashboard { grid-template-columns:1fr; padding:10px; border-radius:17px; } .profile-identity { min-height:130px; } .profile-balance { min-height:225px; } .profile-statistics { grid-template-columns:1fr; } .profile-email { padding:12px; gap:8px; } .profile-email small { max-width:150px; font-size:10px; } .profile-email button { padding:8px; } .profile-inventory-actions { width:100%; justify-content:space-between; gap:8px; } .profile-sale-filter { font-size:11px; } .profile-history-row { gap:8px; flex-wrap:wrap; } .profile-history-row time { font-size:10px; } .inventory-page-grid { grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); } }

.profile-item-actions svg { width:20px; height:20px; }

/* Upgrade history is a grid of stake-to-target pairs. Avatar remains the profile entry. */
.account #inventoryAvatar { display:flex; flex:0 0 auto; cursor:pointer; }
#inventoryAvatar[aria-current="page"] { border-color:var(--accent); box-shadow:0 0 0 2px #dcff5e22; }
#inventoryAvatar:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.upgrade-records { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:16px 12px; }
.upgrade-record { position:relative; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 20px; padding:12px; border-radius:15px; background:#202226; }
.upgrade-record-item { position:relative; min-width:0; height:140px; overflow:hidden; border:1px solid var(--rarity-color,#45505a); border-radius:6px; background:radial-gradient(ellipse at 50% 45%,rgba(var(--rarity-rgb,115,119,128),.17),transparent 75%),#16191d; }
.upgrade-record-item img { display:block; width:100%; height:110px; padding:12px 6px; object-fit:contain; }
.upgrade-item-name { position:absolute; left:6px; right:6px; bottom:5px; color:#a8b1b8; font-size:9px; line-height:1.3; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.upgrade-record-item.target .upgrade-item-name { bottom:28px; }
.upgrade-record-arrow { position:absolute; top:76px; left:50%; transform:translateX(-50%); color:#778078; font-size:18px; font-weight:800; }
.upgrade-target-price { position:absolute; top:6px; right:5px; padding:2px; border-radius:3px; background:#171c22cc; color:var(--accent); font-size:9px; font-weight:800; }
.upgrade-outcome { position:absolute; bottom:5px; left:5px; max-width:calc(100% - 10px); padding:4px 6px; border-radius:4px; font-size:9px; font-weight:700; }
.upgrade-outcome.win { color:#30d77b; background:#173d2b; }
.upgrade-outcome.loss { color:#ef6c65; background:#45292c; }
.upgrade-record-stake,.upgrade-record-chance { min-width:0; padding:9px 4px; border-radius:6px; background:#292c30; text-align:center; }
.upgrade-record small { display:block; margin-bottom:4px; color:#8c949b; font-size:9px; }
.upgrade-record strong { display:block; color:#eef1f2; font-size:12px; font-variant-numeric:tabular-nums; }
.upgrade-record-chance strong { color:var(--accent); }
.history-balance-icon { display:grid; place-items:center; height:112px; color:var(--accent); font-size:48px; font-weight:700; }
.upgrade-history-pagination { padding:0 0 16px; }
@media(max-width:1050px) { .upgrade-records { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .upgrade-records { grid-template-columns:1fr; } .upgrade-record-item { height:150px; } .upgrade-record-item img { height:120px; } .history-balance-icon { height:122px; } }

.catalog-heading h2 { min-width:0; letter-spacing:0; }
.catalog-heading .mini-label { flex-shrink:0; color:#a3a68f; letter-spacing:0; }
@media (max-width: 900px) {
  .catalog { padding:16px; }
  .catalog-heading .mini-label { display:none; }
}
.site-footer { display:block; max-width:none; margin:36px 0 0; padding:40px 4% 44px; background:#17191c; border-top:1px solid #292c30; }
.footer-inner { display:grid; grid-template-columns:1fr 1fr 1.25fr; gap:40px; max-width:1320px; margin:0 auto; align-items:start; }
.site-footer .brand { justify-content:flex-start; font-size:23px; }
.site-footer .brand-icon { font-size:32px; }
.footer-identity small { display:block; margin-top:15px; color:#666e74; font-size:11px; }
.footer-column { min-width:0; }
.footer-column h2 { margin:3px 0 16px; color:#777f85; font-size:14px; font-weight:600; letter-spacing:0; }
.footer-column a { display:block; width:fit-content; margin:0 0 12px; color:#b3bbc1; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.footer-column a:hover { color:var(--accent); }
.site-footer a:focus-visible,.legal-page a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.legal-page { background:#101112; color:#e6e8eb; }
.legal-content { width:100%; max-width:1240px; margin:0 auto; padding:30px 30px 80px; }
.legal-back { display:inline-flex; align-items:center; gap:10px; margin:0 0 20px; color:#969ca2; font-size:14px; }
.legal-back span { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#202225; color:#aab0b5; font-size:22px; }
.legal-back:hover { color:#fff; }
.legal-content > h1 { margin:0 0 34px; text-align:center; color:#f4f5f6; font-size:clamp(24px,3vw,32px); line-height:1.3; letter-spacing:-.5px; }
.legal-document { font-size:15px; line-height:1.85; overflow-wrap:anywhere; }
.legal-document :is(h2,h3,h4) { margin:30px 0 16px; color:#f0f1f3; font-size:19px; line-height:1.5; font-weight:750; letter-spacing:0; }
.legal-document p,.legal-document blockquote { margin:0 0 16px; padding:0; border:0; color:inherit; font-style:normal; }
.legal-document ul,.legal-document ol { margin:0 0 20px; padding-left:24px; }
.legal-document li { margin:4px 0; }
.legal-document a,.legal-contact a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.legal-contact { margin-top:38px; padding-top:20px; border-top:1px solid #292d30; color:#989fa4; font-size:14px; }
@media(max-width:700px) { .site-footer { padding:30px 20px; } .footer-inner { grid-template-columns:1fr; gap:24px; } .footer-column h2 { margin-bottom:12px; } .legal-content { padding:22px 18px 50px; } .legal-content > h1 { margin-bottom:25px; text-align:left; } .legal-document { font-size:14px; line-height:1.75; } .legal-document :is(h2,h3,h4) { font-size:17px; margin-top:25px; } }

/* Fixed daily leader beside the static live feed. */
.daily-top { flex: 0 0 220px; min-width: 0; border-right: 1px solid #414735; padding-right: 14px; }
.daily-top .win-preview { width: 100%; min-height: 88px; border-color: #777d3c; box-shadow: inset 0 0 18px #c3db4210; }
.daily-top .winner-chance { color: var(--accent); }
#demoWins { overflow: hidden; position: relative; padding-bottom: 0; }
@media (max-width: 700px) {
 .wins-strip { flex-wrap: wrap; gap: 10px; }
 .wins-label { width: 100%; min-width: 0; flex: 0 0 100%; border-right: 0; padding-left: 24px; }
 .wins-label strong br { display: none; }
  .daily-top { flex-basis: 150px; padding-right: 8px; }
 .daily-top .win-preview { grid-template-columns: 44px 1fr; gap: 5px; padding: 8px 5px; }
 .daily-top .win-preview img { width: 44px; height: 46px; }
 .daily-top .winner-chance { font-size: 8px; }
 #demoWins .win-preview { flex-basis: 168px; }
}

#profileTradeDialog { width:min(520px,calc(100vw - 32px)); }
#profileTradeForm { display:grid; gap:14px; }
#profileTradeForm p { margin:0; line-height:1.5; }
#profileTradeInput { width:100%; box-sizing:border-box; min-height:44px; padding:10px; border:1px solid #444; border-radius:8px; background:#17191b; color:#fff; }
#profileTradeMessage { color:#e7ba68; }
.profile-email button:not(:disabled) { cursor:pointer; color:#dfff69; }

/* Profile actions and readable, aligned catalog cards. */
.profile-email-icon svg { width:25px; height:25px; }
.inventory-page-grid .owned-item > .card { display:flex; flex-direction:column; height:168px; padding:10px 8px 8px; border-radius:5px 5px 0 0; cursor:default; text-align:left; }
.inventory-page-grid .owned-item > .card:hover { transform:none; border-color:var(--rarity-color); }
.inventory-page-grid .owned-item .card .wear { top:9px; left:8px; right:auto; font-size:10px; }
.inventory-page-grid .owned-item .card .weapon { font-size:11px; }
.inventory-page-grid .owned-item .card .skin-name { font-size:12px; }
.profile-item-actions { overflow:visible; }
.profile-item-actions button { position:relative; min-height:42px; }
.profile-item-actions button svg { width:22px; height:22px; flex-shrink:0; }
.profile-item-actions button:last-child { border-right:0; }
.profile-item-actions .action-tooltip { position:absolute; left:50%; bottom:calc(100% + 9px); z-index:10; transform:translate(-50%,5px); width:max-content; padding:8px 11px; border:1px solid #464c50; border-radius:7px; background:#252a2e; color:#fff; font-size:12px; line-height:1.3; font-weight:500; box-shadow:0 5px 18px #0005; pointer-events:none; opacity:0; visibility:hidden; transition:opacity .18s,transform .18s,visibility .18s; }
.profile-item-actions button:hover .action-tooltip,.profile-item-actions button:focus-visible .action-tooltip { opacity:1; visibility:visible; transform:translate(-50%,0); }
.profile-history-tools { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px; border-bottom:1px solid #303538; }
.profile-history-tools[hidden] { display:none; }
.profile-history-tools label { font-size:14px; color:#bfc6ca; }
.profile-history-tools select { min-width:160px; min-height:42px; padding:9px 12px; border:1px solid #41474b; border-radius:7px; background:#202426; color:#edf1f3; font-size:14px; }
.item-events { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:16px 12px; }
.item-event { display:flex; flex-direction:column; gap:12px; padding:16px; border:1px solid #34393e; border-bottom:2px solid var(--rarity-color); border-radius:10px; background:#202326; min-width:0; }
.item-event img { width:100%; height:120px; object-fit:contain; }
.item-event strong { display:block; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.item-event-status { display:block; margin:8px 0; font-size:13px; line-height:1.5; color:#d6eb9d; }
.item-event time { color:#aab2b8; font-size:12px; }
.item-event b { color:var(--accent); font-size:16px; }
.catalogs :is(select,input) { font-size:14px; line-height:1.45; color:#e1e5e8; min-height:44px; }
.catalogs input::placeholder { color:#9ca5ac; opacity:1; }
.catalogs :is(.catalog-pagination,.catalog-foot,.mini-label) { font-size:13px; color:#aeb8bd; }
.catalogs .cards { align-content:start; align-items:start; }
.catalogs .market-skin { box-sizing:border-box; height:218px; padding:10px; }
.catalogs .market-skin > .market-skin-select { box-sizing:border-box; flex:1; height:100%; min-height:0; display:flex; flex-direction:column; gap:6px; align-items:stretch; justify-content:flex-start; }
.catalogs .market-skin-select img { flex:0 0 100px; height:100px; margin:0; object-fit:contain; }
.catalogs .market-skin-select strong { flex:0 0 auto; min-height:34px; font-size:12px; line-height:1.4; }
.catalogs .market-skin-select > span { margin-top:auto; font-size:14px; padding-bottom:4px; }
.catalogs .market-skin.in-cart { padding-bottom:46px; }
.catalogs .market-skin.in-cart .market-skin-select img { flex-basis:70px; height:70px; }
.profile-refresh svg,#retryCatalog svg { width:23px; height:23px; }
.zone-hint { font-size:14px; line-height:1.5; color:#cbd2d7; margin:10px 0; }
.stage-bottom span { font-size:14px; line-height:1.6; font-weight:650; letter-spacing:1px; color:#bdc8a9; }
.machine .step { font-size:13px; color:#afb9c2; }
.source-switch button,.target-presets button { font-size:14px; min-height:42px; }
#result:empty { visibility:hidden; }
@media(max-width:800px) { .item-events { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) { .item-events { grid-template-columns:1fr; } .catalogs :is(select,input) { font-size:13px; } .zone-hint { font-size:13px; } .source-switch button,.target-presets button { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { .profile-item-actions .action-tooltip { transition:none; } }

.inventory-page-grid .owned-item .card .wear { position:absolute; }
.inventory-page-grid .owned-item .card img { flex:0 0 78px; height:78px; margin:18px 0 6px; }
.inventory-page-grid .owned-item .card .weapon { flex:0 0 auto; }
.inventory-page-grid .owned-item .card .skin-name { flex:0 0 auto; margin:3px 0 0; }

/* Shop and upgrade catalog share the same card anatomy. */
.catalogs .market-skin { height:218px; padding:0; border:0; background:none; gap:0; }
.catalogs .market-skin > .market-skin-select.card { position:relative; display:flex; flex-direction:column; align-items:stretch; gap:0; height:218px; padding:12px 11px 10px; border:1px solid #35373d; border-bottom:2px solid var(--rarity-color); border-radius:8px; background:radial-gradient(ellipse at 50% 40%,rgba(var(--rarity-rgb),.12),transparent 70%),#1d1f22; }
.catalogs .market-skin-select.card img { flex:0 0 100px; height:100px; margin:2px 0; }
.catalogs .market-skin-select.card .wear { font-size:10px; color:#a2a3aa; }
.catalogs .market-skin-select.card .weapon { color:#a2a3aa; font-size:11px; }
.catalogs .market-skin-select.card .skin-name { display:block; margin:3px 0 8px; font-size:12px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catalogs .market-skin-select.card .price { margin-top:auto; padding:0; color:#f2f4f5; font-size:14px; font-weight:800; }
.catalogs .market-skin-select.card.selected { border-color:var(--accent); border-bottom-color:var(--rarity-color); background:radial-gradient(ellipse at center,rgba(var(--rarity-rgb),.18),transparent 80%),#24281f; }
.catalogs .market-skin.in-cart { height:260px; padding:0 0 42px; }
.item-event-status.is-waiting { color:#f3a44b; }
.item-event-status.is-sent { color:var(--accent); }

.catalogs .market-skin-select.card .skin-name { color:#f2f4f5; }
.catalogs .market-skin-select.card :is(.wear,.weapon,.tick) { margin-top:0; }

/* Fixed-size checkbox contents, unaffected by generic shop span typography. */
.catalogs .market-skin-select.card .tick { box-sizing:border-box; display:grid; place-items:center; width:15px; height:15px; padding:0; margin:0; font-size:10px; line-height:1; font-weight:700; }
#zoneControl { transition:none; }
#chanceArc { transition:none; }
.zone-dragging .zone-handle { transform:translate(-50%,-50%); transition:none; }
.profile-tabs button { font-size:14px; line-height:1.5; padding:10px 14px; min-height:42px; color:#b9c1c7; }
.profile-tabs button.selected { color:#151a10; }
.profile-tabs span { font-size:12px; }
@media(max-width:500px) { .profile-tabs button { font-size:13px; padding:9px 10px; } }

#zoneHint.outcome-win { color:#91ed74; font-size:17px; font-weight:750; }
#zoneHint.outcome-loss { color:#ff7474; font-size:17px; font-weight:750; }
.spin-settings-button { position:absolute; top:14px; right:16px; z-index:6; display:grid; place-items:center; width:38px; height:38px; border:1px solid #3c4345; border-radius:8px; background:#202427; color:#b8c1c5; cursor:pointer; }
.spin-settings-button:hover,.spin-settings-button:focus-visible { color:var(--accent); border-color:var(--accent); }
.spin-settings-button svg { width:23px; height:23px; }
.spin-settings-button:disabled { opacity:.4; cursor:default; }
#spinSettingsDialog { width:min(420px,calc(100vw - 32px)); }
#spinSettingsForm { display:grid; gap:15px; }
#spinSettingsForm h2 { margin:0 0 5px; }
#spinSettingsForm label { font-size:15px; color:#e1e7e9; }
#spinDurationInput { width:100%; min-height:44px; padding:10px 12px; border:1px solid #454d50; border-radius:7px; background:#181c1e; color:#fff; font-size:16px; box-sizing:border-box; }
#spinSettingsForm small { color:#aab4bb; line-height:1.5; font-size:13px; }
.spin-sound-option { display:flex; align-items:center; gap:10px; line-height:1.5; }
.spin-sound-option input { width:18px; height:18px; accent-color:var(--accent); }
.spin-settings-actions { display:flex; gap:10px; justify-content:flex-end; }
.spin-settings-actions button { min-height:42px; padding:10px 16px; border:1px solid #454d50; border-radius:7px; background:#292f32; color:#fff; font-size:14px; cursor:pointer; }
.spin-settings-actions button[type=submit] { background:var(--accent); color:#19200f; font-weight:700; }
#spinSettingsMessage:empty { display:none; }
#result:empty { display:none; }
