/* 3ULLCRAFT home page: the brand's colours and type, laid out as cards. */
:root {
  --ink: #050b09;
  --ink-2: #08120e;
  --paper: #eef3e7;
  --muted: #a3b2a8;
  --dim: #74867b;
  --lime: #c9f55b;
  --mint: #5cf0af;
  --line: rgba(238, 243, 231, .12);
  --card: linear-gradient(150deg, rgba(22, 52, 37, .72), rgba(9, 22, 16, .82));
  --card-line: rgba(201, 245, 91, .16);
  --radius: 22px;
  --display: "Archivo Black", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* The hero art, faded into the page behind everything above the fold. */
.glow {
  position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 11, 9, .55) 0%, rgba(5, 11, 9, .82) 55%, var(--ink) 100%),
    radial-gradient(circle at 50% 30%, rgba(92, 240, 175, .14), transparent 45%),
    url("assets/3ullcraft-hero.jpg") center 20% / cover no-repeat;
}

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.kicker { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--lime); text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.035em; line-height: 1.02; font-weight: 400; }
h1 em, h2 em { font-style: normal; color: var(--lime); }
code { font: 700 .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(201, 245, 91, .12); color: var(--lime); padding: 2px 6px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: stretch; min-height: 50px; border-radius: 13px; text-decoration: none; font: 800 14px var(--body); cursor: pointer; overflow: hidden; border: 0; }
.btn > span, .btn > b { display: flex; align-items: center; }
.btn.primary { background: linear-gradient(135deg, var(--lime), var(--mint)); color: #06100b; }
.btn.primary > span { padding: 0 20px; }
.btn.primary > b { padding: 0 16px; border-left: 1px solid rgba(6, 16, 11, .2); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.btn.ghost { background: rgba(5, 11, 9, .45); color: var(--paper); border: 1px solid rgba(238, 243, 231, .22); padding: 0 20px; gap: 12px; }
.btn.ghost > b { color: var(--lime); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost:hover { border-color: rgba(201, 245, 91, .6); }
.btn.wide { width: 100%; justify-content: center; margin-top: 18px; }

/* Announcement bar */
.bar { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 6px 16px; background: linear-gradient(90deg, #183d2b, #2a6440 50%, #183d2b); font-size: 13px; font-weight: 700; text-align: center; }
.bar .dot, .live { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201, 245, 91, .16); flex: none; }
.bar-link { text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; white-space: nowrap; }

/* Navigation */
.nav { position: sticky; top: 12px; z-index: 30; display: flex; align-items: center; gap: 18px; width: min(1180px, calc(100% - 48px)); margin: 14px auto 0; padding: 10px 12px 10px 18px; border-radius: 18px; border: 1px solid rgba(238, 243, 231, .14); background: rgba(6, 13, 10, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand img { display: block; width: 138px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; font-weight: 700; color: #d6e0d8; }
.links a:hover { color: var(--lime); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.lang { display: flex; padding: 3px; border-radius: 10px; border: 1px solid rgba(238, 243, 231, .18); }
.lang button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 800 11px var(--body); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap; }
.pill.discord { background: rgba(92, 240, 175, .12); border: 1px solid rgba(92, 240, 175, .3); }
.pill.shop { background: linear-gradient(135deg, var(--lime), var(--mint)); color: #06100b; }
.pill small { padding: 2px 7px; border-radius: 999px; background: #06100b; color: var(--lime); font-size: 11px; }
.menu { display: none; width: 42px; height: 40px; border-radius: 11px; border: 1px solid rgba(238, 243, 231, .2); background: transparent; cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 4px; }
.menu i { display: block; height: 2px; background: var(--paper); border-radius: 2px; }
.mobile-nav { position: sticky; top: 76px; z-index: 29; display: flex; flex-direction: column; width: min(1180px, calc(100% - 32px)); margin: 8px auto 0; padding: 10px; border-radius: 16px; background: #0b1812; border: 1px solid var(--line); }
.mobile-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.mobile-nav a:hover { background: rgba(201, 245, 91, .08); }

/* Event card with countdown */
.event { margin-top: 26px; display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center; padding: 30px 34px; background: linear-gradient(120deg, rgba(201, 245, 91, .2), rgba(22, 52, 37, .8) 55%, rgba(92, 240, 175, .16)); }
.event h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 10px; }
.event p:not(.kicker) { margin: 0 0 18px; color: #d3dfd6; max-width: 520px; }
.countdown .kicker { text-align: center; color: var(--muted); }
.clock { display: flex; gap: 10px; }
.clock span { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 14px; background: rgba(5, 11, 9, .6); border: 1px solid var(--line); }
.clock b { font: 28px/1 var(--display); }
.clock small { font-size: 10px; letter-spacing: .14em; color: var(--muted); }

/* Hero */
.hero { text-align: center; padding: 70px 0 40px; }
.mascot { width: 168px; height: 168px; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6)); }
.eyebrow { margin: 14px 0 16px; font-size: 12px; font-weight: 800; letter-spacing: .22em; color: #c9d2cb; }
.hero h1 { font-size: clamp(46px, 7.6vw, 104px); letter-spacing: -.05em; line-height: .92; }
.lede { max-width: 640px; margin: 22px auto 30px; font-size: clamp(16px, 1.4vw, 19px); color: #c5d1c8; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(5, 11, 9, .5); font-size: 13px; color: var(--muted); }
.chips b { color: var(--paper); font-weight: 800; margin-right: 3px; }
.chips .chip-live { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); border-color: rgba(201, 245, 91, .3); }
.chips .chip-live b { color: var(--lime); }

/* Play: live status and addresses */
.play { padding: 28px; }
.play-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.play-head h2 { font-size: 26px; }
.live.off { background: #ff6b6b; box-shadow: 0 0 0 5px rgba(255, 107, 107, .16); }
.live.unknown { background: var(--dim); box-shadow: none; }
.count { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.count b { color: var(--lime); font-size: 18px; }
.addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.address { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(5, 11, 9, .55); border: 1px solid var(--line); }
.address small { grid-column: 1; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--dim); }
.address strong { grid-column: 1; font-size: 18px; overflow-wrap: anywhere; }
.address strong em { font-style: normal; color: var(--lime); font-size: 14px; margin-left: 4px; }
.copy-mini { grid-column: 2; grid-row: 1 / 3; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(201, 245, 91, .4); background: rgba(201, 245, 91, .1); color: var(--lime); font: 800 13px var(--body); cursor: pointer; }
.copy-mini:hover { background: rgba(201, 245, 91, .2); }
.hint { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.hint b { color: var(--paper); }

/* Discord linking */
.link { margin-top: 18px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; padding: 32px; }
.link h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.link-copy p:not(.kicker) { color: var(--muted); margin: 0 0 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(5, 11, 9, .5); border: 1px solid var(--line); }
.steps b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--lime), var(--mint)); color: var(--ink); font: 16px var(--display); }
.steps p { margin: 5px 0 0; color: #d3dfd6; }

/* Section headings */
#modes, .duo, .vote, .finale { margin-top: 90px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: clamp(40px, 5.6vw, 76px); }
.section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.section-head.split > p { margin: 0 0 8px; color: var(--muted); font-size: 17px; }

/* Modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode { padding: 28px; position: relative; overflow: hidden; }
.mode.custom { background: linear-gradient(150deg, rgba(46, 70, 36, .75), rgba(12, 24, 14, .85)); }
.mode-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(92, 240, 175, .12); border: 1px solid rgba(92, 240, 175, .3); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.mode-icon { font-size: 30px; color: var(--lime); opacity: .8; }
.mode h3 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 12px; }
.mode p:not(.kicker) { color: var(--muted); margin: 0 0 20px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); }

/* Player heads (team list) */
.head { --s: 26px; width: var(--s); height: var(--s); border-radius: 6px; background-color: #13241c; image-rendering: pixelated; }
.head.skin { background-image: var(--skin), var(--skin); background-repeat: no-repeat; background-size: calc(var(--s) * 8) auto, calc(var(--s) * 8) auto; background-position: calc(var(--s) * -5) calc(var(--s) * -1), calc(var(--s) * -1) calc(var(--s) * -1); }
.head.blank { display: grid; place-items: center; font: 11px var(--display); color: var(--lime); background: rgba(201, 245, 91, .1); }

/* Info cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo.single { grid-template-columns: 1fr; }
.info { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.info h2 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 12px; }
.info p:not(.kicker) { color: var(--muted); margin: 0 0 20px; }
.info .btn { margin-top: auto; }
.translate { background: linear-gradient(150deg, rgba(201, 245, 91, .16), rgba(9, 22, 16, .85) 60%); }
.team { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(5, 11, 9, .5); border: 1px solid var(--line); }
.team b { display: block; font-size: 14px; }
.team small { color: var(--dim); font-size: 12px; }

/* Vote */
.vote { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 32px; }
.vote h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 12px; }
.vote p:not(.kicker) { color: var(--muted); margin: 0; }
.vote-list { display: grid; gap: 10px; }
.vote-list a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 14px; text-decoration: none; font-weight: 800; background: rgba(5, 11, 9, .55); border: 1px solid var(--line); }
.vote-list a:hover { border-color: rgba(201, 245, 91, .5); }
.vote-list a b { color: var(--lime); }

/* "Needs your info" placeholders, only with ?preview */
.needs { position: relative; overflow: visible !important; outline: 2px dashed rgba(255, 200, 87, .7); outline-offset: 4px; }
.needs::after { content: attr(data-needs-label); position: absolute; top: -12px; right: 18px; padding: 3px 10px; border-radius: 999px; background: #ffc857; color: #1a1300; font: 800 11px var(--body); letter-spacing: .04em; }

/* Finale */
.finale { text-align: center; padding: 60px 30px; background: radial-gradient(circle at 50% 30%, rgba(92, 240, 175, .18), transparent 60%), var(--card); }
.finale h2 { font-size: clamp(48px, 8vw, 110px); margin-bottom: 14px; }
.finale p:not(.kicker) { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* Footer */
.foot { margin-top: 80px; padding: 34px 0 50px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.foot nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: #cdd9d0; }
.foot nav a:hover { color: var(--lime); }
.legal { margin: 0; max-width: 360px; font-size: 12px; color: var(--dim); text-align: right; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, calc(100% + 40px)); padding: 14px 20px; pointer-events: none; border-radius: 12px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .reveal.visible { opacity: 1; transform: none; }
}

@media (max-width: 1060px) {
  .links { gap: 18px; }
  .pill.discord { display: none; }
}
@media (max-width: 900px) {
  .links { display: none; }
  .menu { display: flex; }
  .nav-end { margin-left: auto; }
  .event, .link, .vote, .section-head.split { grid-template-columns: 1fr; }
  .modes, .duo { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .legal { text-align: center; }
}
@media (max-width: 600px) {
  .wrap, .nav { width: calc(100% - 32px); }
  .nav { padding: 8px 8px 8px 12px; gap: 8px; }
  .brand img { width: 108px; }
  .pill.shop > span:not([aria-hidden]), .pill.shop small { display: none; }
  .pill.shop { padding: 0 12px; }
  .hero { padding-top: 46px; }
  .mascot { width: 128px; height: 128px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: space-between; }
  .btn.ghost { justify-content: center; }
  .addresses, .checks, .team { grid-template-columns: 1fr; }
  .play, .link, .mode, .info, .vote, .event { padding: 22px 18px; }
  .clock span { width: 64px; height: 64px; }
  .clock b { font-size: 22px; }
  #modes, .duo, .vote, .finale { margin-top: 64px; }
}
