:root {
  color-scheme: dark;
  background: #150911;
  color: #fff1db;
  font-family: system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
a { color: #ffd892; }
button, input {
  min-height: 38px;
  padding: 6px 13px;
  border: 1px solid #91643b;
  border-radius: 10px;
  background: #2b1421;
  color: inherit;
  font: inherit;
}
button { cursor: pointer; }
button:hover { border-color: #ffd892; }
form { margin: 0; }
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  font-size: 13px;
  background: #230d19;
}
.tools button { border: 0; background: none; text-decoration: underline; }
.intro {
  max-width: 38rem;
  width: 100%;
  margin: auto;
  padding: 24px;
  overflow: auto;
}
.intro p { line-height: 1.55; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.stage { display: flex; flex: 1; min-height: 0; }
#game { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; }
.slot {
  flex: none;
  text-align: center;
  color: #dec5cf;
  font-size: 10px;
  line-height: 18px;
}
.slot iframe { display: block; border: 0; }
.rail { width: 176px; padding: 4px 8px; }
.bottom {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #230d19;
}
.bottom[hidden] { display: none; }
#dismiss {
  position: absolute;
  top: 0;
  right: env(safe-area-inset-right);
  min-height: 18px;
  padding: 0 8px;
  border: 0;
  background: transparent;
}

.family-player {
  color-scheme: light;
  background: #eaf3ff;
  color: #182d58;
}
.family-player a { color: #17396f; }
.family-player .tools { background: #eff6ff; }
.family-promo { display: none; color: #182d58; }
.family-promo a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 1px solid #aec9f4;
  border-radius: 10px;
  background: #f8fbff;
  color: inherit;
  text-decoration: none;
}
.family-promo a:hover { border-color: #2164e8; }
.family-promo strong { font-size: 17px; line-height: 1.25; }
.promo-action { font-weight: bold; text-decoration: underline; }
.family-left a { height: 600px; }
.family-right a { height: 300px; }
.family-bottom {
  background: #eff6ff;
  padding: 6px max(32px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.family-bottom a { min-height: 50px; max-width: 320px; gap: 1px; padding: 5px 10px; }
.family-bottom strong { font-size: 14px; }
.family-bottom #dismiss { top: 7px; min-height: 44px; width: 32px; font-size: 18px; }
@media (min-width: 1280px) and (min-height: 690px) {
  .family-promo.rail:not([hidden]) { display: block; }
}
@media (min-width: 320px) and (max-width: 1279px) and (min-height: 630px) {
  .family-promo.bottom:not([hidden]) { display: grid; }
}
