.game-tile .double-tile-icon {
  color: #a5edff;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 16px #2d9cc6;
}

.double-panel {
  --double-ice: #4b9fdd;
  --double-aurora: #dfb66f;
  --double-pine: #42bfa5;
  padding: clamp(16px, 4vw, 42px);
  border: 1px solid #3c6a80;
  border-radius: 24px;
  color: #effaff;
  background: radial-gradient(ellipse at 25% 5%, #234f67, transparent 58%), #101d31;
}
.double-panel h1 { margin: 0 0 24px; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.double-panel h2 { margin: 22px 0 10px; font-size: 1rem; }
.double-layout { display: grid; gap: 20px; }
.double-stage {
  --double-slot: clamp(58px, 9vw, 106px);
  position: relative;
  min-width: 0;
  padding-block: 17px;
  border: 1px solid #4b7790;
  border-radius: 18px;
  background: linear-gradient(180deg, #172e43, #0e1c2b 50%, #193549);
  box-shadow: inset 0 1px 0 #a4d7e94d, 0 10px 30px #06182659;
}
.double-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}
.double-reel {
  position: relative;
  left: 50%;
  display: flex;
  width: max-content;
  transform: translateX(calc(var(--double-offset) * var(--double-slot)));
}
.double-reel.is-spinning { transition: transform 2.6s cubic-bezier(.12,.82,.16,1); }
.double-sector { flex: 0 0 var(--double-slot); padding-inline: 4px; }
.double-sector-face {
  display: grid;
  align-content: center;
  place-items: center;
  gap: 2px;
  aspect-ratio: 1.1;
  border: 1px solid var(--outcome-color);
  border-radius: 13px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--outcome-color) 45%, #19384c), #152738 80%);
  box-shadow: inset 0 2px 0 #effaff55, inset 0 0 0 3px #101b2b4d;
  color: #f2faff;
}
.double-emblem {
  display: block;
  width: var(--double-emblem-size, 22px);
  aspect-ratio: 1;
  background: url('../img/double-emblems.png') var(--double-emblem-position) / 200% 200% no-repeat;
  filter: drop-shadow(0 2px 4px #061826b0);
}
.double-sector-face .double-emblem { --double-emblem-size: clamp(28px, 4.7vw, 57px); }
.double-sector-face b { font-size: clamp(.7rem, 1.6vw, 1rem); }
.double-pointer {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 22px;
  height: 23px;
  transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #f4faff;
}
.double-controls { width: min(100%, 660px); margin-inline: auto; }
.double-status { min-height: 1.5em; margin: 0 0 14px; color: #d8effb; }
.double-stake-row { display: flex; gap: 6px; margin: 8px 0 15px; }
.double-stake-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #4c7188;
  border-radius: 8px;
  background: #101c2c;
  color: #f1fbff;
  font: inherit;
}
.double-stake-row .btn-ghost { padding-inline: 10px; color: #def1fb; }
.double-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.double-panel [data-outcome="ice"] { --outcome-color: var(--double-ice); --double-emblem-position: left top; }
.double-panel [data-outcome="aurora"] { --outcome-color: var(--double-aurora); --double-emblem-position: left bottom; }
.double-panel [data-outcome="pine"] { --outcome-color: var(--double-pine); --double-emblem-position: right top; }
.double-options button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 4px;
  border: 1px solid var(--outcome-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--outcome-color) 20%, #13253a);
  color: #f5fcff;
  font: inherit;
  cursor: pointer;
}
.double-options button:hover:not(:disabled) { background: color-mix(in srgb, var(--outcome-color) 34%, #13253a); }
.double-options button:disabled { opacity: .65; cursor: default; }
.double-options strong { font-size: clamp(.7rem, 2vw, .94rem); }
.double-options .double-emblem { --double-emblem-size: clamp(36px, 6vw, 62px); }
.double-history { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.double-history li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--outcome-color);
  border-radius: 7px;
  color: var(--outcome-color);
  font-size: .73rem;
}
.double-panel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.double-empty { margin: 0; color: #a8bfce; }

@media (prefers-reduced-motion: reduce) {
  .double-reel.is-spinning { transition: none; }
}
