/* Account and download pages follow the metal shell, without changing form behavior. */
.horizon-chronicles :is(.hc-account-flow,.hc-download) p{text-align:start}
.horizon-chronicles .hc-account-empty p{text-align:center}
.hc-main:has(.hc-download)>.hc-page-heading{display:none}

/* Keep secondary, destructive and feedback controls in their existing semantic colors. */
.horizon-chronicles :is(.hc-login,.hc-register) .hc-ticket-form>.hc-button[type=submit],
.horizon-chronicles .hc-create-character .hc-character-submit>.hc-button:not(.hc-button-secondary),
.horizon-chronicles .hc-download-recommended>.hc-button,
.horizon-chronicles .hc-download-terms form>.hc-button{
 color:#f2fff1;border:1px solid #8abd89;border-radius:2px;
 background:linear-gradient(160deg,#457a53,#285840 58%,#1b4035);
 box-shadow:inset 0 1px #e0ffc038,inset 0 -3px #041e2780,0 4px 12px #0003;
 text-shadow:0 1px 2px #09251f;transition:border-color .16s ease,box-shadow .16s ease;
}
.horizon-chronicles :is(.hc-account-flow,.hc-download) .hc-button:focus-visible{
 outline:2px solid #b8ece2;outline-offset:4px;
}
.horizon-chronicles :is(.hc-account-flow,.hc-download) .hc-button:disabled{
 filter:none;cursor:not-allowed;
}

@media(min-width:1101px){
 .horizon-chronicles .hc-account-flow .hc-ticket-form,
 .horizon-chronicles .hc-account-flow .hc-account-card,
 .horizon-chronicles .hc-download :is(.hc-download-card,.hc-download-terms,.hc-download-aside){
  background:linear-gradient(135deg,#273432f2,#101f26f5);
  border-color:#9e93685e;box-shadow:inset 0 1px #d5e4cd0d,0 6px 22px #0002;
 }
 .horizon-chronicles .hc-account-flow .hc-ticket-form{border-top-color:#bea06a}
 .horizon-chronicles .hc-account-flow .hc-ticket-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  color:#f0eee4;background:#0b171c;border-color:#71847d9c;box-shadow:inset 0 2px 5px #0003;
  caret-color:#bce2c5;color-scheme:dark;
 }
 .horizon-chronicles .hc-account-flow .hc-ticket-form :is(input,select,textarea):focus-visible{
  outline:2px solid #b8ece2;outline-offset:3px;border-color:#b8ece2;
 }
 .horizon-chronicles .hc-account-flow .hc-ticket-form :is(input,textarea)::placeholder{color:#9caea9;opacity:1}
 .horizon-chronicles .hc-account-flow .hc-ticket-form label{color:#d9d9c5}
 .horizon-chronicles .hc-account-flow .hc-ticket-form :is(input[type=checkbox],input[type=radio]){accent-color:#75b98e}
 .horizon-chronicles .hc-account-flow .hc-world-card{background:#0d1c22;border-color:#71847d80}
 .horizon-chronicles .hc-account-flow .hc-world-card:has(input:checked){background:#244137!important;border-color:#99c293!important}
 .hc-account-flow .hc-step-number{background:linear-gradient(135deg,#3a4539,#202d2b);border-color:#b9a06b99;color:#f2d9a6;box-shadow:inset 0 1px #e3e6bf1c}
 .horizon-chronicles .hc-account-flow .hc-access-story{
  background:#142329;border-color:#9e936580;
 }
 .hc-account-flow .hc-access-story::before{background:linear-gradient(180deg,#11232b22,#11232bc9 46%,#101f26fa 90%),url("assets/guild.jpg") center 30%/cover}
 .hc-account-flow .hc-access-story-mark{background:linear-gradient(#5f6744e8,#293c33f5);border-color:#d5be8b}
 .hc-account-flow .hc-access-story .hc-button-secondary{background:#172c31cc;border-color:#b6a7789c;color:#f0dbad}
 .hc-account-flow :is(.hc-login-controls,.hc-character-actions,.hc-security-divider){border-color:#9e93684d}
 .hc-account-flow .hc-account-shortcuts{background:#12252b;border-color:#9e93685e}
 .hc-account-flow .hc-account-shortcuts a{border-color:#9e93684d;color:#d2ded5}
 .hc-account-flow .hc-account-shortcuts a:hover{background:#8ca1911a;color:#ffe2b0}
 .hc-account-flow .hc-account-empty{background:#12252b;border-color:#9e936880}
 .horizon-chronicles .hc-account-flow .hc-security-card{border-top-color:#8c9a6c}
 .horizon-chronicles .hc-account-flow .hc-balance{border-top-color:#be945f}
 .horizon-chronicles .hc-account-flow .hc-character{border-left-color:#a87d4a}
 .horizon-chronicles .hc-account-flow .hc-character-deleted{border-left-color:#706452}
 .hc-account-flow .hc-character-level{background:linear-gradient(135deg,#3a4539,#202d2b);border-color:#9e936880}
 .horizon-chronicles .hc-download .hc-download-recommended{
  background:radial-gradient(ellipse at 100% 0,#54795342,transparent 70%),linear-gradient(145deg,#283b33,#13242b);
  border-color:#9db67a85;border-top-color:#bad48a;
 }
 .hc-download-recommended .hc-download-badge{color:#e0f0bf;border-color:#a0ba7a85;background:#a4c4710a}
 .hc-download :is(.hc-download-intro,.hc-download-after,.hc-download-terms form){border-color:#9e936861}
 .hc-download .hc-download-emblem{background:linear-gradient(140deg,#3c4b3c,#15292e);border-color:#bba374}
 .hc-download .hc-download-device-note{background:#102029;border-color:#798a715e;color:#d0d8c7}
 .hc-download .hc-download-steps li{border-color:#7686775c}
 .hc-download .hc-download-steps li[aria-current]{border-color:#bad48a;color:#eff4da}
 .hc-download .hc-download-steps li>span{color:#ddc490}
 .hc-download .hc-download-card>.hc-button-secondary{background:linear-gradient(145deg,#314047,#1b2b33);border-color:#889a8e99;color:#ecdfc1}
 .hc-download .hc-download-card p,.hc-download .hc-download-aside p,.hc-account-flow .hc-world-description{color:#c2cec5}
}

/* The visible sidebar narrows these two columns around laptop widths. */
@media(min-width:901px) and (max-width:1200px){
 .horizon-chronicles .hc-account-flow .hc-login-grid,.hc-download .hc-download-agreement-grid{grid-template-columns:minmax(0,1fr)}
 .horizon-chronicles .hc-account-flow .hc-access-story{min-height:280px;margin-bottom:0}
 .hc-account-flow .hc-story-copy h3{max-width:none}
 .hc-account-flow .hc-story-copy>p:not(.hc-eyebrow){max-width:55ch}
 .hc-register .hc-registration-grid{gap:26px}
 .horizon-chronicles:not(.hc-embedded) .hc-account-flow .hc-ticket-form{padding:26px}
}
@media(prefers-reduced-motion:reduce){
 .horizon-chronicles :is(.hc-account-flow,.hc-download) .hc-button{transition:none}
}
