/* Player site (web.public_url, templates player_*.html and apply_*.html): header with navigation, start page,
   'Your account' and admin applications (designs 'Apply-Variants' agreed 2026-12-01/02: start with intro and round
   card, linking with a progress line, one question per screen). Mobile first; status always in words too (a dot is
   only extra). */

.player-site { --apply-open: var(--online); --apply-max: 1100px; }
.player-main { max-width: var(--apply-max); margin: 0 auto; padding: 24px 16px 80px; display: flex; flex-direction: column; gap: 24px; }

/* Header */
.player-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 60px; padding: 8px 16px;
  border-bottom: 1px solid var(--border); background: rgba(15, 15, 15, .94); }
.player-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none;
  font: 700 1.1rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.player-wordmark { display: block; height: 32px; width: auto; }  /* assets/logo_text.*: logo with the name */
.player-brand .logo { width: 26px; height: 26px; object-fit: contain; flex: none; }
.player-nav { display: flex; gap: 4px; order: 3; width: 100%; }
.player-nav a { padding: 6px 10px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent;
  font: 700 .85rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.player-nav a:hover { color: var(--text); }
.player-nav a.active { color: var(--text); border-bottom-color: var(--accent); }
@media (min-width: 640px) { .player-nav { order: 0; width: auto; margin-right: auto; } .player-brand { margin-right: 12px; } }
/* Signed in: avatar and name open a menu (account, applications, sign out) - details.dropdown, closed by app.js */
.player-menu { position: relative; }
.player-menu > summary { list-style: none; cursor: pointer; }
.player-menu > summary::-webkit-details-marker { display: none; }
.player-user { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px 4px 4px;
  border: 1px solid transparent; font-size: .9rem; }
.player-user::after { content: "▾"; color: var(--muted); font-size: .75rem; }
.player-user:hover, .player-menu[open] > .player-user { border-color: var(--border); background: var(--surface); }
.player-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #5865f2; color: #fff; font: 700 .7rem var(--font-head); box-shadow: 0 0 0 1px var(--border); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-user-name { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.player-menu .player-menu-list { position: absolute; top: calc(100% + 4px); right: 0; left: auto; z-index: 20; min-width: 240px;
  display: flex; flex-direction: column; padding: 6px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.player-menu-who { padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.player-menu-who b { color: var(--text); font-weight: 600; }
.player-menu-list a, .player-signout { display: flex; align-items: center; min-height: 36px; padding: 0 10px; text-decoration: none;
  color: var(--text); font: 500 .9rem var(--font-text); letter-spacing: 0; text-transform: none; }
.player-menu-list a:hover, .player-signout:hover { background: var(--surface-2); }
.player-menu-list form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--border); }
.player-menu .player-signout { width: 100%; justify-content: flex-start; padding: 0 10px; border: 0; background: none;
  color: var(--danger-text); cursor: pointer; }
.player-menu .player-signout:hover { color: var(--danger-text); background: var(--surface-2); border: 0; }

