:root {
  --nav: rgba(24, 28, 36, 0.78);
  --ink: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --soft: #f4f6f9;
  --link: #1f6fd6;
  --play-1: #ffcf4d;
  --play-2: #f39a1d;
  --play-edge: #b8650c;
  --danger: #c0392b;
  --ok: #1e8a55;
  --radius: 6px;
  --container: 1140px;
  --font: "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
a { color: var(--link); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Top bar: dark, see-through, fixed over the hero */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 20; background: var(--nav); backdrop-filter: blur(6px); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; }
.brand-mark { font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; color: var(--play-1); }
.brand-sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #dfe6f3; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.nav-links a:hover { color: #fff; }

/* The gold play button */
.btn-play {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 190px; height: 64px; padding: 0 28px; border-radius: 10px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: #3b2200; background: linear-gradient(180deg, var(--play-1), var(--play-2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 4px 0 var(--play-edge), 0 8px 18px rgba(0,0,0,.25);
  transition: filter .15s ease, transform .15s ease;
}
.btn-play:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-play.small { min-width: 0; height: 42px; font-size: .95rem; padding: 0 20px; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 3px 0 var(--play-edge); }

/* Hero: full-width picture, title at the bottom left */
.hero { position: relative; height: 62vh; min-height: 520px; overflow: hidden; color: #fff; background: #4f86c6; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, 1%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,24,.55) 0, rgba(10,14,24,0) 60%), linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(10,14,24,.78) 100%); }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--container); margin: 0 auto; padding: 0 16px 48px; display: flex; align-items: flex-end; gap: 24px; }
.hero-copy { flex: 1; max-width: 680px; }
.hero-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--play-1); }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-copy p { margin: 0 0 10px; color: #e9eef7; }
.text-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }
.text-link:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }

