/* ===== House Tandem additions (loaded after style.css) ===== */
.wordmark {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}
.wordmark b { color: var(--accent-green); font-weight: 800; }
.footer-logo .wordmark { font-size: 1.1rem; opacity: 0.8; }

.hero-studio-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-studio-title b { color: var(--accent-green); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text-primary);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-green);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.game-card > img, .game-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* A game that isn't out yet: not a link, no hover lift, with a badge on the image */
.game-card-media { position: relative; }
.game-card.soon:hover { transform: none; border-color: var(--border-color); background: var(--bg-card); }
.soon-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  background: var(--accent-green); color: #0b1a0c;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
}
.game-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.game-card-body h3 { font-size: 1.25rem; }
.game-card-body p { color: var(--text-secondary); font-size: 0.95rem; flex: 1; }
.game-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.game-card-tags span {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.game-card.featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .game-card.featured { flex-direction: row; }
  .game-card.featured > img { width: 58%; aspect-ratio: auto; }
  .game-card.featured .game-card-body { padding: 2rem; justify-content: center; }
  .game-card.featured h3 { font-size: 2rem; }
}

.game-card-body h3 .game-logo { aspect-ratio: auto; object-fit: contain; width: min(320px, 100%); height: auto; margin: -0.5rem 0 0.25rem -0.5rem; }
.press-card-image img { object-fit: contain; }

/* Brand logo (header, footer, hero) */
.nav-logo, .footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img, .footer-logo img { filter: none; opacity: 1; width: auto; }
.nav-logo .brand-mark { height: 34px; }
.nav-logo .brand-word { height: 15px; }
.footer-logo .brand-mark { height: 26px; }
.footer-logo .brand-word { height: 12px; }
.hero-logo { margin: 0 auto 0.75rem; }
.hero-logo img { width: min(560px, 86vw); height: auto; margin: 0 auto; }
@media (max-width: 420px) { .nav-logo .brand-word { height: 12px; } .nav-logo .brand-mark { height: 28px; } }

.about-logo { filter: none !important; opacity: 1 !important; height: auto; }
.nav-logo .brand-lockup { height: 30px; width: auto; }
.footer-logo .brand-lockup { height: 24px; width: auto; }
.press-svg { text-align: center; margin-top: 1.5rem; color: var(--text-secondary); line-height: 2; }
.game-card-icon {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(46, 243, 60, 0.10), transparent 70%), var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.game-card-icon img { width: 52%; height: auto; }
#games { padding-bottom: 5rem; }