/* Join our Discord: quiet outline next to the sign in (Discord's blurple only on the logo) */
.player-join { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font: 700 .78rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.player-join:hover { border-color: #5865f2; background: rgba(88, 101, 242, .12); }
.player-join-logo { width: 18px; height: 14px; flex: none; color: #8c95f5; }
@media (max-width: 520px) { .player-join span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .player-join { padding: 0 10px; } }

/* Sign in with Discord: Discord's blurple with its logo, cut corner like our primary buttons */
.player-discord { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 0 18px 0 14px;
  background: #5865f2; color: #fff; text-decoration: none; font: 700 .8rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color .15s; }
.player-discord:hover { background: #4752c4; color: #fff; }
.player-discord:focus-visible { clip-path: none; }
.player-discord-logo { width: 20px; height: 16px; flex: none; }
.player-discord.is-big { min-height: 48px; padding: 0 24px 0 18px; font-size: .9rem; align-self: flex-start; }
.player-discord.is-big .player-discord-logo { width: 24px; height: 19px; }
.player-plain { min-height: auto; padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline;
  font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; }
.player-plain:hover { color: var(--text); border: 0; }

/* Apply page: intro, round cards, earlier rounds */
.apply-hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.apply-intro { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.apply-intro h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.05; }
.apply-intro p { margin: 0; color: #c3c5bf; max-width: 56ch; }
.apply-needs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.apply-needs li::before { content: "✓ "; color: var(--accent); }
.apply-cards { flex: 0 1 400px; display: flex; flex-direction: column; gap: 16px; min-width: min(100%, 300px); }
.apply-round-card { padding: 0; display: flex; flex-direction: column; border-color: #3d3a2c; }
.arc-top { padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.arc-top h2 { margin: 0; font-size: 1.9rem; line-height: 1.1; }
.arc-time { padding: 0 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.arc-dates { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
.arc-dates b { color: var(--text); }
.arc-bar { height: 6px; background: var(--border); position: relative; }
.arc-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--apply-open); }
.arc-facts { margin: 0; padding: 14px 22px; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #141514; }
.arc-facts b { display: block; font: 600 1.25rem var(--font-data); }
.arc-facts span { font-size: .78rem; color: var(--muted); }
.arc-action { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.arc-action p { margin: 0; }
.arc-mine { color: var(--online); }
.apply-wide { width: 100%; min-height: 44px; font-size: .9rem; }

/* Status pills: text first, the dot only adds the color */
.apply-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; white-space: nowrap;
  font: 700 .75rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.apply-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.apply-status.is-open { color: var(--apply-open); }
.apply-status.is-soon { color: var(--accent); }
.apply-status.is-pending { color: #6fa8ff; }
.apply-status.is-pending .apply-dot { background: transparent; border: 1.5px solid currentColor; }
.apply-status.is-done .apply-dot { background: transparent; border: 1.5px solid currentColor; width: 7px; height: 7px; }

.apply-earlier { display: flex; flex-direction: column; gap: 10px; }
.apply-earlier h2 { margin: 0; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.apply-list { padding: 0; }
.apply-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #262826; }
.apply-list-row:last-child { border-bottom: 0; }
.apply-list-title { font-weight: 600; grid-column: 1 / -1; }
.apply-list-when { color: var(--muted); font-size: .85rem; text-align: right; }
.apply-you { margin-left: 6px; font-size: .78rem; font-weight: 400; color: var(--online); }
.apply-hint { font-size: .8rem; color: var(--muted); margin: 0; }
@media (min-width: 700px) {
  .apply-list-row { grid-template-columns: minmax(0, 1fr) 220px 140px; }
  .apply-list-title { grid-column: auto; }
}

/* A round: narrow column */
.player-narrow { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.player-back { font-size: .85rem; color: var(--muted); text-decoration: none; }
.player-back:hover { color: var(--text); }
.player-title { font-size: clamp(1.6rem, 5vw, 1.9rem); }
.player-lead, .player-text { margin: 0; color: #c3c5bf; }
.player-text { white-space: pre-line; }
.player-box { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.player-box h1 { font-size: 1.9rem; }
.player-box h2 { margin: 0; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; }
.player-box p { margin: 0; }
.player-box.is-accent { border-color: var(--accent); }
.player-box form { margin: 0; }
.player-notice { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.small { font-size: .85rem; }
.player-how { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 4px; }

/* Progress line: ✓ Discord · ● Game account · ○ Application (symbol and word say the state, color adds to it) */
.apply-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.apply-steps li { padding-top: 8px; border-top: 3px solid var(--border); color: var(--muted); min-width: 0;
  font: 700 .75rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.apply-steps li.is-done { border-top-color: var(--online); color: var(--online); }
.apply-steps li.is-now { border-top-color: var(--accent); color: var(--accent); }
.apply-steps.is-status li { font: .85rem var(--font-text); letter-spacing: 0; text-transform: none; display: flex; flex-direction: column; gap: 2px; }
.apply-steps.is-status li b { font: 700 .75rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.apply-steps.is-status li.is-done, .apply-steps.is-status li.is-now { color: var(--text); }
.apply-steps.is-status li.is-done b { color: var(--online); }
.apply-steps.is-status li.is-now b { color: var(--accent); }

/* Linking */
.player-command { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.player-command code { font: 600 clamp(1.2rem, 5vw, 1.6rem) var(--font-data); color: var(--accent); user-select: all; overflow-wrap: anywhere; }
.player-wait { font-size: .85rem; color: var(--muted); }
@keyframes player-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.player-pulse { color: var(--accent); animation: player-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .player-pulse { animation: none; } }
.apply-accounts { display: flex; flex-direction: column; gap: 8px; }
.apply-accounts .button { align-self: flex-start; margin-top: 6px; }

/* One question per screen */
.apply-form-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.apply-saved { font-size: .85rem; color: var(--muted); }
.apply-question { display: flex; flex-direction: column; gap: 18px; padding: 12px 0; margin: 0; }
.apply-count { font: 600 .8rem var(--font-data); color: var(--muted); text-transform: uppercase; }
.apply-progress { height: 3px; background: var(--border); position: relative; display: block; }
.apply-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.apply-q { display: block; font: 700 clamp(1.35rem, 4.5vw, 1.9rem)/1.2 var(--font-head); padding: 0; }
.apply-req { font: 600 .75rem var(--font-text); color: var(--accent); margin-left: 6px; vertical-align: middle; }
.apply-desc { margin: -8px 0 0; font-size: .95rem; color: var(--muted); white-space: pre-line; }
.apply-field { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 10px 12px;
  font: 1.05rem/1.5 var(--font-text); border-radius: 0; }
.apply-field:focus { outline: none; border-color: var(--accent); }
textarea.apply-field { min-height: 12rem; resize: vertical; }
.apply-choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.apply-choices legend { margin-bottom: 10px; }
.apply-option { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 14px; cursor: pointer;
  border: 1px solid var(--border); background: #141514; font-size: 1rem; }
.apply-option:hover { border-color: #5a5c58; }
.apply-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.apply-option:has(input:checked) { border-color: var(--accent); background: rgba(227, 167, 47, .06); }
.apply-option > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.apply-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.apply-nav .button { min-height: 44px; }
.apply-overview { margin-left: auto; }
.apply-error { margin: 0; color: var(--danger-text); }

/* Check page */
.apply-check { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.apply-check-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--border);
  border-left-width: 3px; background: var(--surface); text-decoration: none; }
a.apply-check-item:hover { border-color: #5a5c58; }
.apply-check li.is-missing .apply-check-item { border-left-color: var(--danger-text); }
.apply-check-q { font-weight: 600; }
.apply-check-a { color: #c3c5bf; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }
.apply-check-a.is-missing { color: var(--danger-text); }
.apply-send { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.apply-send .button { min-height: 44px; font-size: .9rem; }

/* Sent */
.apply-done { border-color: #3d3a2c; gap: 14px; }
.apply-done-mark { font-size: 1.75rem; color: var(--online); }
.player-message { padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.apply-withdraw { margin: 0; }
.apply-withdraw .player-plain { color: var(--danger-text); font-size: .85rem; }

/* Start page: logo and name only (maintainer's decision 2026-12-03: Apply and Account live in the header) */
.home-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 55vh; text-align: center; }
.home-logo { width: 144px; height: 144px; object-fit: contain; }
.home-wordmark { margin: 0; width: min(100%, 720px); }
.home-wordmark img { display: block; width: 100%; height: auto; }
.home-hero h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.05; }
.home-hero p { margin: 0; color: #c3c5bf; }

/* Your account */
.player-accounts { list-style: none; margin: 0; padding: 0; }
.player-accounts li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.player-accounts li:first-child { border-top: 0; }
.player-accounts li > span { display: flex; flex-direction: column; min-width: 0; }
.player-accounts form { margin: 0; }

/* Footer: footer menu of the website and the copyright line */
.player-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px; border-top: 1px solid var(--border);
  background: #121312; color: var(--muted); font-size: .85rem; }
.player-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.player-foot a { color: var(--muted); text-decoration: none; }
.player-foot a:hover { color: var(--text); }
.player-menu-edit { color: var(--accent) !important; }
