.arcade-3d-shell {
  --arcade-accent: #74eaff;
  --arcade-accent-2: #ffe66e;
  overflow: hidden;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--arcade-accent) 38%, transparent);
  border-radius: 26px;
  background: linear-gradient(160deg, #172033, #080b13 75%);
  box-shadow: 0 28px 80px #0008, 0 0 45px color-mix(in srgb, var(--arcade-accent) 14%, transparent);
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.arcade-3d-shell[data-game="aura"] { border-radius: 34px 34px 18px 18px; background: linear-gradient(160deg,#073849,#06111d 72%); }
.arcade-3d-shell[data-game="aura"] .arcade-3d-hero { background: radial-gradient(circle at 8% 40%,#42e8ff32,transparent 44%),linear-gradient(110deg,#071926,#103a51); }
.arcade-3d-shell[data-game="chumpgrab"] { border-color:#ffcf625f; background:linear-gradient(160deg,#3c1d13,#100a0b 76%); }
.arcade-3d-shell[data-game="chumpgrab"] .arcade-3d-hero { background:radial-gradient(circle at 12% 40%,#ffca4135,transparent 42%),linear-gradient(110deg,#35160e,#16101b); }
.arcade-3d-shell[data-game="gummyrush"] { border-radius:38px; background:linear-gradient(155deg,#39184d,#10122e 76%); }
.arcade-3d-shell[data-game="gummyrush"] .arcade-3d-hero { background:radial-gradient(circle at 10% 35%,#ff68ba45,transparent 43%),linear-gradient(110deg,#40164d,#182351); }
.arcade-3d-shell[data-game="gummyrush"] .arcade-3d-primary,
.arcade-3d-shell[data-game="gummyrush"] .arcade-3d-touch button { border-radius:999px; }
.arcade-3d-shell[data-game="glitchwalk"] { border-radius:8px; border-color:#70ffcd6b; background:linear-gradient(150deg,#071e1c,#04030e 70%); clip-path:polygon(0 0,97% 0,100% 3%,100% 100%,3% 100%,0 97%); }
.arcade-3d-shell[data-game="glitchwalk"] .arcade-3d-hero { background:repeating-linear-gradient(90deg,#0c1421 0,#0c1421 38px,#0a2924 39px,#0a2924 40px); }
.arcade-3d-shell[data-game="glitchwalk"] .arcade-3d-primary { border-radius:2px; box-shadow:5px 5px 0 #a45cff; }
.arcade-3d-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  background: radial-gradient(circle at 10% 30%, color-mix(in srgb, var(--arcade-accent) 18%, transparent), transparent 50%), #101523;
}
.arcade-3d-logo { width: 94px; height: 94px; object-fit: cover; flex: 0 0 94px; border-radius: 20px; box-shadow: 0 12px 30px #0009; }
.arcade-3d-eyebrow { color: var(--arcade-accent); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.arcade-3d-hero h1 { margin: 5px 0 6px; font-size: clamp(25px, 3vw, 38px); line-height: 1.05; font-weight: 900; letter-spacing: -.045em; }
.arcade-3d-hero p { max-width: 650px; margin: 0; color: #ffffffaa; font-size: 13px; line-height: 1.5; }
.arcade-3d-start { display: flex; align-items: center; gap: 12px; padding: 15px 22px; background: #0d111b; border-top: 1px solid #ffffff12; }
.arcade-3d-start label { color: #ffffff9a; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.arcade-3d-start select { min-height: 44px; padding: 0 14px; border: 1px solid #ffffff24; border-radius: 10px; background: #202838; color: #fff; font-size: 13px; font-weight: 800; }
.arcade-3d-primary { margin-left: auto; min-height: 46px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--arcade-accent); color: #061017; font-size: 13px; font-weight: 900; cursor: pointer; }
.arcade-3d-sound { min-height: 44px; padding: 0 15px; border: 1px solid #ffffff33; border-radius: 11px; background: #263449; color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; cursor: pointer; }
.arcade-3d-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 10px 14px; background: #070a12; }
.arcade-3d-hud > div { min-width: 0; padding: 11px 13px; border: 1px solid #ffffff18; border-radius: 11px; background: #ffffff0b; }
.arcade-3d-hud span { display: block; color: #ffffff8c; font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.arcade-3d-hud strong { display: block; overflow: hidden; margin-top: 3px; color: var(--arcade-accent); font-size: clamp(17px, 2vw, 25px); white-space: nowrap; text-overflow: ellipsis; }
.arcade-3d-stage { position: relative; height: clamp(510px, 55vw, 650px); overflow: hidden; background: #121932; }
.arcade-3d-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.arcade-3d-overlay { position: absolute; left: 50%; top: 50%; width: min(420px, calc(100% - 36px)); transform: translate(-50%, -50%); padding: 24px; border: 1px solid #ffffff38; border-radius: 19px; background: #07101fd9; box-shadow: 0 18px 60px #0009; text-align: center; backdrop-filter: blur(10px); pointer-events: none; }
.arcade-3d-overlay[hidden] { display: none; }
.arcade-3d-overlay h2 { margin: 0 0 8px; color: var(--arcade-accent-2); font-size: 27px; font-weight: 900; }
.arcade-3d-overlay p { color: #ffffffe0; font-size: 14px; }
.arcade-3d-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; padding: 12px 17px; border-top: 1px solid #ffffff14; background: #080b13; }
.arcade-3d-control-note { color: #ffffffe0; font-size: 13px; line-height: 1.4; font-weight: 700; }
.arcade-3d-touch { display: flex; gap: 7px; }
.arcade-3d-touch button { width: 54px; height: 50px; border: 1px solid #ffffff26; border-radius: 11px; background: #263449; color: #fff; font-size: 24px; font-weight: 900; touch-action: none; cursor: pointer; }
.arcade-3d-touch button:active { background: var(--arcade-accent); color: #071017; }
.arcade-3d-result { padding: 22px; border-top: 1px solid #ffffff20; text-align: center; background: #0e1320; }
.arcade-3d-result[hidden] { display: none; }
.arcade-3d-result h2 { color: var(--arcade-accent-2); font-size: 20px; font-weight: 900; letter-spacing: .12em; }
.arcade-3d-final { font-size: 48px; font-weight: 900; color: var(--arcade-accent); }
.arcade-3d-result p { font-size: 13px; color: #ffffffb4; }
.arcade-3d-submit, .arcade-3d-result-actions { display: flex; justify-content: center; gap: 9px; max-width: 520px; margin: 14px auto 0; }
.arcade-3d-submit input { min-width: 0; flex: 1; padding: 10px 13px; border: 1px solid #ffffff26; border-radius: 10px; background: #080b12; color: #fff; font-size: 15px; user-select: text; -webkit-user-select: text; }
.arcade-3d-result button { min-height: 46px; padding: 9px 18px; border: 0; border-radius: 10px; background: var(--arcade-accent); color: #071017; font-size: 13px; font-weight: 900; cursor: pointer; }
.arcade-3d-result-actions button { flex: 1; }
.arcade-3d-result-actions button:first-child { background: #283c56; color: #fff; }
.arcade-3d-shell:fullscreen { width: 100vw !important; height: 100vh !important; border: 0; border-radius: 0; overflow: auto; }
.arcade-3d-shell:fullscreen .arcade-3d-stage { height: max(340px, calc(100vh - 170px)); }
.arcade-3d-shell:fullscreen .arcade-3d-hero, .arcade-3d-shell:fullscreen .arcade-3d-start { display: none; }
.arcade-3d-shell:fullscreen .arcade-3d-hud { padding: 5px; }
.arcade-3d-shell:fullscreen .arcade-3d-hud > div { padding: 5px 9px; }
@media (max-width: 760px) {
  .arcade-3d-hero { padding: 16px; gap: 13px; }
  .arcade-3d-logo { width: 70px; height: 70px; flex-basis: 70px; border-radius: 15px; }
  .arcade-3d-hero h1 { font-size: 25px; }
  .arcade-3d-hero p { font-size: 11px; }
  .arcade-3d-start { flex-wrap: wrap; }
  .arcade-3d-primary { flex: 1 0 100%; }
  .arcade-3d-sound { margin-left: auto; }
  .arcade-3d-stage { height: 440px; }
  .arcade-3d-hud { gap: 4px; padding: 6px; }
  .arcade-3d-hud > div { padding: 7px; }
  .arcade-3d-hud span { font-size: 8px; }
  .arcade-3d-hud strong { font-size: 16px; }
  .arcade-3d-controls { display: block; }
  .arcade-3d-control-note { margin-bottom: 9px; font-size: 12px; }
  .arcade-3d-touch { display: grid; grid-template-columns: repeat(4, 1fr); }
  .arcade-3d-touch button { width: 100%; height: 52px; }
}