/* ===== Account (account.html + the nav's Sign in / pictures) ===== */
.nav-account { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--border-color); }
.nav-avatar[data-provider="discord"] { box-shadow: 0 0 0 2px #5865f2; }
.nav-avatar[data-provider="steam"] { box-shadow: 0 0 0 2px #66c0f4; }

.account-page { display: flex; justify-content: center; padding-bottom: 4rem; }
.account-card {
  width: 100%; max-width: 520px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px;
  padding: 2.25rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.account-card[hidden] { display: none; }
.account-card h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.15; }
.account-logo { width: 160px; height: auto; }
.account-lede { color: var(--text-secondary); max-width: 34ch; }
.account-note { color: var(--text-muted); font-size: 0.9rem; max-width: 40ch; }
.account-note strong { color: var(--text-secondary); }
.account-error { color: #ff7a7a; font-size: 0.95rem; }
.account-error[hidden] { display: none; }
.btn.account-discord {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #5865f2; color: #fff; border: 0; font-size: 1.05rem; padding: 0.85rem 1.6rem; cursor: pointer;
}
.btn.account-discord:hover { background: #4752c4; color: #fff; }
.btn.account-discord:disabled { opacity: 0.6; cursor: wait; }
.btn.account-steam { display: inline-flex; align-items: center; gap: 0.6rem; background: #171a21; color: #fff; border: 1px solid #66c0f4; font-size: 1.05rem; padding: 0.85rem 1.6rem; cursor: pointer; }
.btn.account-discord, .btn.account-steam { min-width: 15.5rem; justify-content: center; }
.btn.account-steam:hover { background: #2a475e; color: #fff; }
.btn.account-steam:disabled { opacity: 0.6; cursor: wait; }
.account-link { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.9rem; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text-primary); border: 1px dashed var(--border-color); }
.account-link:hover { border-style: solid; }
.account-link:disabled { opacity: 0.6; cursor: wait; }
.account-game { width: 100%; text-align: left; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; padding: 1rem; }
.account-game-head { display: flex; gap: 0.85rem; align-items: center; margin-bottom: 0.9rem; }
.account-game-head img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.account-game-head h2 { font-size: 1.15rem; }
.account-game-head a { font-size: 0.9rem; white-space: nowrap; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; }
.account-stats b { display: block; font-size: 1.35rem; color: var(--accent-green); }
.account-stats span { font-size: 0.78rem; color: var(--text-muted); }
.btn.account-signout { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); cursor: pointer; }
.btn.account-signout:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.account-steps { list-style: none; margin: 0.25rem 0; padding: 0; width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }
.account-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.account-step[hidden] { display: none; }
.account-step [hidden] { display: none !important; }   /* .btn's display would otherwise beat [hidden] */
.account-step-n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  border: 2px solid var(--border-color); color: var(--text-secondary); margin-top: 0.45rem; }
.account-step.done .account-step-n { border-color: var(--accent-green); color: var(--accent-green); }
.account-step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.account-step-text { color: var(--text-secondary); font-size: 0.92rem; margin: 0.45rem 0 0; }
.account-step-body .btn { width: 100%; min-width: 0; justify-content: center; }
.btn.account-playtest { display: inline-flex; align-items: center; gap: 0.6rem; background: #171a21; color: #fff; border: 1px solid #66c0f4; font-size: 1.05rem; padding: 0.85rem 1.2rem; }
.btn.account-playtest:hover { background: #2a475e; color: #fff; }
.btn.account-discord-small { font-size: 0.95rem; padding: 0.6rem 1rem; }
.btn.account-steam-signin { display: inline-flex; align-items: center; gap: 0.6rem; background: #2a475e; color: #fff; border: 1px solid #66c0f4; cursor: pointer; }
.btn.account-steam-signin:hover { background: #356084; color: #fff; }
.btn.account-step-locked:disabled, .btn.account-step-locked:disabled:hover { opacity: 0.6; cursor: not-allowed; background: #2a475e; color: #fff; transform: none; box-shadow: none; }
.account-server-open { font-size: 0.9rem; }
.account-perms { width: 100%; font-size: 0.88rem; color: var(--text-secondary); }
.account-perms summary { cursor: pointer; color: var(--text-muted); padding: 0.2rem 0; }
.account-perms label { display: flex; gap: 0.55rem; align-items: flex-start; padding: 0.3rem 0; }
.account-perms input { margin-top: 0.2rem; accent-color: #5865f2; flex: none; }
#step2-auto[hidden], #step2-invite[hidden] { display: none; }
.account-trouble { width: 100%; max-width: 26rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  border: 1px solid #5865f2; border-radius: 14px; padding: 1rem; background: rgba(88, 101, 242, 0.08); }
.account-trouble[hidden], .account-inapp[hidden] { display: none; }
.account-trouble p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }
.account-trouble .btn { width: 100%; justify-content: center; }
.account-alt { color: var(--text-muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.account-link-steam { border-color: #66c0f4; }
.account-server { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.account-server[hidden], .account-server [hidden] { display: none; }
.account-step-body.account-server { align-items: flex-start; }   /* in the checklist, line up with steps 1 and 3 */
.account-server-member { font-size: 0.9rem; color: var(--accent-green); border: 1px solid var(--accent-green); border-radius: 999px; padding: 0.3rem 0.9rem; }
.account-server-not { font-size: 0.9rem; color: var(--text-muted); }
/* Same shape as the Steam playtest button: dark, outlined in the brand colour, icon + label. */
.btn.account-server-join { display: inline-flex; align-items: center; gap: 0.6rem; background: #171a21; color: #fff; border: 1px solid #5865f2;
  font-size: 1.05rem; padding: 0.85rem 1.2rem; }
.btn.account-server-join:hover { background: #2b2f6b; color: #fff; }
.account-game[hidden] { display: none; }
.account-ach-open { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; width: 100%; margin-top: 0.4rem; padding: 0.8rem; cursor: pointer;
  font: inherit; color: inherit; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; }
.account-ach-open:hover, .account-ach-open:focus-visible { border-color: var(--accent-green); outline: none; box-shadow: 0 0 14px rgba(68, 255, 102, 0.2); }
.account-ach-open b { font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--accent-green); }
.account-ach-open span { font-size: 0.85rem; color: var(--text-muted); }
.account-ach-open .account-ach-see { color: var(--text-secondary); font-weight: 600; }
.account-stats-small { grid-template-columns: repeat(2, 1fr); margin-top: 0.75rem; row-gap: 0.75rem; }
/* Wide enough: every headline stat on one row, however many the game shows */
@media (min-width: 560px) { .account-stats-small { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }
.account-stats-small b { font-size: 1.05rem; }
.account-stats > [hidden] { display: none; }
/* A count whose list has not loaded (or could not): same tile, not yet a button. */
.account-ach-static { cursor: default; }
.account-ach-static:hover { border-color: var(--border-color); box-shadow: none; }
/* Time played · Last played, under each game's title */
.account-play { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 0.6rem; padding: 0; }
.account-play[hidden], .account-play > [hidden] { display: none; }
.account-play > div { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.account-play dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.account-play dd { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.account-summary { font-size: 0.92rem; color: var(--text-secondary); margin: 0.25rem 0 -0.25rem; }
.account-summary[hidden] { display: none; }

/* @usersfirst/ui on this site: its sheets in the site's colours and font, at web sizes
   (the kit's sizes ramp up to TV sizes from 1024px wide; a website stays at these). */
:root { --uf-font-ui: var(--font-body); --uf-color-surface: var(--bg-card); --uf-color-line-soft: var(--border-color); --uf-z-modal: 2000; }
@media (min-width: 1024px) {
  :root { --uf-size-xs: 11px; --uf-size-sm: 13px; --uf-size-md: 16px; --uf-size-lg: 18px; --uf-size-xl: 22px; --uf-size-2xl: 30px; }
}
.account-danger { width: 100%; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.account-danger h2 { font-size: 1rem; color: #ff7a7a; }
.account-danger p { color: var(--text-muted); font-size: 0.88rem; max-width: 40ch; }
.btn.account-delete { background: transparent; color: #ff7a7a; border: 1px solid #ff7a7a55; cursor: pointer; font-size: 0.92rem; }
.btn.account-delete:hover { background: #ff7a7a1a; border-color: #ff7a7a; color: #ff9a9a; }
.account-dialog { margin: auto; max-width: min(30rem, calc(100vw - 32px)); width: 100%; box-sizing: border-box; background: var(--bg-card); color: var(--text-primary); border: 2px solid #ff5c5c; border-radius: 16px; padding: 1.5rem 1.25rem; text-align: left; }
.account-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.account-dialog h2 { font-size: 1.3rem; margin: 0 0 0.75rem; color: #ff7a7a; }
.account-dialog p, .account-dialog li { font-size: 0.95rem; color: var(--text-secondary); }
.account-dialog ul { margin: 0.25rem 0 0.75rem; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.account-warning { background: #ff5c5c1f; border: 1px solid #ff5c5c66; border-radius: 10px; padding: 0.7rem 0.85rem; color: var(--text-primary) !important; }
.account-warning strong { color: #ff8a8a; }
.account-small { font-size: 0.85rem !important; color: var(--text-muted) !important; }
.account-dialog label { display: block; margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.account-dialog input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.1rem; letter-spacing: 0.12em; padding: 0.65rem 0.8rem; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); }
.account-dialog input:focus { outline: 2px solid #ff7a7a; outline-offset: 1px; }
.account-dialog-buttons { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1.1rem; }
.account-dialog-buttons .btn { flex: 1 1 8rem; padding-left: 1rem; padding-right: 1rem; justify-content: center; text-align: center; }
.btn.account-delete-final { background: #d93636; color: #fff; border: 0; cursor: pointer; }
.btn.account-delete-final:hover:not(:disabled) { background: #b82626; }
.btn.account-delete-final:disabled { opacity: 0.4; cursor: not-allowed; }
#account-games { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
#account-games:empty { display: none; }
.account-game-head > div { min-width: 0; }
@media (max-width: 400px) {
  .account-card { padding-left: 1rem; padding-right: 1rem; }
  .account-game { padding: 0.85rem; }
  .account-game-head img { width: 64px; height: 36px; }
}

/* Tandemonium #612 · linking: confirm it's you, the combine screen, recent changes (each with undo). */
.account-ok { color: var(--accent-green); font-size: 0.95rem; }
.account-ok[hidden], .account-fresh[hidden], .account-notices[hidden] { display: none; }
.account-fresh { width: 100%; max-width: 26rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 0 auto;
  border: 1px solid #ffd36b; border-radius: 14px; padding: 1rem; background: rgba(255, 211, 107, 0.08); }
.account-fresh p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; text-align: center; }
.account-notices { width: 100%; max-width: 30rem; margin: 0 auto; text-align: left; }
.account-notices h2 { font-size: 1rem; margin: 0 0 0.5rem; color: var(--text-primary); }
.account-notice-items { display: grid; gap: 0.6rem; }
.account-notices li { border: 1px solid var(--border-color); border-radius: 12px; padding: 0.75rem 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.account-notices li.new { border-color: #ffd36b; background: rgba(255, 211, 107, 0.06); }
.account-notices li p { flex: 1 1 100%; margin: 0; font-size: 0.92rem; color: var(--text-secondary); }
.account-link-quiet { border-style: solid; color: var(--text-muted); }
#step-steam .account-step-body > [hidden] { display: none; }
#account-combine-dialog { border-color: #ffd36b; }
#account-combine-dialog h2 { color: #ffd36b; }
.account-combine { display: flex; align-items: stretch; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.account-combine-card { flex: 1 1 0; min-width: 0; border: 1px solid var(--border-color); border-radius: 12px; padding: 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.account-combine-label { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.account-combine-pic { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.account-combine-name { font-weight: 700; color: var(--text-primary); overflow-wrap: anywhere; }
.account-combine-logins, .account-combine-stats { font-size: 0.85rem; color: var(--text-secondary); }
.account-combine-arrow { align-self: center; font-size: 1.4rem; color: #ffd36b; }
@media (max-width: 420px) {
  .account-combine { flex-direction: column; }
  .account-combine-arrow { transform: rotate(90deg); }
}