/* Content blocks: heading row with a "More" link, then three cards */
.block { padding: 56px 0; }
.block.alt { background: var(--soft); }
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.block-head h2 { flex: 1; margin: 0; font-size: 1.7rem; }
.block-head a { text-decoration: none; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { min-width: 0; }
.card h3 { margin: 14px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.thumb { position: relative; height: 190px; border-radius: var(--radius); overflow: hidden; background: #2a3140; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .tag { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps b { display: block; margin: 10px 0 4px; font-size: 1.05rem; }
.steps span:not(.step-n) { color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--play-1); font-weight: 800; }

/* Dark showcase sections: world map and classes */
.world, .classes { color: #e8eef2; padding: 64px 0; }
.world { background: linear-gradient(rgba(15,27,31,.88), rgba(15,27,31,.93)), url("/img/art_clockwork.jpg") center / cover no-repeat, #0f1b1f; }
.classes { background: linear-gradient(rgba(17,15,30,.78), rgba(17,15,30,.9)), url("/img/art_guildwar.jpg") center 30% / cover no-repeat, #110f1e; }
.dark-title { text-align: center; margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); font-family: Georgia, "Palatino Linotype", serif; color: #f4ead2; text-shadow: 0 3px 12px rgba(0,0,0,.5); }
.dark-sub { text-align: center; margin: 0 auto 36px; max-width: 640px; color: #c3cdd3; }

.world-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 36px; align-items: center; }
.world-info h3 { margin: 0 0 12px; padding-bottom: 12px; font-size: 2rem; font-family: Georgia, serif; border-bottom: 1px solid rgba(255,255,255,.55); color: #fff; }
.world-info p { color: #d7e0e5; }
.w-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-style: italic; }
.badge { font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #d7e0e5; }
.badge.live { background: var(--play-2); color: #2b1700; }
.world-info img { display: block; width: 100%; height: auto; margin-top: 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

.world-map { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 6px rgba(234,246,250,.85), 0 18px 50px rgba(0,0,0,.55); }
.world-map img { display: block; width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, #fff 0 22%, rgba(255,226,140,.95) 30%, rgba(255,190,60,.55) 52%, rgba(255,190,60,0) 70%); }
.pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,220,120,.85); animation: pulse 2.2s ease-out infinite; }
.pin span { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); white-space: nowrap; font-size: .78rem; font-weight: 700; color: #fff;
  background: rgba(15,27,31,.82); padding: 2px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.pin:hover span, .pin:focus-visible span, .pin.is-active span { opacity: 1; }
.pin.is-active { background: radial-gradient(circle, #fff 0 26%, #ffd257 34%, rgba(243,154,29,.7) 55%, rgba(243,154,29,0) 72%); }
.pin:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pin::after { animation: none; } }
/* Pin positions, as a share of the 1280x960 world map */
.p-flaris   { left: 57.4%; top: 72.9%; }
.p-saint    { left: 69.5%; top: 83.3%; }
.p-rhisis   { left: 75.8%; top: 67.2%; }
.p-darkon12 { left: 43.4%; top: 70.3%; }
.p-darkon3  { left: 26.2%; top: 80.2%; }
.p-shaduwar { left: 54.3%; top: 45.8%; }
.p-risen    { left: 63.3%; top: 31.8%; }
.p-bahara   { left: 45.7%; top: 17.7%; }
.p-kaillun  { left: 60.5%; top: 9.9%; }

.class-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.class-tab { font: inherit; font-weight: 700; color: #d9d4f0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.class-tab:hover { background: rgba(255,255,255,.14); }
.class-tab.is-active { background: linear-gradient(180deg, var(--play-1), var(--play-2)); color: #2b1700; border-color: transparent; }
.class-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 36px; align-items: center; max-width: 980px; margin: 0 auto; }
.class-emblem { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; max-width: 340px; width: 100%; justify-self: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.18), rgba(255,255,255,0) 65%), var(--emblem, #6a4fb3); box-shadow: inset 0 0 0 6px rgba(255,255,255,.12), 0 20px 50px rgba(0,0,0,.45); }
.class-emblem { overflow: hidden; border: 4px solid var(--play-1); }
.class-emblem .em { display: none; width: 100%; height: 100%; object-fit: cover; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: scale(1.04); } }
.class-emblem[data-class="mercenary"] { --emblem: radial-gradient(circle, #c0423a, #6e1d1d); }
.class-emblem[data-class="acrobat"]   { --emblem: radial-gradient(circle, #3e9c58, #1b4d2c); }
.class-emblem[data-class="assist"]    { --emblem: radial-gradient(circle, #d9a43a, #7a5313); }
.class-emblem[data-class="magician"]  { --emblem: radial-gradient(circle, #5a6ee0, #27277a); }
.class-emblem[data-class="mercenary"] .em-mercenary, .class-emblem[data-class="acrobat"] .em-acrobat,
.class-emblem[data-class="assist"] .em-assist, .class-emblem[data-class="magician"] .em-magician { display: block; }
.class-body h3 { margin: 0; font-size: 2.2rem; font-family: Georgia, serif; color: #fff; }
.c-role { margin: 4px 0 14px; color: var(--play-1); font-weight: 700; letter-spacing: .04em; }
.class-body > p { color: #d5d1e6; }
.paths { display: grid; gap: 12px; margin-top: 18px; }
.path { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 4px 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 16px; }
.path .p2, .path .p3 { font-weight: 700; color: #fff; }
.path .p3 { color: var(--play-1); }
.path .arrow { color: #9d97bd; }
.path small { grid-column: 1 / -1; color: #b8b3d1; font-size: .88rem; }

/* Account panels */
.account { background: var(--soft); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 24px; }
.panel { width: min(100%, 480px); background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06); }
.panel.wide { width: 100%; box-sizing: border-box; min-width: 0; }
.panel h2 { margin: 0 0 12px; font-size: 1.4rem; }
.panel h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tabs { display: flex; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--play-2); }

.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; padding: 11px 20px; border-radius: var(--radius); }
.btn.primary { background: linear-gradient(180deg, var(--play-1), var(--play-2)); color: #3b2200; box-shadow: 0 3px 0 var(--play-edge); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: 6px 14px; font-size: .9rem; }
.btn:disabled { opacity: .6; cursor: wait; }

.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .93rem; }
.form input { font: inherit; padding: 10px 12px; border: 1px solid #ced4da; border-radius: var(--radius); background: #fff; min-width: 0; }
.form input:focus { outline: 2px solid #86b7fe; border-color: #86b7fe; }
.form.inline { grid-template-columns: 110px 150px 1fr auto; align-items: end; }
.form.inline.points { grid-template-columns: 150px 130px 130px 1fr auto; }
.form.inline .msg { grid-column: 1 / -1; }
.form .grow { min-width: 0; }
.hint { margin: -4px 0 4px; color: var(--muted); font-size: .85rem; }
.msg { min-height: 1.4em; margin: 4px 0 0; font-weight: 600; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }

.table-wrap { overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .95rem; }
.list th, .list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.list th { color: var(--muted); font-weight: 600; }
.list .revoked td { color: #9aa5b8; text-decoration: line-through; }
.list .blocked td { color: var(--danger); }
.list.accounts td { vertical-align: top; }
.list.accounts td:nth-child(3) { white-space: nowrap; }
.list .char-line { min-width: 16em; }
.list .char-line + .char-line { margin-top: 4px; }
.accounts-head { margin-top: 12px; }
.count { color: var(--muted); font-size: 1rem; font-weight: 600; }
.list button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 4px 10px; cursor: pointer; }

.newcode { background: #fff8e6; border: 1px dashed var(--play-2); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.newcode p { margin: 0 0 6px; }
.newcode code { font-size: 1.35rem; letter-spacing: .08em; font-weight: 700; user-select: all; word-break: break-all; }

/* Footer */
.foot { background: #212529; color: #adb5bd; padding: 40px 0; font-size: .92rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0 0 6px; }
.foot-brand { color: #fff; font-weight: 800; letter-spacing: .1em; }
.foot-brand span { color: var(--play-1); font-weight: 600; letter-spacing: .04em; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: #dee2e6; text-decoration: none; }
.foot-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .world-grid, .class-card { grid-template-columns: 1fr; }
  .world-map { order: -1; }
  .class-emblem { max-width: 220px; }
}
@media (max-width: 720px) {
  .pin { width: 18px; height: 18px; }
  .pin::after { inset: -4px; }
  .pin span { font-size: .7rem; }
  .world, .classes { padding: 44px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { min-height: 480px; }
  .hero-content { flex-direction: column; align-items: stretch; padding-bottom: 28px; }
  .btn-play:not(.small) { width: 100%; height: 56px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form.inline { grid-template-columns: 1fr 1fr; }
  .form.inline .grow, .form.inline button { grid-column: 1 / -1; }
  .form.inline.points { grid-template-columns: 1fr 1fr; }
  .form.inline.points label:first-child { grid-column: 1 / -1; }
  .block { padding: 40px 0; }
}

/* How to join: patcher download */
.download { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.download small { color: var(--muted, #6b6680); }
