/* Sign in, the add-or-new question, and the account page. Loads after /styles.css and reuses its nav and colours. */

:root {
  --sky: #070c18;
  --plate: #0c1528;
  --line: rgba(205, 162, 86, 0.28);
  --soft: #9aa3b8;
  --hanko: #c9281f;
  --display: "Dela Gothic One", "Nunito Sans", sans-serif;
}

body.acct { background: var(--sky); }
.acct h1, .acct h2 { margin: 0; font-family: var(--display); font-weight: 400; color: #fff; text-wrap: balance; }
.acct p { margin: 0; }
.acct [hidden] { display: none !important; }

.notice { padding: 12px 14px; border-left: 3px solid var(--hanko); background: rgba(201, 40, 31, 0.14); font-weight: 700; line-height: 1.45; }
.practice { padding: 10px 14px; border: 1px dashed #7d8796; color: #c3cad8; font-size: 14px; font-weight: 700; }

/* ---------- Buttons ---------- */

.way, .plain { font: inherit; border-radius: 3px; cursor: pointer; transition: filter 0.15s, border-color 0.15s, background 0.15s; }
.way { display: grid; grid-template-columns: 62px 1fr; align-items: center; width: 100%; height: 60px; padding: 0; border: 1px solid transparent; text-align: left; font-size: 18px; font-weight: 800; }
.way__mark { display: grid; place-items: center; height: 100%; }
.way--hytale { grid-template-columns: 62px 1fr; column-gap: 18px; }
.way__mark i { font-size: 24px; }
.way__mark img { height: 38px; width: auto; }
.way__mark .g { width: 24px; height: 24px; }
.way:hover { filter: brightness(1.07); }
.way--hytale { color: #1c1405; background: linear-gradient(180deg, #ffd56a 0%, #f8c34b 50%, #f0b136 100%); border-color: #ffe39c; }
.way--hytale .way__mark { background: #16233f; border-radius: 2px 0 0 2px; }
.way--discord { color: #fff; background: #5865f2; border-color: #7b86ff; }
.way--google { color: #1f1f1f; background: #fff; border-color: #747775; }
.way:disabled, .plain:disabled { opacity: 0.55; cursor: default; filter: none; }

.plain { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1px solid rgba(214, 200, 170, 0.3); background: rgba(4, 8, 17, 0.5); color: #f4ebd8; font-size: 15px; font-weight: 800; }
.plain:hover { border-color: var(--gold); background: rgba(246, 192, 74, 0.08); }
.plain--gold { border-color: #ffe39c; background: linear-gradient(180deg, #ffd56a, #f0b136); color: #1c1405; }
.plain--gold:hover { background: linear-gradient(180deg, #ffdd85, #f5bb48); }
.plain--red { border-color: rgba(224, 92, 80, 0.75); color: #ffb3a9; }
.plain--red:hover { border-color: #ff8375; background: rgba(201, 40, 31, 0.2); }
.plain--bare { border-color: transparent; background: none; color: var(--soft); }
.plain--bare:hover { border-color: transparent; background: none; color: #fff; }
.plain--big { width: 100%; min-height: 58px; font-size: 17.5px; }

/* ---------- The gate: village street on the left, sign-in on the right ---------- */

.gate { display: grid; grid-template-columns: 1fr minmax(420px, 34%); min-height: 100svh; }
.gate__scene { position: relative; display: grid; place-items: center; padding: var(--nav-h) 40px 0; overflow: hidden; background: linear-gradient(90deg, rgba(7, 12, 24, 0) 60%, rgba(7, 12, 24, 0.5)), linear-gradient(180deg, rgba(7, 12, 24, 0.4), rgba(10, 17, 40, 0.3) 45%, rgba(7, 12, 24, 0.75)), url("/assets/poster.jpg") 46% 50% / cover; }
.gate__scene img { width: min(620px, 82%); height: auto; filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.6)); }
.gate__panel { position: relative; display: grid; align-items: center; padding: calc(var(--nav-h) + 32px) clamp(24px, 3.4vw, 64px) 48px; background: linear-gradient(180deg, #0d172d, #070c18); border-left: 2px solid transparent; border-image: linear-gradient(180deg, transparent 6%, #b98a34 30%, #f7c35c 50%, #b98a34 70%, transparent 94%) 1; }
.gate__in { display: grid; gap: 18px; width: min(430px, 100%); margin-inline: auto; }
.gate h1 { font-size: clamp(34px, 3vw, 46px); line-height: 1.08; overflow-wrap: anywhere; }
.gate__lead { font-size: 17px; line-height: 1.5; color: #cfd5e2; }
.gate__lead b { color: #fff; overflow-wrap: anywhere; }
.gate__note { font-size: 15px; color: var(--soft); }
.ways { display: grid; gap: 12px; }
.ways__else { margin-top: 10px !important; font-size: 15px; color: var(--soft); font-weight: 700; }
.here, .answers { display: grid; gap: 12px; }
#question { display: grid; gap: 18px; }

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; grid-template-rows: 34svh 1fr; }
  .gate__scene img { width: min(300px, 58vw); }
  .gate__panel { align-items: start; padding: 32px 20px 48px; border-left: 0; border-top: 2px solid #b98a34; border-image: none; }
}

/* ---------- The account page ---------- */

.record { width: min(880px, 100% - 40px); min-height: 100svh; margin-inline: auto; padding: calc(var(--nav-h) + clamp(32px, 6vh, 72px)) 0 80px; }
.record > .notice { margin-bottom: 22px; }
.record .practice { margin-bottom: 26px; }
.record__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.record h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; overflow-wrap: anywhere; }
.record h2 { margin: 44px 0 14px; font-size: 24px; }

.rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; min-height: 72px; background: var(--plate); border: 1px solid rgba(160, 170, 192, 0.16); border-radius: 3px; }
.row--primary { border-color: var(--line); background: linear-gradient(90deg, rgba(246, 192, 74, 0.12), var(--plate) 46%); }
.row__mark { display: grid; place-items: center; }
.row__mark img { height: 38px; width: auto; }
.row__mark i { font-size: 25px; color: #8f9bff; }
.row__mark .g { width: 23px; height: 23px; }
.row__name { padding: 12px 12px 12px 0; min-width: 0; }
.row__name b { display: block; font-size: 18.5px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.row__name span { display: block; font-size: 13.5px; font-weight: 600; color: var(--soft); overflow-wrap: anywhere; }
.row__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; padding: 12px 14px 12px 0; }
.row--off .row__name b { color: #c6ccd8; }
.row--off .row__mark { filter: grayscale(1); opacity: 0.6; }

/* The primary carries the site's red seal. */
.primary { display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--cream); font-size: 15px; font-weight: 800; }
.primary::before { content: "忍"; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 4px; background: radial-gradient(circle at 35% 30%, #d8382a, #a91d16 75%); color: #fde9cf; font: 900 17px/1 "Noto Serif JP", "Yu Mincho", serif; box-shadow: inset 0 0 0 1.5px rgba(255, 232, 205, 0.55); transform: rotate(-6deg); }

.add { justify-self: start; margin-top: 10px; }
.add img { height: 22px; width: auto; }

.record__end { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(160, 170, 192, 0.16); }

.ask { width: min(440px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 3px; background: #0b1326; color: var(--text); }
.ask::backdrop { background: rgba(3, 6, 14, 0.8); }
.ask h2 { margin: 0 0 10px; font-size: 25px; overflow-wrap: anywhere; }
.ask p { margin-bottom: 20px; line-height: 1.5; color: #cfd5e2; }
.ask__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* The nav button once signed in: the name instead of "Sign In". */
.btn-signin b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }

@media (max-width: 620px) {
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row__acts { grid-column: 2; justify-content: flex-start; padding: 0 12px 12px 0; }
  .row__acts .plain--bare { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .way, .plain { transition: none; }
}
