:root {
  color-scheme: dark;
  font-family: system-ui, 'Apple SD Gothic Neo', sans-serif;
  background: #101526;
  color: #f6f5fe;
}

* { box-sizing: border-box; }
body { margin: 0; }

.entrance {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.6833vh);
  width: max(100vw, 177.6833dvh);
  aspect-ratio: 1672 / 941;
  transform: translate(-50%, -50%);
}

.scene img { display: block; width: 100%; height: 100%; }

.flame {
  position: absolute;
  top: 52%;
  left: 51.6%;
  width: 14%;
  height: 43%;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.flame:hover { background: radial-gradient(ellipse, #ffbc5226, transparent 68%); }
button:focus-visible, input:focus-visible { outline: 2px solid #ffca78; outline-offset: 4px; }

dialog {
  width: min(380px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #574c71;
  border-radius: 20px;
  background: #181b31;
  color: #f6f5fe;
  box-shadow: 0 20px 80px #070710b3;
}

dialog::backdrop { background: #0b0e1bc7; backdrop-filter: blur(5px); }
form { position: relative; display: grid; gap: 13px; padding: 30px; }
h1 { margin: 0 0 9px; font-size: 31px; letter-spacing: -.045em; }
label { font-size: 14px; color: #c3cbe3; }
input, button { font: inherit; }
input { min-width: 0; padding: 11px 12px; border: 1px solid #687399; border-radius: 9px; background: #101526; color: #f6f5fe; }
.close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: #c3cbe3; font-size: 24px; cursor: pointer; }
.submit { min-height: 44px; border: 0; border-radius: 9px; background: #bdabff; color: #171329; font-weight: 700; cursor: pointer; }
.submit:hover { background: #d6caff; }
.access-error { margin: 0; color: #ffc3bb; font-size: 13px; line-height: 1.5; }
