.nomad-launcher { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 76px); border: 1px solid #b6a4e64d; background: radial-gradient(ellipse at 90% 20%,#7660a933,transparent 65%),linear-gradient(120deg,#080f1d,#121c31); }
.nomad-launcher::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -95px; border: 1px solid #c1b5f52b; transform: rotate(35deg); pointer-events: none; }
.nomad-kicker { margin: 0 0 22px; color: #c1b5f5; font: 11px/1.6 monospace; letter-spacing: .2em; }
.nomad-launcher h3 { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 22px; font: 400 clamp(42px,8vw,100px)/1 Georgia,serif; letter-spacing: .035em; color: #f7f4ef; }
.nomad-launcher h3 span { color: #b8a7e7; font: 300 .65em/1 Arial,sans-serif; }
.nomad-description { color: #c8cddd; line-height: 1.85; font-size: 15px; max-width: 650px; }
.nomad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.nomad-play { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 25px; border: 1px solid #c1b5f5; background: #c1b5f5; color: #101a2c; font: 600 13px/1.6 system-ui,sans-serif; cursor: pointer; }
.nomad-play:hover { background: #ddd3fb; }
.nomad-actions a { color: #e0d8f4; font-size: 12px; line-height: 1.8; text-underline-offset: 5px; }
.nomad-note { margin: 24px 0 0; font-size: 11px; line-height: 1.9; color: #a4afc3; }
.nomad-play:focus-visible,.nomad-actions a:focus-visible,.nomad-toolbar :is(a,button):focus-visible { outline: 2px solid #ddd3fb; outline-offset: 5px; }
.nomad-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #050c14; color: #f7f4ef; overflow: hidden; }
.nomad-dialog::backdrop { background: #050c14; }
.nomad-toolbar { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid #fff2; }
.nomad-toolbar :is(a,button) { display: inline-flex; align-items: center; min-height: 40px; color: #ded8f4; font: 12px/1.5 system-ui,sans-serif; background: transparent; border: 0; text-decoration: none; cursor: pointer; }
.nomad-game-host { height: calc(100% - 52px); }
.nomad-game-host iframe { display: block; width: 100%; height: 100%; border: 0; }
.nomad-rotate { display: none; }
html.nomad-is-open { overflow: hidden; }
@media (max-width: 600px) and (orientation: portrait) {
  .nomad-dialog[open] .nomad-rotate { position: absolute; inset: 52px 0 0; z-index: 1; display: flex; align-items: center; justify-content: center; margin: 0; padding: 40px; background: #050c14; color: #c1b5f5; text-align: center; font-size: 18px; line-height: 1.8; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .nomad-toolbar { height: 36px; }
  .nomad-toolbar :is(a,button) { min-height: 32px; font-size: 11px; }
  .nomad-game-host { height: calc(100% - 36px); }
}

/* The game owns the phone screen; only a small exit remains above it. */
@media (pointer: coarse) and (max-width: 1200px) and (orientation: landscape) {
  .nomad-dialog .nomad-toolbar { position:absolute; top:max(6px,env(safe-area-inset-top)); left:max(8px,env(safe-area-inset-left)); z-index:2; width:auto; height:40px; padding:0 8px; border:0; border-radius:8px; background:#06131caa; }
  .nomad-dialog .nomad-toolbar a { display:none; }
  .nomad-dialog .nomad-toolbar button { min-height:40px; font-size:11px; }
  .nomad-dialog .nomad-game-host { height:100%; }
}
