/* Arcade expansion: original Devil's Deathroll colors, type, and controls.
   The canonical background stylesheet owns checker rendering and saver effects. */
* { box-sizing: border-box; }
body.expansion { margin: 0; background: #0a0000; color: #fff; font: 16px/1.6 Arial, sans-serif; min-height: 100vh; }
.exp-shell { max-width: 1160px; margin: auto; padding: 28px 22px 82px; }
.exp-hero { margin: 0 auto 28px; text-align: center; }
.eyebrow { color: #ffaa00; font: 15px/1.4 Impact, 'Arial Black', sans-serif; letter-spacing: 1.5px; margin: 0 0 12px; }
.expansion h1, .expansion h2, .expansion h3 { font-family: Impact, 'Arial Black', sans-serif; font-weight: normal; line-height: 1.2; color: #ff2929; text-transform: uppercase; text-shadow: 2px 2px 0 #000; letter-spacing: .4px; overflow-wrap: anywhere; }
.expansion h1 { font-size: clamp(30px, 5.3vw, 54px); margin: 0 0 12px; text-shadow: 3px 3px 0 #330000, -1px -1px 0 #660000, 0 0 20px #ff1a1a; animation: arcadeTitleFlicker 3s infinite alternate; }
.title-icon { display: inline-block; font-family: sans-serif; font-size: .8em; vertical-align: .05em; margin-right: .25em; }
.expansion h2 { font-size: 25px; margin: 0 0 16px; }
.expansion h3 { font-size: 22px; margin: 0 0 12px; }
.intro { color: #ffaa00; font-size: 17px; font-weight: bold; font-style: italic; margin: 0; text-shadow: 1px 1px #000; }
.layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.panel, .card { background: rgba(51, 0, 0, .86); border: 3px solid #cc0000; border-radius: 15px; padding: 24px; box-shadow: 0 4px 16px #0006; }
.panel + .panel { margin-top: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; background: rgba(20, 0, 0, .9); border-width: 2px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card p { margin: 0; color: #ffeeee; }
.card .actions { margin-top: auto; padding-top: 10px; }
.card.locked { background: rgba(15, 0, 0, .94); border-color: #733333; }
.card.locked h3 { color: #cf9b9b; }
.card.locked .tag { color: #d6baba; }
.tag { font: 12px/1.4 Impact, 'Arial Black', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #ffb347; }
.muted, small { color: #e0c0c0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.expansion button, .expansion .button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 3px solid #ff1a1a; background: linear-gradient(145deg, #cc3300, #990000); color: #fff; font: 17px/1.25 Impact, 'Arial Black', sans-serif; text-decoration: none; text-align: center; text-shadow: 1px 1px 0 #660000; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; }
.expansion button:hover, .expansion .button:hover { background: linear-gradient(145deg, #cc0000, #990000); box-shadow: 0 0 18px #cc0000aa; transform: translateY(-1px); }
.expansion .secondary { background: linear-gradient(145deg, #666, #333); border-color: #999; text-shadow: 1px 1px #111; }
.expansion button:disabled { background: #292121; border-color: #685858; color: #bca5a5; cursor: not-allowed; transform: none; box-shadow: none; }
.expansion :focus-visible { outline: 3px solid #ffcc55; outline-offset: 4px; }
.expansion label { display: block; color: #ffeeee; font-weight: bold; font-size: 14px; margin-bottom: 6px; }
.expansion input, .expansion select, .expansion textarea { width: 100%; background: #330000; border: 2px solid #cc0000; border-radius: 8px; padding: 12px; color: #ffaa00; font: 16px Arial, sans-serif; }
.expansion textarea { min-height: 100px; resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 12px; background: rgba(10, 0, 0, .9); border: 2px solid #990000; border-radius: 10px; min-width: 0; }
.stat small { display: block; color: #ffeeee; font: 12px/1.4 Impact, 'Arial Black', sans-serif; letter-spacing: .3px; text-transform: uppercase; overflow-wrap: anywhere; }
.stat strong { font: 28px/1.5 Impact, 'Arial Black', sans-serif; color: #ffaa00; overflow-wrap: anywhere; }
.stage { text-align: center; padding: 28px 14px; border: 3px solid #cc0000; border-radius: 12px; background: radial-gradient(ellipse, #570000 0, #0a0000 78%); margin: 18px 0; }
.sigil { font: 72px/1.2 Impact, 'Arial Black', sans-serif; color: #ffaa00; text-shadow: 2px 2px 0 #660000, 0 0 24px #ff3300; }
.stage h2 { margin-top: 18px; }
.stage p { max-width: 490px; margin: 8px auto; color: #ffeeee; }
.event { border-left: 4px solid #ffaa00; padding: 12px 14px; background: rgba(10, 0, 0, .86); color: #ffddaa; min-height: 58px; }
.log { padding-left: 20px; color: #ffeeee; font-size: 14px; }
.log li { padding: 5px 0; }
.rule-list { padding-left: 20px; color: #ffeeee; font-size: 14px; }
.rule-list li { margin-bottom: 12px; }
.notice { padding: 16px 18px; border: 2px solid #ff9900; border-radius: 12px; background: rgba(51, 12, 0, .96); color: #ffddaa; margin-bottom: 20px; }
.notice h2 { color: #ffb347; }
.success { color: #b9f5b8; }
.grid-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-width: 460px; margin: 24px auto; }
.expansion .tile { aspect-ratio: 1; min-height: 0; padding: 4px; background: #1a0000; border: 2px solid #773333; font: 24px Arial, sans-serif; border-radius: 8px; }
.expansion .tile:disabled { color: #ddbbbb; }
.expansion .tile.near { border-color: #ffaa00; background: #660000; color: #fff; }
.expansion .tile.here { outline: 2px solid #ffcc44; background: #993300; color: #fff; }
.board-preview { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 8px 0; }
.board-preview span { display: flex; align-items: center; justify-content: center; background: #150000; border: 1px solid #aa2222; border-radius: 4px; min-height: 29px; font-size: 12px; }
.board-preview .effect { background: #770000; color: #ffcc66; }
.exp-footer { border-top: 2px solid #990000; margin-top: 34px; padding-top: 20px; font: 13px/1.7 Impact, 'Arial Black', sans-serif; letter-spacing: 1px; color: #ffaa00; text-shadow: 1px 1px #000; }
.exp-footer span { float: right; letter-spacing: 0; }
.exp-footer small { display: block; margin-top: 12px; letter-spacing: 0; font: 12px/1.5 Arial, sans-serif; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { text-align: left; padding: 12px 10px; border-bottom: 1px solid #883333; }
th { color: #ffaa00; font: 14px/1.4 Impact, 'Arial Black', sans-serif; text-transform: uppercase; }
.progress-track { height: 7px; background: #170000; border-radius: 5px; margin: 14px 0; overflow: hidden; }
.progress-track > span { display: block; background: #ff6600; height: 100%; }
.expansion details { margin-top: 18px; }
.expansion summary { cursor: pointer; color: #ffb347; }
.expansion a { color: #ffcc66; }
.expansion a.button { color: #fff; }
.pill { display: inline-block; border: 2px solid #cc6600; border-radius: 30px; padding: 4px 12px; font-size: 12px; color: #ffcc66; background: #220000; }
.expansion #storage-notice { font-size: 13px; color: #ffcc66; }
.big-number { font: 48px Impact, 'Arial Black', sans-serif; color: #ffaa00; }
.expansion hr { width: 100%; border: 0; border-top: 1px solid #993333 !important; }
.player-current { border-color: #ffaa00; box-shadow: 0 0 14px #ff440050; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.expansion #uiPolishControls { font-family: Impact, 'Arial Black', sans-serif; }
.expansion #uiPolishControls input[type='range'] { padding: 0 !important; border: 0 !important; border-radius: 0; }
.expansion #uiPolishControls .devil-button { background: linear-gradient(145deg, #cc3300, #990000); border-color: #ff1a1a; }
@keyframes arcadeTitleFlicker { from { text-shadow: 3px 3px 0 #330000, -1px -1px 0 #660000, 0 0 16px #ff1a1a; } to { text-shadow: 3px 3px 0 #330000, -1px -1px 0 #660000, 0 0 28px #ff6666; } }
html.ddr-lite-fx .expansion h1 { animation: none; }
html.ddr-lite-fx .expansion .panel, html.ddr-lite-fx .expansion .card { box-shadow: none; }
@media (max-width: 850px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .exp-shell { padding: 22px 12px 76px; }
  .panel, .card { padding: 16px; }
  .cards, .cards.two, .fields { grid-template-columns: 1fr; }
  .stats { gap: 7px; }
  .stat { padding: 8px; }
  .stat strong { font-size: 24px; }
  .exp-footer span { float: none; display: block; margin-top: 8px; }
  .actions button, .actions .button { flex: 1; }
  .expansion h1 { font-size: clamp(28px, 8vw, 38px); }
  .intro { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .expansion *, .expansion *::before, .expansion *::after { transition: none !important; animation: none !important; } }
