:root {
  --bg:#11191e;
  --deep:#0b1319;
  --panel:#18272d;
  --jade:#223d3e;
  --gold:#d5a768;
  --light:#f1dfba;
  --muted:#c4bcad;
  --line:#7b634a;
  --ember:#633947;
}
.site-header,.site-footer {background:var(--deep)}
.site-header .brand img,.site-footer .brand img {object-fit:contain}
.site-header .brand {white-space:nowrap}
.guild-hero .deck-hero-copy h1 {max-width:8ch;font-size:clamp(54px,6.5vw,108px)}
.guild-hero .hero-art img {width:100%;height:100%;object-fit:cover;object-position:66% 34%}
.guild-hero::after {background:linear-gradient(90deg,#0b1319f7 6%,#0b1319de 28%,#15191d3d 67%,#1f17202b),linear-gradient(0deg,var(--bg),transparent 42%)}
.guild-hero .eyebrow {color:#e8bc86}
.guild-hero .intro {max-width:39ch}
.preview-note {color:var(--muted);font-size:.875rem}
.guild-callout {border-left:3px solid var(--gold);padding:.65rem 1.1rem;background:#17252bcc;margin:1.4rem 0}
.guild-callout p {margin:.4rem 0}
.guild-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:36px}
.guild-card {position:relative;overflow:hidden;min-height:335px;isolation:isolate;border:1px solid var(--line);display:grid;align-items:end}
.guild-card img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.guild-card::after {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#0b1319f5 10%,#0b1319ca 54%,#0b131927)}
.guild-card > div {padding:clamp(20px,4vw,36px);max-width:55ch}
.guild-card h2 {margin:0;font:400 clamp(28px,4vw,41px)/1.07 var(--serif)}
.guild-card p {margin:.55rem 0}
.guild-card .guild-rule {color:#f1cb94;font-size:.9rem}
.guild-profile-note {font-size:.9rem;color:var(--muted);margin:0 0 1rem}
.guild-profile-art {border:1px solid var(--line);overflow:hidden}
.guild-profile-art img {width:100%;max-height:660px;object-fit:cover;object-position:center 24%}
.guild-support-page {margin-bottom:48px}
.guild-support-page .panel {max-width:780px}
.guild-studio-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:680px}
.guild-studio-form label {display:grid;gap:6px}
.guild-studio-form input,.guild-studio-form select {min-width:0;width:100%}
.guild-studio-form button {width:max-content}
.guild-prompt pre {white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font:14px/1.5 Consolas,monospace}
.guild-prompt {border-bottom:1px solid var(--line);padding:14px 0}
.guild-prompt summary {cursor:pointer}
.guild-arena-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.guild-arena-pair .deck-card {width:100%;max-width:260px}
.guild-empty {padding:20px 0 32px}
.guild-archive {padding-bottom:44px}
.guild-archive .deck-grid {margin-top:18px}
.guild-profile-actions {display:flex;flex-wrap:wrap;gap:.8rem;margin:1rem 0}
.guild-profile-actions button {cursor:pointer}
.guild-rank-tabs {margin-bottom:1rem}
.arena-record {margin-bottom:2rem}
.header-draw {white-space:nowrap}
@media(max-width:800px) {
  .site-header nav {flex-wrap:wrap}
  .guild-hero .hero-art img {object-position:61% center}
}
@media(max-width:560px) {
  .guild-hero::after {background:linear-gradient(0deg,#11191e 22%,#11191edb 45%,#11191e18 98%)}
  .guild-hero .deck-hero-copy h1 {font-size:clamp(49px,14vw,70px)}
  .guild-grid {grid-template-columns:1fr}
  .guild-studio-form {grid-template-columns:1fr}
  .guild-arena-pair {gap:8px}
  .header-draw {display:none}
}
