* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", Arial, sans-serif;
  --gold: #ddcda9;
  --edge: #9e8e78;
}
body { margin: 0; background: #161512; color: var(--gold); }
button { color: inherit; font: inherit; border: 0; padding: 0; cursor: pointer; background: none; }
button:focus-visible, input:focus-visible { outline: 2px solid #f3d992; outline-offset: 3px; }
.backdrop { position: fixed; inset: 0; overflow: hidden; background: #161512 url("assets/background.png") center / cover no-repeat; }
.backdrop video { display: block; width: 100%; height: 100%; object-fit: cover; }
main { position: relative; display: grid; justify-items: center; align-content: center; min-height: 100vh; min-height: 100svh; padding: 12px 0; }
.card { width: min(502px, 93vw); aspect-ratio: 502 / 802; border: 1px solid var(--edge); background: rgba(0,0,0,.8); container-type: inline-size; }
.interior { font-size: 3.2cqw; padding-top: 6cqw; text-align: center; }
h1 { margin: 0; }
.logo, .subtitle { display: block; height: auto; margin-inline: auto; }
.logo { width: 56.6%; }
.subtitle { width: 84.8%; margin-top: 6.8cqw; }
.login { width: 70%; margin: 2.6cqw auto 0; }
.entry-note { min-height: 3.5cqw; margin: 0; color: #d6c4a3; font-size: max(11px, 2.15cqw); line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.account-line { display: flex; width: 100%; margin-top: 2cqw; padding: 0 3cqw; gap: 3cqw; align-items: center; min-height: 11.3cqw; border-bottom: 2px solid var(--edge); text-align: left; }
.account-line img { width: 6cqw; height: auto; }
.account-line input { flex: 1; width: 0; min-width: 0; align-self: stretch; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--gold); font: 700 max(11px, 2.7cqw) Arial, sans-serif; letter-spacing: .02em; }
.account-line input::placeholder { color: #aaa69f; opacity: 1; }
#login-feedback { margin: 1.5cqw 0 0; color: var(--gold); font-size: max(12px, 2.6cqw); line-height: 1.45; }
#login-feedback:empty { display: none; }
@media (pointer: coarse) {
  .account-line input { font-size: max(16px, 2.7cqw); }
}
.login-action, .dialog-actions button { font-weight: 700; background: linear-gradient(#222, #333 50%, #222); border: 2px solid var(--edge); border-radius: 999px; }
.login-action { width: 100%; height: 12cqw; margin-top: 4cqw; font-size: 3.4cqw; }
.login-action:hover, .dialog-actions button:hover { border-color: #e6d5b0; }
.join-links { display: grid; justify-items: center; margin-top: 1.7cqw; gap: 1.4cqw; }
.join-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; font-size: 3.2cqw; line-height: 1.35; }
.contact-links { display: flex; justify-content: center; gap: .8cqw; margin-top: 5.6cqw; }
.contact-links button { width: 20cqw; border-radius: 20%; }
.contact-links img { display: block; width: 100%; height: auto; }
.contact-links button:hover { filter: brightness(1.18); }
.notice {
  --notice-top: min(18.52vh, 200px);
  position: fixed; top: var(--notice-top); z-index: 2; background: #070706;
  width: min(400px, calc((100vw - 552px) / 2), calc((100dvh - var(--notice-top) - 44px) * .75));
  box-shadow: 0 5px 18px #0009;
}
.notice.first { left: clamp(10px, calc(50vw - 760px), 200px); }
.notice.second { z-index: 3; left: min(calc(100vw - 10px - min(400px, (100vw - 552px) / 2)), calc(50vw + 340px)); }
.poster-close, .poster-close img, .poster-close picture { display: block; width: 100%; height: auto; }
.notice-bar { display: flex; justify-content: space-between; gap: 5px; align-items: center; background: #050505; color: white; min-height: 28px; padding: 0 8px; font: 14px/1.25 Arial, "Malgun Gothic", sans-serif; }
.notice-bar label { display: inline-flex; align-items: center; min-height: 28px; cursor: pointer; }
.notice-bar input { margin: 0 5px 0 0; accent-color: #ae8a54; }
.dismiss { min-height: 28px; white-space: nowrap; }
dialog { position: fixed; width: min(360px, calc(100vw - 36px)); max-height: 90dvh; margin: auto; border: 1px solid var(--edge); padding: 0; background: #171511; color: #eee5d4; box-shadow: 0 12px 60px #0009; }
dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-content { position: relative; padding: 30px 25px 22px; }
.x { position: absolute; right: 9px; top: 5px; font: 25px/34px Arial, sans-serif; width: 34px; }
h2 { margin: 0 0 12px; font-size: 22px; }
#panel-body { margin: 0; line-height: 1.65; font-size: 15px; word-break: keep-all; overflow-wrap: anywhere; }
#panel-privacy { margin: 10px 0 0; color: #d6c4a3; font-size: 13px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
#panel-privacy:empty { display: none; }
#info[data-timed] { inset: 0; height: fit-content; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; }
#info[data-timed] #panel-title:focus { outline: none; }
#info[data-timed][open], #info[data-timed][open]::backdrop { animation: bspot-panel-in 180ms ease-out both; }
#info[data-timed][open][data-closing], #info[data-timed][open][data-closing]::backdrop { animation: bspot-panel-out 180ms ease-in both; }
@keyframes bspot-panel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bspot-panel-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  #info[data-timed][open], #info[data-timed][open]::backdrop,
  #info[data-timed][open][data-closing], #info[data-timed][open][data-closing]::backdrop { animation: none; }
}
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.dialog-actions button { padding: 8px 16px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 999px) {
  .notice { --notice-top: max(8px, min(37vw, 18.52dvh)); width: min(520px, 96.3vw, calc((100dvh - var(--notice-top) - 48px) * .75)); }
  .notice.first, .notice.second { left: 50%; transform: translateX(-50%); }
  .notice-bar, .dismiss, .notice-bar label { min-height: 36px; }
}
@media (max-height: 500px) {
  .notice { --notice-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .backdrop video { visibility: hidden; }
}
.signup-card { container-type: inline-size; width: min(502px, 93vw); border: 1px solid var(--edge); background: #000c; text-align: center; }
.signup-card h1 { padding-top: 6cqw; line-height: 1; }
#signup-form { margin: 0 0 8cqw; }
#signup-code { display: block; width: 70%; margin: 2cqw auto 0; padding: 4cqw; min-height: 44px; border: 0; border-bottom: 2px solid var(--edge); border-radius: 0; color: var(--gold); background: transparent; font: 700 max(13px, 2.8cqw) / 1.2 "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif; text-align: center; }
#signup-code::placeholder { color: #999; opacity: 1; }
#signup-feedback { margin: 2cqw auto 0; width: 83%; color: var(--gold); font-size: max(12px, 2.6cqw); line-height: 1.5; }
#signup-feedback:empty { display: none; }
.signup-actions { display: flex; justify-content: space-around; width: 46%; margin: 4cqw auto 0; }
.signup-actions :is(button, a) { display: grid; place-items: center; width: 45.22%; min-height: max(32px, 7.2cqw); border: 1px solid #525358; border-radius: 3px; background: linear-gradient(#393b3e, #292b2f); color: #fff; font: 500 max(12px, 2.4cqw) / 1.2 "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif; text-shadow: 0 1px #000; text-decoration: none; }
.signup-actions :is(button, a):hover { border-color: var(--edge); }
a:focus-visible { outline: 2px solid #f3d992; outline-offset: 3px; }
.signup-preview .notice { display: none; }
