@property --glow { syntax: '<color>'; inherits: true; initial-value: #b9a2dc; }
:root {
  --glow: #b9a2dc;
  --ink: #f3ead8; --muted: #b8a991; --dim: #8c7f6e;
  --gold: #ffc83a; --gold2: #ffe48a; --red: #e2210f;
  --led: #ffb547;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --dot: 'Doto', ui-monospace, Menlo, Consolas, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --ls: 1;         --s: 2;          --gs: 3;         --om: 12px;      --bz: 54px;      --wall: 34px;    --edge: 22px;    --roof: 12px;    transition: --glow .7s ease;
  color-scheme: dark;
}
[hidden] { display: none !important; }
html[data-skin=arcade] { background: #050305; -webkit-text-size-adjust: 100%; }
html[data-skin=arcade] body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased;
  --pw: calc(320px * var(--s)); --ph: calc(200px * var(--s));
  --cw: calc(var(--pw) + 2 * (var(--om) + var(--bz) + var(--wall) + var(--edge)));
  background:
    radial-gradient(60% 320px at 50% 0, rgba(255, 64, 12, .26), transparent 72%),
    radial-gradient(42% 44% at 50% 38%, color-mix(in srgb, var(--glow) 14%, transparent), transparent 74%),
    linear-gradient(90deg, rgba(0, 0, 0, .5), transparent 24%, transparent 76%, rgba(0, 0, 0, .5)),
    linear-gradient(#0c080b, #070507 60%, #0a0608);
}
html[data-skin=arcade][data-st=game] body { --s: var(--gs); --om: 10px; --bz: 18px; --wall: 20px; --edge: 18px; --roof: 6px; }
.room a { color: inherit; }
.px { image-rendering: pixelated; }
html[data-skin=arcade] :focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; border-radius: 6px; }

.room { position: relative; overflow-x: clip; min-height: 100vh; padding: 10px 16px 0; display: flex; flex-direction: column; align-items: center; }
.nb { position: absolute; top: 56px; width: 560px; height: 1180px; pointer-events: none; filter: blur(2px) brightness(.8);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); }
.nb-l { right: calc(50% + var(--cw) / 2 + 150px); }
.nb-r { left: calc(50% + var(--cw) / 2 + 150px); }
.nb::before { content: ''; position: absolute; inset: 0; border-radius: 10px 10px 0 0; background: var(--noise), linear-gradient(90deg, #0e0c10, #1a171d 50%, #0e0c10); box-shadow: 0 0 0 2px #000; }
.nb i { position: absolute; left: 30px; right: 30px; display: block; border-radius: 4px; }
.nb .m { top: 12px; height: 120px; background: radial-gradient(60% 90% at 50% 50%, var(--c1), var(--c2) 72%, #05030a); opacity: .75; }
.nb .m::after { content: ''; position: absolute; inset: -90px -60px; background: radial-gradient(closest-side, var(--c1), transparent); opacity: .22; }
.nb .s { top: 180px; height: 400px; left: 64px; right: 64px; border-radius: 24px; background: radial-gradient(70% 70% at 50% 45%, var(--c3), #04050a 82%); box-shadow: 0 0 0 6px #050407, 0 0 80px var(--c3); }
.nb .p { top: 620px; height: 150px; left: -30px; right: -30px; background: linear-gradient(#1d1a20, #0c0b0e); }
.nb-l { --c1: #22c8b8; --c2: #0a3f5c; --c3: rgba(70, 120, 255, .33); }
.nb-r { --c1: #c84bff; --c2: #3e0b5c; --c3: rgba(255, 110, 190, .26); }

html[data-skin=arcade] .cab { position: relative; z-index: 1; width: var(--cw); max-width: 100%; padding: 0; display: flex; flex-direction: column; align-items: center; }
.sides { position: relative; width: var(--cw); max-width: 100%;
  background:
    linear-gradient(90deg, #3a0603 0 2px, #e2381c 2px 4px, #ff8a5a 4px 5px, #a01608 5px 7px, #1a0201 7px 8px, transparent 8px calc(100% - 8px), #1a0201 calc(100% - 8px) calc(100% - 7px), #a01608 calc(100% - 7px) calc(100% - 5px), #ff8a5a calc(100% - 5px) calc(100% - 4px), #e2381c calc(100% - 4px) calc(100% - 2px), #3a0603 calc(100% - 2px)),
    var(--noise),
    linear-gradient(90deg, #0c0a0d, #17141a 12%, #121014 50%, #17141a 88%, #0c0a0d); }

.mq { position: relative; z-index: 2; width: calc(var(--cw) + 26px); max-width: calc(100vw - 8px); }
.mq-box { position: relative; padding: 9px 12px 11px; border-radius: 12px 12px 3px 3px;
  background: linear-gradient(#2a262d, #0f0d10 34%, #08070a), var(--noise);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 26px rgba(0, 0, 0, .75), 0 -10px 160px rgba(255, 60, 10, .3); }
.mq-box::before, .mq-box::after { content: ''; position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 2px; z-index: 2;
  background: linear-gradient(90deg, #555, #e8e8ea 20%, #8a8a90 50%, #f4f4f6 80%, #555); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.mq-box::before { top: 7px; } .mq-box::after { bottom: 9px; }
.mq-glass { position: relative; overflow: hidden; height: 150px; border-radius: 2px;
  display: grid; grid-template-columns: 1fr auto auto auto 1fr; grid-template-areas: "brand sl logo sr sub"; align-items: center; column-gap: 16px; padding: 0 24px;
  background:
    radial-gradient(28% 60% at 50% 50%, rgba(255, 226, 140, .6), transparent 72%),
    radial-gradient(72% 150% at 50% 50%, #ff6a1c 0%, #e0300c 28%, #9c1006 58%, #3e0402 92%, #250201 100%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55), inset 0 0 46px rgba(0, 0, 0, .7); }
.mq-art, .mq-art::after { position: absolute; inset: 0; pointer-events: none; }
.mq-art { background: repeating-conic-gradient(from 0deg at 50% 54%, rgba(255, 236, 170, .16) 0 3deg, transparent 3deg 11deg);
  -webkit-mask-image: radial-gradient(46% 110% at 50% 54%, #000 10%, transparent 92%); mask-image: radial-gradient(46% 110% at 50% 54%, #000 10%, transparent 92%); }
.mq-art::after { content: ''; background: radial-gradient(circle, rgba(30, 0, 0, .6) 1.3px, transparent 1.8px) 0 0/6px 6px;
  -webkit-mask-image: radial-gradient(60% 120% at 50% 54%, transparent 30%, #000 85%); mask-image: radial-gradient(60% 120% at 50% 54%, transparent 30%, #000 85%); }
.mq-glass::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(172deg, rgba(255, 255, 255, .2) 0, rgba(255, 255, 255, .06) 34%, transparent 34.5%), linear-gradient(transparent 70%, rgba(0, 0, 0, .28)); }
.mq-logo { grid-area: logo; margin: 0; line-height: 0; position: relative; z-index: 1; }
.logo { display: block; width: calc(214px * var(--ls)); height: calc(140px * var(--ls)); filter: drop-shadow(0 2px 0 rgba(50, 0, 0, .7)) drop-shadow(0 0 16px rgba(255, 190, 80, .35)); }
.mq-brand { grid-area: brand; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.plate { display: block; width: 240px; height: 32px; filter: drop-shadow(0 2px 0 rgba(40, 0, 0, .75)); }
.mq-line { display: none; grid-area: brand; width: 218px; height: 34px; position: relative; z-index: 1; filter: drop-shadow(0 1px 0 rgba(40, 0, 0, .8)); }
.mq-games { font: 800 21px/1 var(--display); letter-spacing: .78em; margin-right: -.78em; text-transform: uppercase;
  background: linear-gradient(#ffffff, #c9c9cf 45%, #76767e 55%, #e9e9ee); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(50, 0, 0, .75)); }
.mq-sub { grid-area: sub; justify-self: start; margin: 0; position: relative; z-index: 1; text-transform: uppercase; text-align: center;
  font: 900 38px/.9 var(--display); letter-spacing: .02em; color: #ffd75a;
  background: linear-gradient(#fff6c8 8%, #ffd447 40%, #ff9a1a 72%, #ffcf4a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #3a0301) drop-shadow(0 0 1px #3a0301); }
.mq-sub span { display: block; font-size: .63em; letter-spacing: .09em; margin-top: 5px; white-space: nowrap; }
.spr { position: relative; z-index: 1; align-self: end; margin-bottom: 9px; filter: drop-shadow(0 0 1px rgba(40, 0, 0, .9)) drop-shadow(0 6px 4px rgba(40, 0, 0, .6)); }
.spr-l { grid-area: sl; width: calc(50px * var(--ls)); height: calc(103px * var(--ls)); }
.spr-r { grid-area: sr; transform: scaleX(-1); width: calc(54px * var(--ls)); height: calc(96px * var(--ls)); }

.spk { height: 28px; display: flex; align-items: center; gap: 22px; padding: 0 calc(var(--edge) + 26px); }
.grille { flex: 1; height: 12px; border-radius: 3px;
  background: radial-gradient(circle, #030203 1.4px, transparent 1.9px) 0 0/6px 6px, linear-gradient(#36323a, #1a181c);
  box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, .07); }
.badge { display: block; padding: 3px 6px; border-radius: 3px; background: #0c0c0c; box-shadow: 0 0 0 1px #000, 0 0 0 2px #5a5a60, 0 0 0 3px #111, 0 0 14px rgba(255, 220, 40, .22); }
.badge img { display: block; width: 210px; height: 20px; }

.recess { display: flex; justify-content: center; padding: var(--roof) calc(var(--edge) + var(--wall)) 8px; }
.recess::before, .recess::after { content: ''; position: absolute; top: 0; bottom: 0; width: var(--wall);
  background: linear-gradient(90deg, #060507, color-mix(in srgb, var(--glow) 11%, #151117)), var(--noise);
  -webkit-clip-path: polygon(0 0, 100% var(--roof), 100% calc(100% - 8px), 0 100%); clip-path: polygon(0 0, 100% var(--roof), 100% calc(100% - 8px), 0 100%); }
.recess::before { left: var(--edge); }
.recess::after { right: var(--edge); transform: scaleX(-1); }
.recess .roof { position: absolute; left: var(--edge); right: var(--edge); top: 0; height: var(--roof); background: linear-gradient(#020102, #0d0b0e);
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - var(--wall)) 100%, var(--wall) 100%); clip-path: polygon(0 0, 100% 0, calc(100% - var(--wall)) 100%, var(--wall) 100%); }
.bezel { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 12px var(--bz) 0; border-radius: 5px;
  background:
    radial-gradient(110% 70% at 22% 0, rgba(255, 255, 255, .075), transparent 46%),
    radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--glow) 10%, transparent), transparent 80%),
    linear-gradient(#0d0c0e, #070607);
  box-shadow: 0 0 0 2px #020102, inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(255, 255, 255, .03); }
.bezel::before { content: ''; position: absolute; inset: 6px calc(var(--bz) - 16px) 6px; border-radius: 34px/30px; pointer-events: none; border: 1px solid rgba(255, 190, 60, .22); }
.bz-band { margin: 0; height: 30px; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  font: 800 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #c79a5c; }
.bz-band::before, .bz-band::after { content: ''; width: 34px; height: 1px; margin: 0 14px; background: linear-gradient(90deg, transparent, #a8865a); }
.bz-band::after { transform: scaleX(-1); }

.crt { position: relative; width: calc(var(--pw) + 2 * var(--om)); min-height: calc(var(--ph) + 2 * var(--om)); padding: var(--om) 0;
  display: flex; align-items: center; justify-content: center; border-radius: 30px/26px; background: #020202; overflow: hidden;
  box-shadow: inset 0 0 26px 8px rgba(0, 0, 0, .95), 0 0 0 3px #000, 0 0 0 5px #222026, 0 0 0 6px #000, 0 0 60px color-mix(in srgb, var(--glow) 34%, transparent); }
.crt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 30;
  background: radial-gradient(120% 90% at 28% 8%, rgba(255, 255, 255, .07), transparent 40%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }

html[data-skin=arcade] body:not(.tc-play) #stage { position: relative; flex: none; width: var(--pw); height: auto; min-height: var(--ph); max-width: none;
  aspect-ratio: auto; margin: 0; border: 0; border-radius: 14px/12px; overflow: hidden; background: #000;
  box-shadow: 0 0 30px color-mix(in srgb, var(--glow) 30%, transparent); }
html[data-skin=arcade][data-st=game] body:not(.tc-play) #stage { height: var(--ph); border-radius: 0; box-shadow: none; }
html[data-skin=arcade] body:not(.tc-play) #cover { position: relative; inset: auto; z-index: 10; display: block; width: 100%; min-height: var(--ph);
  padding: 0; gap: 0; overflow: visible; border-radius: 0; background: #000; text-align: left; }
html[data-skin=arcade] body:not(.tc-play) #cover[hidden] { display: none !important; }
html[data-skin=arcade] #stage:fullscreen { width: 100vw; height: 100vh; min-height: 0; border-radius: 0; box-shadow: none; }
html[data-skin=arcade] #stage:-webkit-full-screen { width: 100vw; height: 100vh; min-height: 0; border-radius: 0; box-shadow: none; }

.pic { position: relative; width: var(--pw); height: var(--ph); overflow: hidden; background: #000; transition: filter .3s; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: saturate(1.12) contrast(1.04); }
.pic::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;    background: repeating-linear-gradient(rgba(0, 0, 0, 0) 0 calc(var(--s) * .5px), rgba(0, 0, 0, .3) calc(var(--s) * .5px) calc(var(--s) * 1px)); }
.pic::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 58%, rgba(0, 0, 0, .55) 100%), linear-gradient(rgba(255, 255, 255, .035), transparent 30%, transparent 70%, rgba(255, 255, 255, .02)); }
.pic .flash { position: absolute; inset: 0; z-index: 4; background: #eef4ff; opacity: 0; pointer-events: none; }
.pic.cut img { animation: arc-cut .26s linear; }
.pic.cut .flash { animation: arc-flash .26s ease-out; }
.pic.roll img { animation: arc-roll .24s steps(6, end); }
.pic.roll .flash { animation: arc-flash .2s ease-out; }
@keyframes arc-cut { 0% { clip-path: inset(0); filter: saturate(1.12) contrast(1.04); } 22% { clip-path: inset(47.5% 0); filter: brightness(3.5); } 34% { clip-path: inset(49.5% 0); filter: brightness(6); } 58% { clip-path: inset(0); transform: translateY(-3%); filter: brightness(1.7); } 78% { transform: translateY(1%); filter: brightness(1.15); } 100% { clip-path: inset(0); transform: none; filter: saturate(1.12) contrast(1.04); } }
@keyframes arc-roll { 0% { transform: translateY(0); } 40% { transform: translateY(-22%); filter: brightness(1.6); } 41% { transform: translateY(24%); } 100% { transform: translateY(0); filter: none; } }
@keyframes arc-flash { 0% { opacity: 0; } 25% { opacity: .5; } 100% { opacity: 0; } }
@keyframes arc-pwr { 0% { clip-path: inset(49.7% 2%); filter: brightness(8); } 35% { clip-path: inset(49.4% 0); filter: brightness(5); } 100% { clip-path: inset(0); filter: none; } }
html.arc-pwr #stage > .dos { animation: arc-pwr .42s cubic-bezier(.2, .7, .2, 1); }

html:not([data-st=start]) .pic { position: absolute; inset: 0; width: auto; height: auto; filter: brightness(.42) saturate(.7); }
html:not([data-st=start]) .pic img { object-fit: cover; }
.osd { display: none; position: relative; z-index: 2; width: var(--pw); min-height: var(--ph); padding: 14px 16px; flex-direction: column; justify-content: center; align-items: center; font-family: var(--display); }
html[data-st=friend] .osd, html[data-st=opponent] .osd, html[data-st=invite] .osd, html[data-st=challenge] .osd { display: flex; }
.osd-pane, html[data-skin=arcade] .osd .dl-pick, html[data-skin=arcade] .osd .dl-card { position: relative; width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px 26px; margin: 0; border: 0; border-radius: 8px;
  background: radial-gradient(90% 80% at 50% 30%, rgba(14, 18, 46, .94) 0, rgba(4, 5, 14, .96) 80%);
  box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(255, 226, 58, .55), 0 0 0 6px #000, 0 0 24px rgba(255, 226, 58, .18), 0 12px 30px rgba(0, 0, 0, .7); }
html[data-skin=arcade] .osd .invite { max-width: 500px; padding: 24px 28px 14px; align-items: stretch; }
.osd-h { margin: 0; text-align: center; font: 900 26px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #ffe23a; text-shadow: 0 2px 0 #b01204, 0 0 14px rgba(255, 200, 40, .45); }
html[data-skin=arcade] .invite .invite-text { max-width: none; font-size: 24px; line-height: 1.05; color: #ffe23a; text-wrap: balance; }
.invite-note { margin: -4px 0 0; text-align: center; font: 600 14px/1.35 var(--body); color: #a9b8ff; }
.obtn, html[data-skin=arcade] .osd .dl-go { appearance: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 70px; padding: 8px 16px; border-radius: 6px;
  font: 900 31px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #251000;
  background: linear-gradient(#fff3a0, #ffd23a 45%, #f39c00);
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #ffd23a, 0 0 0 6px #000, 0 0 26px rgba(255, 200, 40, .55), inset 0 -4px 0 rgba(150, 60, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .7); }
.obtn small { font: 700 16px/1.1 var(--body); letter-spacing: 0; text-transform: none; color: #4a2600; }
html[data-skin=arcade] .obtn:not(:disabled):hover, html[data-skin=arcade] .osd .dl-go:not(:disabled):hover { filter: brightness(1.08); }
.obtn:not(:disabled):active, html[data-skin=arcade] .osd .dl-go:not(:disabled):active { transform: translateY(2px); }
.obtn:disabled { opacity: .5; cursor: default; }
html[data-skin=arcade] .osd .dl-go { color: #fff8e8; background: linear-gradient(#ff8a6a, #ff3a1a 42%, #c01206); text-shadow: 0 2px 0 #6a0603;
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #ff4a2a, 0 0 0 6px #000, 0 0 26px rgba(255, 60, 20, .6), inset 0 -4px 0 rgba(80, 0, 0, .5), inset 0 2px 0 rgba(255, 220, 200, .7); }
html[data-skin=arcade] .osd .dl-go .big-t { font: inherit; font-size: 38px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
html[data-skin=arcade] .osd .dl-go .big-s { font: 700 16px/1.1 var(--body); letter-spacing: 0; text-transform: none; color: #ffe6d6; text-shadow: none; opacity: 1; }
html[data-skin=arcade] .osd .or { display: flex; align-items: center; gap: 12px; color: #a9b8ff; font: 600 15px/1.2 var(--body); }
html[data-skin=arcade] .osd .or::before, html[data-skin=arcade] .osd .or::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #4a5aa8); }
html[data-skin=arcade] .osd .or::after { transform: scaleX(-1); }
html[data-skin=arcade] .osd .join-row { display: flex; gap: 10px; }
html[data-skin=arcade] #np-code { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 5px; border: 0; outline: 0; font: 900 22px/1 var(--dot); letter-spacing: .18em; text-transform: uppercase; text-align: center;
  color: #8dfff0; background: #02030a; box-shadow: inset 0 0 0 2px #3a4aa0, inset 0 3px 8px #000; caret-color: #8dfff0; text-shadow: 0 0 8px rgba(80, 255, 230, .6); }
html[data-skin=arcade] #np-code::placeholder { color: #6875b8; text-shadow: none; opacity: 1; }
html[data-skin=arcade] #np-code:focus { box-shadow: inset 0 0 0 2px #8dfff0, inset 0 3px 8px #000, 0 0 14px rgba(80, 255, 230, .35); }
.sbtn, html[data-skin=arcade] .bar .actions button { appearance: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 6px; font: 800 18px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f6ead2;
  background: linear-gradient(#36313a, #18161b); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 0 #050405, 0 6px 10px rgba(0, 0, 0, .6); position: relative; }
html[data-skin=arcade] .sbtn:not(:disabled):hover, html[data-skin=arcade] .bar .actions button:not(:disabled):hover { filter: brightness(1.15); }
html[data-skin=arcade] .sbtn:not(:disabled):active, html[data-skin=arcade] .bar .actions button:not(:disabled):active { transform: translateY(3px); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 0 #050405; }
html[data-skin=arcade] .osd .join-row .sbtn { min-height: 50px; color: #8dfff0; background: linear-gradient(#1e2550, #0c0f26); box-shadow: 0 0 0 2px #3a4aa0, 0 4px 0 #02030a; }
.arc-err { margin: -4px 0 0; text-align: center; font: 700 15px/1.3 var(--body); color: #ff8a7a; }
html[data-skin=arcade] details.cm { color: #cfd6ff; font: 15px/1.4 var(--body); text-align: left; }
html[data-skin=arcade] details.cm summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 8px; color: #b4bef0; font-size: 15px; font-weight: 600; list-style: none; padding: 0; }
html[data-skin=arcade] details.cm summary::-webkit-details-marker { display: none; }
html[data-skin=arcade] details.cm summary::before { content: ''; width: 0; height: 0; border: 5px solid transparent; border-left: 7px solid #8dfff0; transition: transform .15s; transform-origin: 3px 50%; }
html[data-skin=arcade] details.cm[open] summary::before { transform: rotate(90deg); }
html[data-skin=arcade] details.cm .modes { margin: 0; gap: 2px; }
html[data-skin=arcade] .radio { display: flex; gap: 10px; align-items: flex-start; padding: 5px 4px; cursor: pointer; line-height: 1.35; color: #cfd6ff; border-radius: 4px; }
html[data-skin=arcade] .radio input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 50%; background: #070915; box-shadow: inset 0 0 0 2px #4a5aa8; }
html[data-skin=arcade] .radio input:checked { background: radial-gradient(circle, #eafffb 0, #4dffe0 45%, #0a7a6a 75%); box-shadow: 0 0 0 2px #0a2a26, 0 0 10px rgba(77, 255, 224, .7); }
html[data-skin=arcade] .radio b { color: #fff; }
.olinks { display: flex; justify-content: space-between; gap: 0 12px; flex-wrap: wrap; }
.olinks-c { justify-content: center; }
html[data-skin=arcade] .olink, html[data-skin=arcade] .osd .dl-pk-back, html[data-skin=arcade] .osd .dl-menu { display: inline-flex; align-items: center; min-height: 44px; color: #ffe23a; font: 800 17px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0 2px; }
html[data-skin=arcade] .olink:hover, html[data-skin=arcade] .osd .dl-pk-back:hover, html[data-skin=arcade] .osd .dl-menu:hover { color: #ffe23a; text-decoration: underline; text-underline-offset: 4px; }
html[data-skin=arcade] .olink.mute { color: #b4bef0; }
html[data-skin=arcade] .olink.mute:hover { color: #b4bef0; }
html.tc-device .kb-only, html.arc-touch .kb-only { display: none !important; }

html[data-skin=arcade] .osd .dl-pick { gap: 14px; }
html[data-skin=arcade] .osd .dl-pk-h { margin: 0 0 -5px; text-align: center; font: 900 19px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #ffe23a; text-shadow: 0 2px 0 #b01204, 0 0 14px rgba(255, 200, 40, .45); }
html[data-skin=arcade] .osd .dl-pk-h b { font-weight: 900; letter-spacing: .14em; color: #58ff4a; text-shadow: 0 2px 0 #0b5a04, 0 0 12px rgba(90, 255, 70, .5); }
html[data-skin=arcade] .osd .dl-pk-h-vs b { color: #ff4a2a; text-shadow: 0 2px 0 #5a0602, 0 0 12px rgba(255, 70, 40, .5); }
html[data-skin=arcade] .osd .dl-pk-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; grid-template-columns: none; }
html[data-skin=arcade] .osd .dl-pk-c { appearance: none; flex: none; width: auto; padding: 2px; border: 0; cursor: pointer; position: relative; line-height: 0; border-radius: 2px; opacity: 1; filter: none; transform: none;
  background: linear-gradient(135deg, #9d9a96, #5b5955 50%, #3a3936); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .4); }
html[data-skin=arcade] .osd .dl-pk-c .dl-f-img { display: block; width: auto; padding: 0; border-radius: 0; box-shadow: none; background: none; position: relative; }
html[data-skin=arcade] .osd .dl-pk-c .dl-f-img img { display: block; width: 47px; height: 57px; image-rendering: pixelated; }
html[data-skin=arcade] .osd .dl-pk-c:hover { filter: brightness(1.15); }
html[data-skin=arcade] .osd .dl-pk-as .dl-pk-c.dl-on { box-shadow: 0 0 0 2px #000, 0 0 0 5px #3cff3c, 0 0 0 6px #000, 0 0 18px rgba(60, 255, 60, .7); }
html[data-skin=arcade] .osd .dl-pk-vs .dl-pk-c.dl-on { box-shadow: 0 0 0 2px #000, 0 0 0 5px #ff3a1a, 0 0 0 6px #000, 0 0 18px rgba(255, 60, 20, .7); }
html[data-skin=arcade] .osd .dl-pk-c .dl-f-q { font: 900 30px/1 var(--display); }
html[data-skin=arcade] .osd .dl-pk-c .arc-mat { display: block; width: 47px; height: 57px; padding: 5px 6px 6px 5px; background: var(--mat, #141218); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .65), inset 0 0 0 2px rgba(255, 255, 255, .07); }
html[data-skin=arcade] .osd .dl-pk-c .arc-mat img { width: 36px; height: 46px; }
html[data-skin=arcade] .osd .dl-pk-c[data-id="7"] { --mat: #0d1b29; }
html[data-skin=arcade] .osd .dl-pk-c[data-id="8"] { --mat: #4a0706; }
.arc-boss { position: absolute; left: 2px; right: 2px; bottom: 2px; font: 900 13px/16px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #ffe23a; background: rgba(120, 6, 2, .88); text-align: center; }
html[data-skin=arcade] .osd .dl-pick .dl-go { margin-top: 6px; min-height: 66px; }
html[data-skin=arcade] .osd .dl-pk-back { align-self: center; }
@media (min-width: 600px) {
  html[data-skin=arcade] .osd .dl-pick { padding-top: 16px; padding-bottom: 12px; }
  html[data-skin=arcade] .osd .dl-pick .dl-go { margin-top: 0; }
  html[data-skin=arcade] .osd .dl-go .big-t { font-size: 36px; }
  html[data-skin=arcade] .osd .dl-pk-back, html[data-skin=arcade] .osd .dl-menu { min-height: 36px; }
}

html[data-skin=arcade] .osd .dl-card { align-items: center; gap: 10px; max-width: 520px; padding: 18px 26px 10px; }
html[data-skin=arcade] .osd .dl-kicker { margin: 0; font: 900 19px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #ffe23a; text-shadow: 0 2px 0 #b01204, 0 0 14px rgba(255, 200, 40, .45); }
html[data-skin=arcade] .osd .dl-title { margin: 0; font: 900 32px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000; }
html[data-skin=arcade] .osd .dl-vs { gap: 18px; margin: 4px 0; }
html[data-skin=arcade] .osd .dl-vs-x { font: 900 40px/1 var(--display); color: #ff4a2a; text-shadow: 0 2px 0 #5a0602, 0 0 12px rgba(255, 70, 40, .5); }
html[data-skin=arcade] .osd .dl-f figcaption { font: 800 17px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #ffe23a; }
html[data-skin=arcade] .osd .dl-f-img img { image-rendering: pixelated; }
html[data-skin=arcade] .osd .dl-friend { margin: 0; text-align: center; color: #cfd6ff; font: 600 15px/1.35 var(--body); }
@media (min-width: 600px) {
  html[data-skin=arcade] .osd .dl-card { gap: 8px; padding-top: 16px; padding-bottom: 8px; }
  html[data-skin=arcade] .osd .dl-card .dl-vs { margin: 0; }
}

.panel { position: relative; z-index: 3; width: calc(var(--cw) + 300px); max-width: calc(100vw - 12px); padding: 12px 40px 14px; margin-top: -2px; --inset: 150px;
  --stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cg fill='%23e2210f' fill-opacity='.42'%3E%3Cpath d='M150 0h14L37 100H23z'/%3E%3Cpath d='M850 0h-14l127 100h14z'/%3E%3C/g%3E%3Cg fill='%23ffc83a' fill-opacity='.3'%3E%3Cpath d='M172 0h5L50 100h-5z'/%3E%3Cpath d='M828 0h-5l127 100h5z'/%3E%3C/g%3E%3C/svg%3E"); }
.panel::before { content: ''; position: absolute; inset: 0; z-index: -1;
  -webkit-clip-path: polygon(var(--inset) 0, calc(100% - var(--inset)) 0, 100% 100%, 0 100%); clip-path: polygon(var(--inset) 0, calc(100% - var(--inset)) 0, 100% 100%, 0 100%);
  background:
    radial-gradient(46% 100% at 50% 0, color-mix(in srgb, var(--glow) 16%, transparent), transparent 75%),
    var(--stripes) 0 0/100% 100% no-repeat,
    var(--noise),
    linear-gradient(#1d191f, #121014 70%, #0d0b0e); }
.panel::after { content: ''; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; z-index: -1; border-radius: 0 0 5px 5px;
  background: linear-gradient(#ff7a4a, #e2281a 25%, #9a0e06 70%, #4a0402); box-shadow: 0 10px 18px rgba(0, 0, 0, .75); }
.led { position: relative; width: calc(var(--pw) + 2 * var(--om) + 40px); max-width: 100%; height: 40px; margin: 0 auto 10px; border-radius: 6px; overflow: hidden;
  background: radial-gradient(circle, rgba(255, 150, 50, .13) 1px, transparent 1.5px) 0 0/4px 4px, #0b0503;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .95), 0 0 0 2px #000, 0 0 0 4px #29252c, 0 0 0 5px #000, 0 3px 10px 5px rgba(0, 0, 0, .35); }
.led::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, .08), transparent 45%); }
.led-t { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 14px; text-align: center;
  font: 900 21px/1.15 var(--dot); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--led);
  text-shadow: 0 0 3px rgba(255, 170, 60, .95), 0 0 12px rgba(255, 110, 20, .7), 0 0 26px rgba(255, 80, 10, .35);
  transition: transform .48s steps(7, end); }
.led-t.in { transform: translateY(100%); }
.led-t.out { transform: translateY(-100%); }

.deck { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "stick main diff"; align-items: center; column-gap: 16px; }
.stick { grid-area: stick; justify-self: center; position: relative; width: 96px; height: 112px; }
.stick .w { position: absolute; left: 50%; bottom: 6px; width: 82px; height: 30px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 40%, #2c2a2e, #0a090b 70%); box-shadow: 0 2px 0 rgba(255, 255, 255, .07), inset 0 2px 5px #000, 0 0 0 2px #050405; }
.stick .sh { position: absolute; left: calc(50% - 5px); bottom: 20px; width: 10px; height: 56px; border-radius: 5px; transform: rotate(-9deg); transform-origin: 50% 100%;
  background: linear-gradient(90deg, #1c1c1e, #a8a8ae 45%, #4a4a50 70%, #141416); }
.stick .bl { position: absolute; left: calc(50% - 36px); top: 2px; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff1ea 0 5%, #ff6a44 16%, #d8180a 52%, #6e0503 88%, #3a0201);
  box-shadow: 0 10px 14px rgba(0, 0, 0, .65), 0 0 18px rgba(255, 40, 10, .22); }
.stick .sd { position: absolute; left: 50%; bottom: 0; width: 90px; height: 20px; transform: translateX(-30%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }

html[data-skin=arcade] #menu { grid-area: main; display: flex; flex-direction: column; align-items: center; gap: 4px; width: auto; }
html[data-skin=arcade] #menu[hidden] { display: flex !important; }
html[data-skin=arcade] #choice, html[data-skin=arcade] #choice[hidden], html[data-skin=arcade].dl-picking #choice { display: flex !important; gap: 18px; width: auto; }
.bigs .big { appearance: none; border: 0; cursor: pointer; position: relative; display: block; width: auto; min-height: 0; padding: 7px; border-radius: 17px; color: inherit; font: inherit;
  background: linear-gradient(#45404a, #16141a 55%, #0a090b);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .2), 0 7px 0 #040304, 0 7px 0 1px #000, 0 14px 24px rgba(0, 0, 0, .75);
  transition: transform .07s, box-shadow .07s; }
.bigs .big::after { content: ''; position: absolute; inset: -34px -46px -40px; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, var(--halo), transparent); opacity: .9; transition: opacity .3s; }
.cap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 232px; height: 76px; padding: 0 34px; border-radius: 11px; overflow: hidden; transition: filter .3s, box-shadow .3s; }
.cap::before { content: ''; position: absolute; left: 5%; right: 5%; top: 3px; height: 44%; border-radius: 9px 9px 50% 50%/9px 9px 26% 26%; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .04)); pointer-events: none; }
.cap::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(0, 0, 0, .09) 1px, transparent 1.6px) 0 0/5px 5px; mix-blend-mode: multiply; opacity: .5; }
.lab { position: relative; font: 900 33px/.92 var(--display); letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.cap .sub { position: relative; margin: 0; font: 700 15px/1.1 var(--body); white-space: nowrap; }
.tag { position: absolute; left: 8px; top: 7px; z-index: 1; font: 800 11px/1 var(--body); letter-spacing: .02em; padding: 3px 4px 2px; border-radius: 3px; }
.p1 { --halo: rgba(255, 190, 40, .30); }
.p1 .cap { color: #2a1300; background: radial-gradient(120% 130% at 50% 14%, #fff8c8 0, #ffdc52 30%, #f8a800 68%, #b55e00 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .85), inset 0 -6px 12px rgba(130, 45, 0, .55), 0 0 28px rgba(255, 190, 40, .65), 0 0 70px rgba(255, 150, 20, .25); }
.p1 .sub { color: #4b2600; }
.p1 .tag { color: #fff5c8; background: #7a3a00; }
.p2 { --halo: rgba(255, 60, 20, .30); }
.p2 .cap { color: #fff7ec; text-shadow: 0 2px 0 rgba(90, 0, 0, .55); background: radial-gradient(120% 130% at 50% 14%, #ffc6ac 0, #ff5c36 28%, #d8180a 66%, #6a0503 100%);
  box-shadow: inset 0 2px 1px rgba(255, 225, 205, .8), inset 0 -6px 12px rgba(60, 0, 0, .6), 0 0 28px rgba(255, 60, 20, .65), 0 0 70px rgba(255, 40, 10, .25); }
.p2 .sub { color: #ffe7da; text-shadow: 0 1px 0 rgba(90, 0, 0, .5); }
.p2 .tag { color: #ffd9cc; background: #5a0402; text-shadow: none; }
.bigs .big:not(:disabled):hover .cap { filter: brightness(1.07); }
.bigs .big:not(:disabled):active { transform: translateY(5px); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 #040304, 0 2px 0 1px #000, 0 5px 10px rgba(0, 0, 0, .75); }
.bigs .big.unlit .cap, .bigs .big:disabled .cap { filter: brightness(.42) saturate(.55); box-shadow: inset 0 2px 1px rgba(255, 255, 255, .25), inset 0 -6px 12px rgba(0, 0, 0, .6); }
.bigs .big.unlit::after, .bigs .big:disabled::after { opacity: 0; }
.bigs .big:disabled { cursor: default; }
.bigs .big.on { transform: translateY(4px); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 0 #040304, 0 3px 0 1px #000, 0 6px 12px rgba(0, 0, 0, .75); }
@media (prefers-reduced-motion: no-preference) {
  html[data-st=start] .p1:not(:disabled) .cap { animation: arc-attract 2.4s ease-in-out infinite; }
  html[data-st=start] .p2:not(:disabled) .cap { animation: arc-attract 2.4s ease-in-out 1.2s infinite; }
  .mq-glass { animation: arc-tube 1.2s linear .1s both; }
  html[data-st=start] .pic { animation: arc-pwr .5s cubic-bezier(.2, .7, .2, 1) .35s backwards; }
}
@keyframes arc-tube { 0% { filter: brightness(.18) saturate(.6); } 7% { filter: brightness(1.05); } 11% { filter: brightness(.25) saturate(.6); } 19% { filter: brightness(.95); } 23% { filter: brightness(.4) saturate(.7); } 38%, 100% { filter: none; } }
@keyframes arc-attract { 0%, 100% { filter: none; } 50% { filter: brightness(.86) saturate(.95); } }
html[data-skin=arcade] #menu .dl-pick-open { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 8px; border: 0; background: none; color: var(--gold2); text-decoration: none;
  font: 800 17px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 200, 60, .35); cursor: pointer; }
html[data-skin=arcade] #menu .dl-pick-open::after { content: ''; width: 0; height: 0; border: 5px solid transparent; border-left: 7px solid currentColor; margin-left: 2px; }
html[data-skin=arcade] #menu .dl-pick-open:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
html[data-skin=arcade] #menu .dl-pick-open[hidden] { display: none !important; }
html[data-skin=arcade] #menu[hidden] .dl-pick-open { visibility: hidden; }

.diff { grid-area: diff; justify-self: center; }
html[data-skin=arcade] .diff .mkd-row { display: flex; flex-direction: column; align-items: center; gap: 9px; flex-wrap: nowrap; }
html[data-skin=arcade] .diff .mkd-row[hidden] { display: flex !important; visibility: hidden; }
html[data-skin=arcade] .diff .mkd-lab { font: 800 14px/1 var(--display); letter-spacing: .34em; margin-right: -.34em; color: #c4a57a; text-transform: uppercase; }
html[data-skin=arcade] .diff .mkd-pick { display: flex; gap: 0; flex-wrap: nowrap; }
html[data-skin=arcade] .diff .mkd-pick button { appearance: none; border: 0; background: none; box-shadow: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 50px; padding: 4px 0 2px; border-radius: 0;
  color: #cbbba2; font: 700 13px/1.1 var(--body); text-align: center; text-transform: none; letter-spacing: 0; min-height: 0; }
html[data-skin=arcade] .diff .mkd-pick button::before { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #7a2a1c, #45100a 55%, #1e0503);
  box-shadow: 0 0 0 3px #0a0809, 0 0 0 4px #2e2a31, 0 4px 0 4px #040304, inset 0 2px 2px rgba(255, 255, 255, .22), inset 0 -3px 6px rgba(0, 0, 0, .6); transition: all .15s; }
html[data-skin=arcade] .diff .mkd-pick button:hover::before { filter: brightness(1.3); }
html[data-skin=arcade] .diff .mkd-pick button:hover { border: 0; }
html[data-skin=arcade] .diff .mkd-pick button.on, html[data-skin=arcade] .diff .mkd-pick button[aria-checked=true] { color: var(--gold2); background: none; }
html[data-skin=arcade] .diff .mkd-pick button.on::before, html[data-skin=arcade] .diff .mkd-pick button[aria-checked=true]::before { background: radial-gradient(circle at 50% 36%, #fffbe2 0, #ffdc4a 38%, #f29a00 78%, #a85800);
  box-shadow: 0 0 0 3px #0a0809, 0 0 0 4px #2e2a31, 0 4px 0 4px #040304, inset 0 2px 2px rgba(255, 255, 255, .85), 0 0 22px 4px rgba(255, 200, 60, .55); }

html[data-skin=arcade] .cab .bar.gamebar { display: none; align-items: center; justify-content: space-between; gap: 14px; width: min(100%, calc(var(--pw) + 2 * var(--om) + 2 * var(--bz))); min-width: 0; min-height: 0; margin: 0 auto; padding: 0; }
html[data-skin=arcade][data-st=game] body:not(.tc-play) .cab .bar.gamebar { display: flex; }
html[data-skin=arcade] .cab .bar.gamebar { flex-wrap: wrap; row-gap: 10px; }
html[data-skin=arcade] .cab .bar .status-wrap { flex: 1 1 260px; }
html[data-skin=arcade] .cab .bar .actions { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
html[data-skin=arcade] .cab .bar .actions button { min-height: 40px; padding: 0 12px; font-size: 15px; letter-spacing: .06em; }
html[data-skin=arcade] .bar .actions input.mkclip-again { appearance: none; border: 0; cursor: pointer; min-height: 40px; padding: 0 12px; border-radius: 6px;
  font: 800 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #2a1300; background: linear-gradient(#fff3a0, #ffd23a 45%, #f39c00);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 0 #5a2a00, 0 6px 10px rgba(0, 0, 0, .6), 0 0 16px rgba(255, 200, 40, .3); }
html[data-skin=arcade] .bar .actions input.mkclip-again:hover { filter: brightness(1.08); color: #2a1300; }
html[data-skin=arcade] .bar .actions input.mkclip-again:active { transform: translateY(3px); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 #5a2a00; }
.status-wrap { margin: 0; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 5px;
  background: radial-gradient(circle, rgba(120, 255, 80, .08) 1px, transparent 1.5px) 0 0/4px 4px, #040803; box-shadow: inset 0 2px 6px #000, 0 0 0 2px #000, 0 0 0 3px #29252c; }
.status-wrap i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f2ffe0, #5cff3a 45%, #178a0c); box-shadow: 0 0 8px #5cff3a; }
html[data-skin=arcade] .status-wrap .status { font: 900 15px/1.2 var(--dot); letter-spacing: .06em; text-transform: uppercase; color: #a6ff7e; text-shadow: 0 0 6px rgba(120, 255, 80, .7); overflow-wrap: anywhere; }
html[data-skin=arcade] .status-wrap .status.error { color: #ff8a6a; text-shadow: 0 0 6px rgba(255, 90, 60, .7); }
html[data-skin=arcade] .bar .actions { display: flex; gap: 10px; flex: none; }
html[data-skin=arcade] .bar .actions button { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
html[data-skin=arcade] .bar .actions button:disabled { opacity: .45; cursor: default; }

html[data-skin=arcade] .cab .np { width: min(100%, calc(var(--pw) + 2 * var(--om) + 2 * var(--bz))); margin: 22px 0 0; padding: 12px 16px; color: #e8dfcb; border: 0; border-radius: 6px;
  background: linear-gradient(#1a161c, #110f13); box-shadow: 0 0 0 1px rgba(255, 200, 58, .2), inset 0 1px 0 rgba(255, 255, 255, .05); }
html[data-skin=arcade] .np h2 { margin: 0 0 8px; font: 900 22px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #ffe23a; }
html[data-skin=arcade] #stage .np.np-over { width: min(calc(100% - 24px), 600px); padding: 18px 20px; font-family: var(--body); color: #e8e6f0; border: 0; border-radius: 8px;
  background: radial-gradient(90% 80% at 50% 30%, rgba(14, 18, 46, .96) 0, rgba(4, 5, 14, .97) 80%);
  box-shadow: 0 0 0 2px #000, 0 0 0 4px rgba(255, 226, 58, .55), 0 0 0 6px #000, 0 0 24px rgba(255, 226, 58, .18); }
html[data-skin=arcade] .np .np-codebox b { font: 900 30px/1 var(--dot); letter-spacing: .14em; color: #8dfff0; text-shadow: 0 0 8px rgba(80, 255, 230, .6); }
html[data-skin=arcade] .np input { font: 14px/1.2 var(--body); color: #e8e6f0; background: #02030a; border: 0; border-radius: 5px; padding: 9px 10px; box-shadow: inset 0 0 0 2px #3a4aa0; }
html[data-skin=arcade] .np button { appearance: none; border: 0; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 6px; font: 800 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #8dfff0;
  background: linear-gradient(#1e2550, #0c0f26); box-shadow: 0 0 0 2px #3a4aa0, 0 3px 0 #02030a; }
html[data-skin=arcade] .np .np-msg { font-size: 15px; }
html[data-skin=arcade] .cab .hint { width: min(100%, calc(var(--pw) + 2 * var(--om) + 2 * var(--bz))); margin: 14px 0 0; color: #e8dfcb; background: #151217; border-left-color: var(--gold); }

.apron { position: relative; z-index: 2; width: calc(var(--cw) + 300px); max-width: calc(100vw - 12px); margin-top: 12px; padding: 16px 28px 18px; display: flex; justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, .6), transparent 40%), var(--noise), linear-gradient(#141115, #0d0b0e); border-radius: 0 0 6px 6px; box-shadow: 0 0 0 1px #000, 0 12px 22px rgba(0, 0, 0, .7); }
.card { max-width: 720px; padding: 11px 18px 12px; border-radius: 5px; text-align: center; color: #c9b99f; font: 14px/1.6 var(--body);
  background: linear-gradient(#1a161c, #110f13); box-shadow: 0 0 0 1px rgba(255, 200, 58, .2), inset 0 1px 0 rgba(255, 255, 255, .05); }
html[data-skin=arcade] .card .cover-note { margin: 0; max-width: none; color: #c9b99f; font-size: 14px; line-height: 1.6; }
html[data-skin=arcade] .card .cover-note.error-note { color: #ff8a7a; }
html[data-skin=arcade] .card b { color: #f0dfc0; font-weight: 700; }
html[data-skin=arcade] .card .mkk-line { display: inline; }
html[data-skin=arcade] .card .mkk-desc { display: block; margin: 0; }
html[data-skin=arcade] .card .mkk-change { margin: 0 0 0 4px; padding: 0; border: 0; background: none; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
html[data-skin=arcade] .room kbd, html[data-skin=arcade] .help kbd { display: inline-block; min-width: 20px; padding: 0 5px; margin: 0 1px; border: 0; border-radius: 4px; font: 700 12px/18px ui-monospace, Menlo, monospace; color: #f3e6cc; text-align: center;
  background: linear-gradient(#3a353e, #211e24); box-shadow: 0 0 0 1px #000, 0 2px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .18); }

.base { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px calc(var(--edge) + 20px) 0; }
.door { width: min(400px, 100%); padding: 16px 22px 14px; border-radius: 7px;
  background: radial-gradient(120% 80% at 30% 0, rgba(255, 255, 255, .14), transparent 50%), linear-gradient(160deg, #4a4a50, #26262b 45%, #38383e);
  box-shadow: 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 8px 16px rgba(0, 0, 0, .7); }
.coins { display: flex; justify-content: center; gap: 56px; }
.coin { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.coin .pr { font: 900 13px/1 var(--display); letter-spacing: .16em; color: #d9d6cf; text-transform: uppercase; text-shadow: 0 1px 0 #000; }
.coin .ent { position: relative; width: 48px; height: 62px; border-radius: 6px; background: radial-gradient(70% 60% at 50% 40%, #ffb08a, #ff4a1a 40%, #b31006 80%);
  box-shadow: 0 0 0 3px #1a1a1e, 0 0 0 4px #6a6a70, 0 0 22px rgba(255, 70, 20, .6), inset 0 0 8px rgba(120, 0, 0, .6); }
.coin .ent::before { content: ''; position: absolute; left: 50%; top: 11px; bottom: 11px; width: 5px; margin-left: -2.5px; border-radius: 3px; background: #120202; box-shadow: 0 0 0 1px rgba(255, 200, 180, .35); }
.coin .rj { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #9a9aa0, #3a3a40); box-shadow: 0 0 0 2px #121214; }
.door .vent { margin: 14px auto 0; width: 70%; height: 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, #0c0c0e 0 6px, transparent 6px 11px); opacity: .75; }
html[data-skin=arcade] .landing-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; margin: 0; color: var(--dim); font-size: 0; }
html[data-skin=arcade] .landing-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: #e2cfab; text-decoration: none; font: 800 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
html[data-skin=arcade] .landing-foot a + a::before { content: '·'; margin: 0 16px 0 0; color: var(--dim); }
html[data-skin=arcade] .landing-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.roster-alt { display: none; margin: 0; text-align: center; color: #c79a5c; font: 800 15px/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.kick { align-self: stretch; margin: 6px calc(-20px) 0; padding: 16px 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 9px), linear-gradient(#5a5a62, #2c2c32 40%, #46464e);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .5), 0 0 0 2px #000; }
.kick .plate { width: 240px; height: 32px; }
.kick-url { display: inline-flex; align-items: center; min-height: 44px; color: #ffe23a; font: 900 22px/1 var(--display); letter-spacing: .08em; text-shadow: 0 2px 0 #000, 0 0 10px rgba(255, 220, 40, .35); }
.floor { position: relative; width: 100%; height: 48px; margin-top: -2px;
  background: radial-gradient(42% 70px at 50% 0, rgba(0, 0, 0, .95), transparent 100%), radial-gradient(30% 90px at 50% 0, rgba(255, 60, 10, .08), transparent); }

html[data-skin=arcade] .help { width: min(calc(100% - 32px), 1040px); margin: 0 auto 36px; padding: 24px 32px 22px; color: #c9b99f; border-radius: 8px;
  background: linear-gradient(#1a161c, #110f13); box-shadow: 0 0 0 1px rgba(255, 200, 58, .22), inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 30px rgba(0, 0, 0, .5); }
html[data-skin=arcade] .help h2 { margin: 0 0 6px; font: 900 30px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #ffe23a; }
html[data-skin=arcade] .help .sub-h { margin: 0 0 10px; font: 800 20px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #f0dfc0; }
html[data-skin=arcade] .help .fine { color: #a99d89; font-size: 14px; line-height: 1.55; }
html[data-skin=arcade] .help .kb-note { margin: 0; }
html[data-skin=arcade] .help .help-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px 48px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 200, 58, .14); }
html[data-skin=arcade] .help .help-side { padding-left: 24px; margin-left: -24px; border-left: 1px solid rgba(255, 200, 58, .14); }
html[data-skin=arcade] .help .help-side .fine { margin: 0 0 14px; }
html[data-skin=arcade] .help .help-last { margin: 18px 0 0; }
html[data-skin=arcade] .help .mkk-help { max-width: none; }
html[data-skin=arcade] .help .mkk-lead { margin: 0 0 12px; color: #c9b99f; font-size: 14px; }
html[data-skin=arcade] .help .mkk-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
html[data-skin=arcade] .help .mkk-pick button { min-height: 40px; padding: 6px 14px; border-radius: 6px; font: 700 15px/1.2 var(--body); text-align: left; cursor: pointer;
  color: #e8dcc4; background: #141116; border: 1px solid #3a3238; }
html[data-skin=arcade] .help .mkk-pick button.on { color: #2a1300; background: linear-gradient(#ffe48a, #ffc83a); border-color: #ffc83a; }
html[data-skin=arcade] .help .mkk-pic { justify-content: flex-start; gap: 28px; margin-top: 18px; }
html[data-skin=arcade] .help .mkk-panel { grid-template-columns: repeat(3, 62px); gap: 7px; }
html[data-skin=arcade] .help .mkk-move { grid-template-columns: repeat(3, 48px); grid-template-rows: 48px 48px; gap: 5px; }
html[data-skin=arcade] .help .mkk-cap b { font-size: 18px; }
html[data-skin=arcade] .help .mkk-cap i { font-size: 11px; }
html[data-skin=arcade] .help .mkk-desc { margin-top: 14px; color: #c9b99f; font-size: 14px; line-height: 1.9; }
@media (max-width: 899px) {
  html[data-skin=arcade] .help .help-cols { grid-template-columns: minmax(0, 1fr); }
  html[data-skin=arcade] .help .help-side { padding: 22px 0 0; margin: 0; border-left: 0; border-top: 1px solid rgba(255, 200, 58, .14); }
}
html.tc-device .help .help-cols, html.arc-touch .help .help-cols, html.tc-device .help .help-last, html.arc-touch .help .help-last { display: none; }

html[data-skin=arcade] .site-foot { width: min(calc(100% - 32px), 1040px); margin: 0 auto; padding: 0 0 max(28px, env(safe-area-inset-bottom)); text-align: center; }
html[data-skin=arcade] .site-foot .mkv-credits { max-width: 760px; margin: 0 auto; color: #8c7f6e; font: 13px/1.6 var(--body); }
html[data-skin=arcade] .site-foot .mkv-credits a { color: #c9b99f; text-decoration: underline; text-underline-offset: 3px; }
html[data-skin=arcade] .site-foot .mkv-credits a:hover { color: #fff; }

html[data-st=game] .pic { display: none; }
html[data-st=game] .crt { border-radius: 24px/20px; }
html[data-st=game] .crt::after { display: none; }
html[data-st=game] .deck, html[data-st=game] .led, html[data-st=game] .apron, html[data-st=game] .bz-band, html[data-st=game] .spk, html[data-st=game] .nb { display: none; }
html[data-st=game] .recess { padding-bottom: 4px; }
html[data-st=game] .bezel { padding: 6px var(--bz); }
html[data-st=game] .bezel::before { display: none; }
html[data-st=game] .panel { width: calc(var(--cw) + 110px); padding: 8px 64px 10px; margin-top: 0; --inset: 55px; }
html[data-st=game] .mq-glass { height: 146px; }
html[data-st=game] .mq-box { padding: 7px 12px 8px; }
html[data-st=game] .mq-box::before { top: 5px; }
html[data-st=game] .mq-box::after { bottom: 6px; }
html.arc-mid .spr { display: none; }
html.arc-mid .mq-glass { column-gap: 28px; }
html.arc-mid .mq-brand .plate { width: 120px; height: 16px; }
html.arc-mid .mq-games { font-size: 14px; letter-spacing: .6em; margin-right: -.6em; }
html.arc-mid .mq-sub { font-size: 32px; }
html.arc-slim .mq-glass { height: 50px; grid-template-columns: auto auto; grid-template-areas: "brand sub"; justify-content: center; column-gap: 44px; }
html.arc-slim .spr, html.arc-slim .mq-logo { display: none; }
html.arc-slim .mq-brand { display: none; }
html.arc-slim .mq-line { display: block; }
html.arc-slim .mq-sub { font-size: 26px; justify-self: auto; }
html.arc-slim .mq-sub span { display: inline; margin: 0 0 0 .25em; font-size: 1em; letter-spacing: .02em; }
html.arc-nomq[data-st=game] .mq { display: none; }

@media (min-width: 600px) and (max-height: 859px) {
  :root { --om: 8px; --roof: 6px; }
  .room { padding-top: 4px; }
  .spk, .bz-band { display: none; }
  .roster-alt { display: block; }
  .mq-glass { height: 144px; }
  .mq-box { padding: 5px 12px 6px; }
  .mq-box::before { top: 3px; } .mq-box::after { bottom: 4px; }
  .recess { padding-bottom: 4px; }
  .bezel { padding: 6px var(--bz); }
  .bezel::before { inset: 3px calc(var(--bz) - 16px) 3px; }
  .panel { margin-top: -8px; padding-top: 8px; }
  .led { height: 32px; margin-bottom: 8px; }
  .led-t { font-size: 18px; }
  .bigs .big { padding: 6px; }
  .cap { height: 60px; gap: 3px; }
  .lab { font-size: 30px; }
  .cap .sub { font-size: 14px; }
  .stick { transform: scale(.85); }
}

@media (min-width: 1024px) and (max-width: 1219px) {
  .nb, .stick { display: none; }
  .deck { grid-template-columns: auto auto; grid-template-areas: "main diff"; justify-content: center; column-gap: 40px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  :root { --bz: 16px; --wall: 12px; --edge: 12px; }
  .nb, .stick { display: none; }
  .deck { grid-template-columns: 1fr; grid-template-areas: "main" "diff"; row-gap: 12px; }
  .panel { width: calc(var(--cw) + 40px); --inset: 20px; }
  .apron { width: calc(var(--cw) + 40px); }
  .mq-glass { column-gap: 8px; padding: 0 12px; }
  .spr { display: none; }
}
@media (min-width: 600px) and (max-width: 759px) {
  :root { --s: 1; }
  .mq-glass { grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand logo sub"; }
  .plate { width: 120px; height: 16px; }
  .mq-games { font-size: 15px; }
  .mq-sub { font-size: 24px; }
  html[data-skin=arcade] #choice { flex-direction: column; }
  .spk { display: none; }
}

@media (max-width: 599px) {
  :root { --s: 1; --om: 8px; --bz: 0px; --wall: 0px; --edge: 0px; --roof: 0px; }
  html[data-skin=arcade] body { background:
    radial-gradient(90% 220px at 50% 0, rgba(255, 64, 12, .26), transparent 72%),
    radial-gradient(80% 40% at 50% 38%, color-mix(in srgb, var(--glow) 12%, transparent), transparent 74%),
    linear-gradient(#0b080b, #070507 60%, #0a0608); }
  .room { padding: 0; }
  .nb, .spk, .bz-band, .stick { display: none; }
  html[data-skin=arcade] .cab { width: 100%; }
  .mq { width: 100%; max-width: none; }
  .mq-box { padding: 6px 7px 7px; padding-top: max(6px, env(safe-area-inset-top)); border-radius: 0 0 3px 3px; }
  .mq-box::before { top: 3px; left: 7px; right: 7px; } .mq-box::after { bottom: 4px; left: 7px; right: 7px; }
  .mq-glass { height: auto; padding: 8px 6px 5px; column-gap: 4px; row-gap: 3px;
    grid-template-columns: 1fr auto 1fr; grid-template-areas: "plate plate plate" "sl logo sr" "sub sub sub"; }
  .mq-brand { grid-area: plate; justify-self: center; }
  .mq-brand .plate { width: 120px; height: 16px; }
  .mq-games { display: none; }
  .spr-l { justify-self: end; } .spr-r { justify-self: start; }
  .spr { margin-bottom: 2px; }
  .mq-sub { justify-self: center; font-size: 19px; letter-spacing: .1em; }
  .mq-sub span { display: inline; font-size: 1em; letter-spacing: inherit; margin: 0; }
  .sides { width: 100%; background: var(--noise), linear-gradient(90deg, #0c0a0d, #16131a 50%, #0c0a0d); }
  .recess { padding: 6px 0 4px; }
  .recess::before, .recess::after, .recess .roof { display: none; }
  .bezel { padding: 0 clamp(2px, calc((100vw - 336px) / 2 - 4px), 14px); background: none; box-shadow: none; }
  .bezel::before { display: none; }
  .crt { border-radius: 20px/16px; }
  html[data-skin=arcade] body:not(.tc-play) #stage { border-radius: 8px/7px; }
  html:not([data-st=start]):not([data-st=game]) .pic { display: none; }
  .osd { width: 100%; padding: 8px; border-radius: 12px/10px; background: #05060f; }
  .osd-pane, html[data-skin=arcade] .osd .dl-pick, html[data-skin=arcade] .osd .dl-card { padding: 16px 14px; }
  html[data-st=friend] .crt, html[data-st=opponent] .crt, html[data-st=invite] .crt, html[data-st=challenge] .crt { width: 100%; }
  html[data-st=friend] body:not(.tc-play) #stage, html[data-st=opponent] body:not(.tc-play) #stage, html[data-st=invite] body:not(.tc-play) #stage, html[data-st=challenge] body:not(.tc-play) #stage { width: 100%; }
  .panel { width: 100%; max-width: none; padding: 8px 10px 14px; margin-top: 0; }
  .panel { --stripes: linear-gradient(90deg, transparent 2px, rgba(226, 33, 15, .42) 2px 6px, transparent 6px 8px, rgba(255, 200, 58, .3) 8px 9px, transparent 9px calc(100% - 9px), rgba(255, 200, 58, .3) calc(100% - 9px) calc(100% - 8px), transparent calc(100% - 8px) calc(100% - 6px), rgba(226, 33, 15, .42) calc(100% - 6px) calc(100% - 2px), transparent calc(100% - 2px)); }
  .panel::before { -webkit-clip-path: none; clip-path: none; }
  .panel::after { height: 8px; bottom: -8px; }
  .led { width: auto; height: 44px; margin: 0 0 10px; max-width: none; }
  .led-t { font-size: 15px; line-height: 1.3; white-space: normal; text-wrap: balance; padding: 0 10px; }
  .deck { grid-template-columns: 1fr; grid-template-areas: "main" "diff"; row-gap: 8px; }
  html[data-skin=arcade] #menu { align-items: stretch; gap: 2px; }
  html[data-skin=arcade] #choice, html[data-skin=arcade] #choice[hidden], html[data-skin=arcade].dl-picking #choice { flex-direction: column; gap: 10px; }
  .bigs .big { padding: 5px; border-radius: 14px; }
  .cap { min-width: 0; height: 58px; border-radius: 10px; gap: 3px; }
  .lab { font-size: 30px; }
  .cap .sub { font-size: 14px; }
  .tag { font-size: 13px; left: 7px; top: 6px; }
  html[data-skin=arcade] details.cm summary { min-height: 44px; }
  html[data-skin=arcade] #menu .dl-pick-open { align-self: center; min-height: 44px; }
  .diff { justify-self: stretch; }
  html[data-skin=arcade] .diff .mkd-row { gap: 7px; }
  html[data-skin=arcade] .diff .mkd-pick { width: 100%; justify-content: space-between; }
  html[data-skin=arcade] .diff .mkd-pick button { width: 20%; min-width: 0; }
  .apron { width: 100%; max-width: none; margin-top: 8px; padding: 14px 12px 16px; }
  .base { padding: 22px 12px 0; gap: 16px; }
  .kick { margin: 4px -12px 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .coins { gap: 40px; }
  .kick .plate { width: 120px; height: 16px; }
  .kick-url { font-size: 20px; }
  .roster-alt { display: block; }
  html[data-skin=arcade] .osd .dl-pk-row { max-width: 300px; margin: 0 auto; }
  html[data-skin=arcade] .osd .dl-pk-as { max-width: 240px; }
  .osd-h { font-size: 22px; }
  html[data-skin=arcade] .osd .dl-pk-h { font-size: 17px; letter-spacing: .1em; }
  .obtn { font-size: 28px; }
  .floor { height: 40px; }
  html[data-skin=arcade] .help { width: calc(100% - 24px); padding: 16px 14px; }
  html[data-skin=arcade] .site-foot { width: calc(100% - 24px); }
}
@media (max-width: 374px) {
  .lab { font-size: 27px; }
  .coins { gap: 26px; }
}
@media (max-width: 339px) {
  :root { --om: 0px; }
  .bezel { padding: 0; }
  .crt, html[data-skin=arcade] body:not(.tc-play) #stage { border-radius: 0; }
}
@media (max-width: 599px) and (max-height: 659px) {
  :root { --ls: .5; }
  .mq-glass { grid-template-columns: auto auto; grid-template-rows: auto auto; grid-template-areas: "logo plate" "logo sub";
    justify-content: center; align-content: center; column-gap: 16px; row-gap: 6px; padding: 8px 10px 7px; }
  .spr { display: none; }
  .mq-brand { align-self: end; justify-self: center; }
  .mq-sub { align-self: start; justify-self: center; font-size: 26px; letter-spacing: .03em; line-height: .9; }
  .mq-sub span { display: block; font-size: .62em; letter-spacing: .1em; margin-top: 4px; }
  .recess { padding: 5px 0 3px; }
  .led { height: 40px; margin-bottom: 8px; }
  .led-t { font-size: 14px; }
  html[data-skin=arcade] #choice, html[data-skin=arcade] #choice[hidden], html[data-skin=arcade].dl-picking #choice { gap: 8px; }
}

@media (min-width: 600px) and (max-height: 500px) and (orientation: landscape), (min-width: 1100px) and (max-height: 699px) and (min-height: 420px) {
  :root:not([data-st=game]) { --bz: 0px; --wall: 0px; --edge: 0px; --roof: 0px; }
  html:not([data-st=game]) .room { padding: 6px 10px 0; padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
  html:not([data-st=game]) .nb, html:not([data-st=game]) .spk, html:not([data-st=game]) .bz-band, html:not([data-st=game]) .stick { display: none; }
  html[data-skin=arcade]:not([data-st=game]) .cab { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
  html:not([data-st=game]) .mq { grid-area: mq; width: 100%; max-width: none; }
  html:not([data-st=game]) .mq-box { padding: 6px 7px 7px; border-radius: 8px 8px 3px 3px; }
  html:not([data-st=game]) .mq-box::before { top: 3px; left: 7px; right: 7px; } html:not([data-st=game]) .mq-box::after { bottom: 4px; left: 7px; right: 7px; }
  html:not([data-st=game]) .mq-glass { height: auto; padding: 8px 6px 6px; column-gap: 4px; row-gap: 2px; grid-template-columns: 1fr auto 1fr; grid-template-areas: "plate plate plate" "sl logo sr" "sub sub sub"; }
  html:not([data-st=game]) .mq-brand { grid-area: plate; justify-self: center; }
  html:not([data-st=game]) .mq-brand .plate { width: 120px; height: 16px; }
  html:not([data-st=game]) .mq-games { display: none; }
  html:not([data-st=game]) .spr-l { justify-self: end; } html:not([data-st=game]) .spr-r { justify-self: start; }
  html:not([data-st=game]) .spr { margin-bottom: 2px; }
  html:not([data-st=game]) .mq-sub { justify-self: center; font-size: 18px; letter-spacing: .1em; }
  html:not([data-st=game]) .mq-sub span { display: inline; font-size: 1em; letter-spacing: inherit; margin: 0; }
  html:not([data-st=game]) .recess { grid-area: screen; width: auto; padding: 0; background: none; }
  html:not([data-st=game]) .recess::before, html:not([data-st=game]) .recess::after, html:not([data-st=game]) .recess .roof { display: none; }
  html:not([data-st=game]) .bezel { padding: 10px; border-radius: 14px; background: var(--noise), linear-gradient(#151217, #0b090c); box-shadow: 0 0 0 2px #000, inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 4px #1a171c, 0 0 0 5px #000; }
  html:not([data-st=game]) .bezel::before { display: none; }
  html:not([data-st=game]) .panel, html:not([data-st=game]) .deck { display: contents; }
  html[data-skin=arcade]:not([data-st=game]) #menu { display: contents !important; }
  html:not([data-st=game]) .panel::before, html:not([data-st=game]) .panel::after { display: none; }
  html:not([data-st=game]) .led { grid-area: led; width: 100%; max-width: none; margin: 10px 0 0; }
  html[data-skin=arcade]:not([data-st=game]) #choice, html[data-skin=arcade]:not([data-st=game]) #choice[hidden], html[data-skin=arcade]:not([data-st=game]).dl-picking #choice { grid-area: bigs; margin-top: 10px; }
  html:not([data-st=game]) .bigs .big { flex: 1; min-width: 0; }
  html:not([data-st=game]) .cap { min-width: 0; }
  html[data-skin=arcade]:not([data-st=game]) #menu .dl-pick-open { grid-area: pick; justify-self: center; }
  html:not([data-st=game]) .diff { grid-area: diff; margin-top: 6px; }
  html:not([data-st=game]) .apron { grid-area: apron; width: 100%; max-width: none; margin-top: 16px; border-radius: 6px; }
  html[data-skin=arcade]:not([data-st=game]) .cab .np { grid-area: np; width: 100%; }
  html[data-skin=arcade]:not([data-st=game]) .cab .hint { grid-area: hint; width: 100%; }
  html:not([data-st=game]) .base { grid-area: base; width: 100%; padding: 22px 16px 0; }
  html:not([data-st=game]) .kick { margin: 4px -16px 0; }
  html:not([data-st=game]) .roster-alt { display: block; }
  html:not([data-st=game]) .osd { width: 100%; }
}
@media (min-width: 600px) and (max-height: 500px) and (orientation: landscape) {
  :root:not([data-st=game]) { --s: 1; --om: 8px; }
  html[data-skin=arcade]:not([data-st=game]) .cab { max-width: 820px; grid-template-areas: "screen mq" "screen bigs" "led pick" "diff diff" "np np" "hint hint" "apron apron" "base base"; }
  html:not([data-st=game]) .crt { border-radius: 20px/16px; }
  html[data-skin=arcade]:not([data-st=game]) body:not(.tc-play) #stage { border-radius: 8px/7px; }
  html:not([data-st=start]):not([data-st=game]) .pic { display: none; }
  html:not([data-st=game]) .osd { padding: 8px; background: #05060f; }
  html:not([data-st=game]) .osd-pane, html[data-skin=arcade]:not([data-st=game]) .osd .dl-pick, html[data-skin=arcade]:not([data-st=game]) .osd .dl-card { padding: 14px 16px; }
  html:not([data-st=start]):not([data-st=game]) .crt { width: min(440px, 56vw); }
  html:not([data-st=start]):not([data-st=game]) body:not(.tc-play) #stage { width: 100%; }
  html[data-skin=arcade]:not([data-st=game]) #choice, html[data-skin=arcade]:not([data-st=game]) #choice[hidden], html[data-skin=arcade]:not([data-st=game]).dl-picking #choice { flex-direction: row; gap: 10px; }
  html:not([data-st=game]) .bigs .big { padding: 5px; border-radius: 13px; container-type: inline-size; }
  html:not([data-st=game]) .cap { height: 58px; padding: 0 6px; gap: 3px; }
  html:not([data-st=game]) .lab { font-size: min(21px, calc((100cqi - 26px) / 8)); }
  html:not([data-st=game]) .cap .sub { font-size: 13px; }
  html:not([data-st=game]) .tag { display: none; }
  html:not([data-st=start]):not([data-st=game]) .cab { grid-template-areas: "screen mq" "screen bigs" "screen pick" "screen diff" "led led" "np np" "hint hint" "apron apron" "base base"; }
  html:not([data-st=start]):not([data-st=game]) #choice { flex-direction: column !important; }
  html[data-skin=arcade]:not([data-st=game]) #menu .dl-pick-open { min-height: 40px; margin-top: 8px; }
  html:not([data-st=game]) .led { height: 40px; }
  html:not([data-st=game]) .led-t { font-size: 13px; line-height: 1.25; white-space: normal; text-wrap: balance; }
  html[data-skin=arcade]:not([data-st=game]) .diff .mkd-lab { display: none; }
  html[data-skin=arcade]:not([data-st=game]) .diff .mkd-pick { width: 100%; max-width: 560px; justify-content: space-between; margin: 0 auto; }
  html[data-skin=arcade]:not([data-st=game]) .diff .mkd-pick button { width: 20%; }
  html:not([data-st=game]) .diff { justify-self: stretch; }
    html[data-st=opponent] .room .cab { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "screen screen" "mq bigs" "mq pick" "mq diff" "led led" "np np" "hint hint" "apron apron" "base base"; }
  html[data-st=opponent] .recess .crt { width: 100%; }
  html[data-st=opponent] .bezel { padding: 6px; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ha foot" "ra foot" "hv foot" "rv foot" "back back"; column-gap: 14px; row-gap: 6px; align-items: center; padding: 10px 12px; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-h-as { grid-area: ha; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-as { grid-area: ra; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-h-vs { grid-area: hv; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-vs { grid-area: rv; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-row { flex-wrap: nowrap; gap: 4px; max-width: none; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-h { font-size: 17px; margin-bottom: 0; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pick .dl-go { grid-area: foot; margin: 0; min-height: 96px; padding: 8px 10px; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pick .dl-go .big-t { font-size: 36px; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pick .dl-go .big-s { text-wrap: balance; }
  html[data-skin=arcade]:not([data-st=game]) .osd .dl-pk-back { grid-area: back; min-height: 40px; }
}
@media (min-width: 600px) and (max-width: 739px) and (max-height: 500px) and (orientation: landscape) {
  html[data-skin=arcade] #choice, html[data-skin=arcade] #choice[hidden], html[data-skin=arcade].dl-picking #choice { flex-direction: column; gap: 8px; }
  html[data-skin=arcade] .osd .dl-pick { display: flex; padding: 10px 12px; gap: 6px; }
  html[data-skin=arcade] .osd .dl-pick .dl-go { min-height: 56px; margin-top: 4px; }
  html[data-skin=arcade] .osd .dl-pick .dl-go .big-t { font-size: 30px; }
}
@media (min-width: 1100px) and (max-height: 699px) and (min-height: 420px) {
  :root:not([data-st=game]) { --s: 2; --om: 10px; }
  html[data-skin=arcade]:not([data-st=game]) .cab { max-width: 1200px; grid-template-columns: auto minmax(0, 460px); justify-content: center;
    grid-template-areas: "screen mq" "screen bigs" "screen pick" "screen diff" "led led" "np np" "hint hint" "apron apron" "base base"; }
  html[data-skin=arcade]:not([data-st=game]) #choice, html[data-skin=arcade]:not([data-st=game]) #choice[hidden], html[data-skin=arcade]:not([data-st=game]).dl-picking #choice { flex-direction: column; gap: 12px; }
  html:not([data-st=game]) .cap { height: 64px; }
  html:not([data-st=game]) .lab { font-size: 30px; }
  html:not([data-st=game]) .diff { margin-top: 4px; }
  html:not([data-st=game]) .led { max-width: 900px; justify-self: center; width: 100%; }
}

body.tc-play .room > :not(.cab), body.tc-play .cab > :not(.recess):not(.np), body.tc-play .bz-band, body.tc-play .recess .roof,
body.tc-play .recess::before, body.tc-play .recess::after, body.tc-play .bezel::before, body.tc-play .crt::after,
body.tc-play .site-foot { display: none !important; }
body.tc-play .room, body.tc-play .cab, body.tc-play .recess, body.tc-play .bezel, body.tc-play .crt { all: unset; display: block; }
body.tc-play .np:not(.np-over) { display: none; }
html.tg-pfs .room > :not(.cab), html.tg-pfs .crt::after { visibility: hidden; }

html.tg-fs body:not(.tc-play) .room { padding-top: calc(var(--tg-top, 0px) + 6px); }

@media (prefers-reduced-motion: reduce) {
  .pic.cut img, .pic.roll img, .pic.cut .flash, .pic.roll .flash, html.arc-pwr #stage > .dos { animation: none; }
  .led-t { transition: none; }
}
