:root { color-scheme: dark; --gold: #ffcc00; --muted: #c4c4c4; --ink: #f5f5f5; }
* { box-sizing: border-box; }
body { margin: 0; background: #333; color: var(--ink); font: 16px Georgia, 'Times New Roman', serif; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffdc4d; outline-offset: 4px; }
[hidden] { display: none !important; }
.masthead { height: 58px; padding: 0 36px; display: flex; align-items: center; justify-content: center; position: sticky; top: 0; z-index: 2; background: #333; border-bottom: 2px solid #c7c9ca; box-shadow: 0 3px 8px #0009; }
.masthead::after, footer::before { content: ''; position: absolute; left: calc(50% - 7px); width: 14px; height: 14px; background: #333; border: 2px solid #c7c9ca; box-shadow: inset 0 0 0 3px #333; transform: rotate(45deg); }
.masthead::after { bottom: -8px; }
.brand { color: var(--gold); text-decoration: none; font-size: 34px; letter-spacing: 1.5px; font-variant: small-caps; line-height: 1; text-shadow: 0 2px 2px #0008; }
.alpha-label { display: none; }
.masthead nav { position: absolute; right: 36px; color: #b7b7b7; font-size: 16px; }
main { position: relative; display: grid; place-items: center; min-height: calc(100svh - 172px); padding: 54px 24px 86px; isolation: isolate; }
.landscape { position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0005, #0005), url('/assets/castle.png') center center / cover no-repeat; }
.card { position: relative; width: min(100%, 526px); padding: 24px 24px 26px; text-align: center; background: #202020; border: 2px solid var(--gold); border-radius: 22px; }
h1 { color: var(--gold); font-size: 34px; font-weight: 400; line-height: 1.2; margin: 0 0 24px; }
h1:focus { outline: none; }
.eyebrow { margin: 0 0 15px; color: #ddd; font-size: 12px; letter-spacing: 1.6px; }
#playnow-panel > .eyebrow { display: none; }
.intro { margin: 0 0 26px; color: #fff; font-size: 20px; line-height: 1.4; }
p { line-height: 1.5; }
.button { display: block; width: 100%; max-width: 406px; min-height: 68px; margin: 26px auto 0; padding: 13px 15px; border: 3px solid transparent; border-radius: 10px; color: #fff; font-size: 28px; font-weight: 400; line-height: 1.3; text-decoration: none; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 2px #fff; transition: background .15s; }
.primary { background: #f36b21; border-color: #f36b21; }
.primary:hover { background: #ff7a2f; border-color: #ff7a2f; }
.secondary { max-width: 324px; min-height: 58px; padding: 13px 12px; background: #34394d; border-color: #34394d; font-size: 20px; font-weight: 400; box-shadow: inset 0 0 0 1px #fff; }
.secondary:hover { background: #434a62; border-color: #434a62; }
.button:disabled { background: #555; border-color: #555; color: #ddd; cursor: default; }
.entry-actions > .primary { margin-top: 0; }
.divider { display: flex; align-items: center; gap: 8px; margin: 32px 0 18px; color: #fff; font-size: 18px; line-height: 1.2; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--gold); }
#play-client-intro { margin: 0; color: #fff; font-size: 18px; line-height: 1.3; }
#playnow-panel > h1 { margin-bottom: 18px; }
#playnow-panel > .intro { margin-bottom: 26px; font-size: 20px; }
.fine { margin: 18px 0 0; color: #c5c5c5; font-size: 13px; line-height: 1.4; }
#playnow-panel > .fine { margin-top: 10px; font-size: 12px; }
#playnow-panel > [data-client-hint] { margin-top: 20px; }
#playnow-panel > .quiet { display: none; }
.quiet { display: inline-block; margin-top: 20px; color: #c5c5c5; font-size: 14px; }
.back { display: block; margin: 0 0 16px; color: #c5c5c5; text-align: left; font-size: 13px; }
#register-panel > .intro { display: none; }
form { text-align: left; }
label { display: block; margin: 28px 0 9px; color: #e5e5e5; font-size: 16px; font-weight: 600; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-height: 43px; padding: 9px 13px; border: 2px solid #a4a4a4; border-radius: 8px; background: #f6f6f6; color: #292929; }
input::placeholder { color: #777; opacity: 1; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.reveal { position: absolute; right: 6px; top: 4px; height: 35px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: #666; cursor: pointer; font-size: 13px; }
.hint { margin: 9px 0 0; color: #c5c5c5; font-size: 12px; line-height: 1.4; }
.notice { margin: 22px 0; color: #ddd; text-align: left; font-size: 14px; line-height: 1.4; }
.feedback { margin: 0; min-height: 0; color: #ffc69f; font-size: 14px; line-height: 1.5; }
.feedback:not(:empty) { margin: 17px 0 9px; }
.key-actions { display: flex; gap: 12px; margin-top: 15px; }
.small-button { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; background: #34394d; color: #fff; cursor: pointer; font-size: 14px; }
.small-button:hover { background: #434a62; }
textarea { resize: none; font: 14px ui-monospace, Consolas, monospace; line-height: 1.5; overflow-wrap: anywhere; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; text-align: left; }
.check input { width: 18px; height: 18px; flex: none; margin: 1px 0; accent-color: #f36b21; }
footer { position: relative; min-height: 114px; padding: 20px 20px 18px; border-top: 2px solid #c7c9ca; background: #333; color: #bbb; text-align: center; }
footer::before { top: -8px; }
.footer-brand { color: #eee; font-size: 24px; letter-spacing: 2px; }
footer p { margin: 5px 0 13px; color: #b7b7b7; font-size: 10px; letter-spacing: 1.3px; line-height: 1.2; }
footer div { display: flex; justify-content: center; gap: 7px; font-size: 14px; line-height: 1.3; }
footer div > span { color: #bbb; }
.noscript { margin: 15px; text-align: center; }
@media (min-width: 1800px) { .landscape { background-position: center 42%; } }
@media (max-width: 600px) {
  .masthead { padding: 0 16px; }
  .brand { font-size: 30px; letter-spacing: 1px; }
  .masthead nav { display: none; }
  main { padding: 34px 14px 42px; }
  .landscape { background-position: 53% center; }
  .card { padding: 26px 20px; border-radius: 22px; }
  h1 { font-size: 28px; }
  .intro, #playnow-panel > .intro { font-size: 18px; }
  .button { min-height: 58px; padding: 13px 10px; font-size: 22px; }
  .secondary { min-height: 54px; font-size: 18px; }
  #play-client-intro { font-size: 17px; }
  .divider { margin-top: 26px; }
  footer div { gap: 7px; font-size: 12px; }
}
@media (max-width: 360px) {
  main { padding-left: 10px; padding-right: 10px; }
  .brand { font-size: 28px; }
  .card { padding: 24px 17px; }
  h1 { font-size: 26px; }
  .button { font-size: 19px; }
  .secondary { font-size: 16px; }
  .intro, #playnow-panel > .intro { font-size: 17px; }
  #play-client-intro { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* The scrolling presentation leads to the existing account and download card. */
.presentation-view main { display: block; min-height: 0; padding: 0; background: #1f1f1f; }
.presentation-view main > .landscape { display: none; }
.presentation { width: 100%; }
.home-hero { position: relative; display: grid; align-items: center; min-height: calc(100svh - 58px); padding: 70px 36px 150px; background: linear-gradient(90deg, #0005, #0002), url('/assets/castle.png') center 42% / cover no-repeat; isolation: isolate; }
.home-hero::after { content: ''; position: absolute; inset: auto 0 -1px; height: 180px; background: linear-gradient(transparent, #1f1f1f); pointer-events: none; z-index: -1; }
.hero-content { display: grid; grid-template-columns: 440px 1fr; align-items: center; gap: 100px; width: min(100%, 1280px); margin: 0 auto; }
.hero-card { padding: 38px 32px 32px; border: 1px solid #b9b9b988; border-radius: 26px; background: #1f1f1fd9; text-align: center; box-shadow: 0 12px 45px #0006; }
.hero-logo { margin: 0; color: #ffcc00; font-size: 62px; font-variant: small-caps; letter-spacing: 1px; text-shadow: 0 3px 5px #000; }
.hero-subtitle { margin: 12px 0 28px; color: #fff; font-size: 22px; }
.hero-card .button { margin-top: 0; font-size: 28px; }
.hero-return { display: inline-block; margin-top: 21px; color: #eee; font-size: 16px; }
.hero-intro { margin: 24px 0 0; color: #eee; font-size: 18px; line-height: 1.55; }
.hero-tagline { margin: 0; color: #ffcc00; font-size: clamp(38px, 3.2vw, 60px); line-height: 1.2; text-shadow: 0 3px 8px #000, 0 0 28px #0009; }
.feature-list { width: min(100%, 1240px); margin: 0 auto; padding: 0 36px; }
.feature { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 70px; padding: 84px 0; border-top: 1px solid #aeb0b3; }
.feature::before, .home-finale::before { content: ''; position: absolute; top: -7px; left: calc(50% - 6px); width: 12px; height: 12px; border: 1px solid #c7c9ca; background: #1f1f1f; transform: rotate(45deg); }
.feature figure { margin: 0; }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.feature:nth-child(even) figure { order: 2; }
.feature h2, .home-finale h2 { margin: 0 0 25px; color: #ffcc00; font-size: 38px; font-weight: 400; line-height: 1.2; }
.feature p { margin: 0; color: #eee; font-size: 22px; line-height: 1.6; }
.home-finale { position: relative; padding: 72px 0 80px; border-top: 1px solid #aeb0b3; text-align: center; }
.home-finale .button { margin-top: 32px; }
.home-finale p { margin: 22px 0 0; color: #bbb; font-size: 15px; }
footer .art-credit { margin: 12px 0 0; color: #aaa; font-size: 10px; letter-spacing: 0; }
@media (max-width: 1000px) {
  .hero-content { grid-template-columns: minmax(320px, 420px) 1fr; gap: 45px; }
  .hero-logo { font-size: 54px; }
  .hero-tagline { font-size: 38px; }
  .feature { gap: 36px; }
  .feature h2 { font-size: 32px; }
  .feature p { font-size: 20px; }
}
@media (max-width: 720px) {
  .home-hero { min-height: calc(100svh - 58px); padding: 45px 20px 95px; background-position: 53% center; }
  .hero-content { display: flex; flex-direction: column; gap: 38px; }
  .hero-card { width: min(100%, 440px); padding: 30px 23px; }
  .hero-logo { font-size: 50px; }
  .hero-subtitle { font-size: 20px; }
  .hero-card .button { font-size: 24px; }
  .hero-tagline { font-size: 34px; text-align: center; }
  .feature-list { padding: 0 24px; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .feature:nth-child(even) figure { order: 0; }
  .feature h2, .home-finale h2 { font-size: 31px; }
  .feature p { font-size: 19px; line-height: 1.6; }
  .home-finale { padding: 50px 0 60px; }
}
@media (max-width: 360px) {
  .home-hero { padding-left: 14px; padding-right: 14px; }
  .hero-card { padding: 28px 17px; }
  .hero-logo { font-size: 44px; }
  .hero-card .button { font-size: 21px; }
  .hero-tagline { font-size: 29px; }
  .feature-list { padding: 0 20px; }
  .feature h2, .home-finale h2 { font-size: 28px; }
  .feature p { font-size: 18px; }
}
