:root {
  --ink: #07172f;
  --ink-2: #112a4b;
  --yellow: #f7d117;
  --yellow-soft: #fff7c7;
  --red: #ed3f43;
  --blue: #2469e8;
  --paper: #f4f1e8;
  --white: #fffef9;
  --muted: #6c7787;
  --line: #dfe2df;
  --shadow: 0 16px 35px rgba(7, 23, 47, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  background: var(--yellow);
  border-bottom: 1px solid rgba(7, 23, 47, .18);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 43px; height: 48px;
  color: white; background: var(--ink);
  font: 700 22px/1 "Oswald", sans-serif;
  transform: skew(-5deg);
  box-shadow: 4px 4px 0 var(--red);
}
.brand > span:last-child { display: flex; flex-direction: column; font: 700 18px/.88 "Oswald", sans-serif; letter-spacing: 1.5px; }
.brand em { color: var(--red); font-style: normal; font-size: 15px; }
.header-meta { display: flex; align-items: center; gap: 9px; font: 700 11px "DM Sans"; letter-spacing: 1.6px; }
.pulse { width: 8px; height: 8px; background: #35a853; border-radius: 50%; box-shadow: 0 0 0 4px rgba(53,168,83,.16); }

.hero {
  min-height: 386px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 52px max(7vw, 24px) 60px;
  color: white;
  background: var(--ink);
}
.hero::before {
  content: "26";
  position: absolute; right: -28px; top: -106px;
  color: rgba(255,255,255,.027);
  font: 700 460px/.9 "Oswald", sans-serif;
  letter-spacing: -35px;
}
.hero::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 36%; height: 9px;
  background: linear-gradient(90deg, var(--red) 0 42%, var(--yellow) 42% 75%, var(--blue) 75%);
}
.hero-copy, .stats-panel { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--red); font: 700 11px "DM Sans"; letter-spacing: 2.3px; }
.hero h1 { margin: 0; font: 600 clamp(54px, 7vw, 88px)/.91 "Oswald", sans-serif; text-transform: uppercase; letter-spacing: -2px; }
.hero h1 span { color: var(--yellow); }
.intro { max-width: 430px; margin: 24px 0 0; color: #bfc9d8; font-size: 16px; line-height: 1.6; }
.stats-panel {
  min-width: 430px;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(4px);
}
.progress-ring {
  --progress: 0deg;
  width: 132px; height: 132px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) var(--progress), rgba(255,255,255,.11) 0);
  transition: background .4s ease;
}
.progress-ring::before { content: ""; position: absolute; width: 104px; height: 104px; border-radius: 50%; background: var(--ink); }
.progress-ring > div { z-index: 1; text-align: center; }
.progress-ring strong { display: block; font: 600 32px "Oswald"; }
.progress-ring span { display: block; color: #9aa9bb; font: 700 8px/1.35 "DM Sans"; letter-spacing: 1.2px; }
.stat-lines { flex: 1; }
.stat-lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.stat-lines div:last-child { border: 0; }
.stat-lines span { color: #a7b3c3; font-size: 12px; }
.stat-lines strong { color: white; font: 600 24px "Oswald"; }
.stat-lines div:first-child strong { color: var(--yellow); }
.workspace { max-width: 1460px; margin: auto; padding: 38px max(4vw, 24px) 80px; }
.toolbar { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(300px, 1fr) 180px 180px auto; gap: 10px; margin-top: -65px; padding: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-box { display: flex; align-items: center; min-height: 54px; padding: 0 16px; background: #f5f5f1; border: 1px solid transparent; }
.search-box:focus-within { border-color: var(--blue); background: white; }
.search-box > span { margin-right: 11px; font-size: 26px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
kbd { padding: 4px 7px; color: #87909c; background: white; border: 1px solid #d8dcd9; border-radius: 4px; font: 600 10px "DM Sans"; white-space: nowrap; }
.select-wrap { position: relative; display: flex; }
.select-wrap::after { content: "⌄"; position: absolute; right: 14px; top: 16px; pointer-events: none; }
select { width: 100%; padding: 0 35px 0 14px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 0; outline: 0; appearance: none; font-weight: 600; font-size: 12px; }
select:focus { border-color: var(--blue); }
.view-toggle { display: flex; padding: 4px; background: #f1f2ee; }
.view-toggle button { width: 46px; border: 0; background: transparent; cursor: pointer; font-size: 21px; }
.view-toggle button.active { color: white; background: var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 54px 0 24px; }
.section-heading h2 { margin: 0; font: 600 34px "Oswald"; text-transform: uppercase; }
.section-heading > p { color: var(--muted); font-size: 12px; }
.section-heading > p strong { color: var(--ink); }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.group-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; margin-top: 23px; padding: 10px 14px; color: white; background: var(--ink); border-left: 7px solid var(--yellow); }
.group-heading:first-child { margin-top: 0; }
.group-heading span { color: #9cacc0; font: 700 9px "DM Sans"; letter-spacing: 1.8px; }
.group-heading strong { color: var(--yellow); font: 600 28px/1 "Oswald"; }
.group-heading i { height: 1px; flex: 1; background: rgba(255,255,255,.16); }
.group-heading small { color: #aeb9c8; font-size: 9px; font-style: normal; letter-spacing: .7px; text-transform: uppercase; }
.group-heading.empty-group { margin-top: 0; color: var(--ink); background: #e8e4d8; border-color: #c2bcab; }
.group-heading.empty-group strong { color: #858477; }
.group-heading.empty-group span, .group-heading.empty-group small { color: #858477; }
.group-heading.empty-group i { background: rgba(7,23,47,.12); }
.team-card { position: relative; overflow: hidden; min-width: 0; padding: 25px 25px 22px; background-color: #f8f2df; background-image: linear-gradient(rgba(255,255,255,.36) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px); background-size: 18px 18px; border: 1px solid #d7ceb7; box-shadow: 0 5px 0 rgba(7,23,47,.05), 0 15px 30px rgba(7,23,47,.06); transition: transform .18s, box-shadow .18s; }
.team-card::after { content: attr(data-team); position: absolute; z-index: 0; right: -10px; top: 41px; color: rgba(7,23,47,.035); font: 700 120px/.8 "Oswald"; pointer-events: none; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-stripe { position: absolute; top: 0; left: 0; width: 100%; height: 8px; background: linear-gradient(90deg, var(--team-color, var(--blue)) 0 74%, var(--yellow) 74% 88%, var(--red) 88%); }
.team-card > header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: -1px -1px 0; padding: 13px 14px; color: white; background: var(--ink); }
.team-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flag { display: grid; place-items: center; width: 48px; height: 38px; flex: 0 0 auto; background: #f1f1ec; border: 1px solid var(--line); font-size: 25px; }
.team-card h3 { overflow: hidden; margin: 0; font: 600 19px "Oswald"; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.team-code { margin: 2px 0 0; color: #9cacc0; font: 700 8px "DM Sans"; letter-spacing: 1.25px; }
.missing-badge { min-width: 52px; text-align: right; }
.missing-badge strong { display: block; color: var(--yellow); font: 600 28px/.9 "Oswald"; }
.missing-badge span { color: #9cacc0; font: 700 7px "DM Sans"; letter-spacing: 1.2px; }
.mini-progress { position: relative; z-index: 1; overflow: hidden; height: 5px; margin: 18px 0; background: rgba(7,23,47,.13); }
.mini-progress span { display: block; height: 100%; background: var(--team-color, var(--blue)); }
.sticker-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.sticker { position: relative; min-width: 0; height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 2px; border: 1px dashed #a8a28f; background: rgba(255,255,255,.42); cursor: pointer; font-family: "Oswald"; transition: .15s ease; }
.sticker span { position: absolute; top: 5px; left: 6px; color: #858477; font: 700 6px "DM Sans"; letter-spacing: .5px; }
.sticker strong { font-size: 20px; line-height: 1; }
.sticker small { position: absolute; bottom: 5px; font: 700 6px "DM Sans"; letter-spacing: .4px; }
.sticker.missing { color: var(--red); background: #fffaf0; border: 2px solid var(--red); box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px rgba(237,63,67,.25); }
.sticker.missing small { color: var(--red); }
.sticker.missing:hover { color: white; background: var(--red); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 5px 10px rgba(237,63,67,.22); }
.sticker.missing:hover span, .sticker.missing:hover small { color: white; }
.sticker.in-album { color: rgba(7,23,47,.46); background: repeating-linear-gradient(135deg, rgba(255,255,255,.72) 0 6px, rgba(234,229,211,.75) 6px 12px); border-style: solid; cursor: default; }
.sticker.in-album::after { content: "✓"; position: absolute; top: 4px; right: 5px; color: #3b874d; font: 700 9px "DM Sans"; }
.sticker.found { color: white; background: var(--team-color, #3b874d); border: 2px solid white; outline: 1px solid var(--team-color, #3b874d); transform: rotate(.5deg); }
.sticker.found span, .sticker.found small { color: rgba(255,255,255,.78); }
.sticker.found::after { content: "✓"; position: absolute; top: 3px; right: 5px; color: var(--yellow); font: 700 10px "DM Sans"; }
.sticker.found:hover { transform: translateY(-2px) rotate(0); filter: brightness(1.08); }
.expand-button { display: none; width: 100%; margin-top: 14px; padding: 8px; color: var(--muted); background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 11px; font-weight: 700; }
.team-grid.list-view { display: flex; flex-direction: column; }
.team-grid.list-view .team-card { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 22px; padding: 18px 24px; }
.team-grid.list-view .team-card > header { grid-column: 1; }
.team-grid.list-view .mini-progress { display: none; }
.team-grid.list-view .sticker-list { grid-column: 2; grid-row: 1; grid-template-columns: repeat(20, minmax(28px, 1fr)); }
.team-grid.list-view .sticker { height: 58px; }
.team-grid.list-view .sticker small { display: none; }

.empty-state { padding: 80px 20px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.empty-state > span { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; color: white; background: #49a75a; border-radius: 50%; font-size: 28px; }
.empty-state h3 { margin: 18px 0 4px; font: 600 24px "Oswald"; text-transform: uppercase; }
.empty-state p { margin: 0; color: var(--muted); }
.empty-state button { margin-top: 20px; padding: 10px 18px; color: white; background: var(--ink); border: 0; cursor: pointer; font-weight: 700; }
.floating-found-button { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; min-width: 218px; padding: 11px 14px; color: white; background: var(--ink); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 14px 35px rgba(7,23,47,.28); cursor: pointer; text-align: left; animation: float-in .25s ease-out; }
.floating-found-button[hidden] { display: none; }
.floating-found-button:hover { background: var(--ink-2); transform: translateY(-2px); }
.floating-found-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: var(--ink); background: var(--yellow); border-radius: 50%; font-weight: 700; }
.floating-found-button > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.floating-found-button strong { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.floating-found-button small { margin-top: 2px; color: #aeb9c8; font-size: 10px; }
.floating-found-arrow { color: var(--yellow); font-size: 18px; }
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.modal { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 13, 28, .74); backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px; background: var(--white); border-top: 6px solid var(--yellow); box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.modal-close { position: absolute; top: 14px; right: 17px; width: 34px; height: 34px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 27px; line-height: 1; }
.modal-panel h2 { margin: 0; font: 600 34px "Oswald"; text-transform: uppercase; }
.modal-intro { margin: 8px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-panel label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.modal-panel textarea { width: 100%; min-height: 260px; resize: vertical; padding: 16px; color: var(--ink); background: #f5f5f1; border: 1px solid var(--line); outline: none; font: 600 14px/1.65 "DM Sans"; }
.modal-panel textarea:focus { border-color: var(--blue); background: white; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions button { flex: 1; padding: 13px 16px; border: 1px solid var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.modal-actions button:first-child { color: white; background: var(--ink); }
.modal-actions button:last-child { background: transparent; }
body.modal-open { overflow: hidden; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 25px; padding: 12px 18px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 74px; padding: 20px max(5vw, 24px); color: #9aa8b9; background: var(--ink); font-size: 9px; letter-spacing: 1.2px; }
footer button { padding: 8px 12px; color: #c7d0db; background: transparent; border: 1px solid #435168; cursor: pointer; font-size: 10px; }
footer button:hover { color: white; border-color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .hero { align-items: flex-start; }
  .stats-panel { min-width: 350px; gap: 24px; }
  .progress-ring { width: 110px; height: 110px; }
  .progress-ring::before { width: 84px; height: 84px; }
  .toolbar { grid-template-columns: 1fr 1fr auto; }
  .search-box { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .site-header { height: 68px; }
  .header-meta { display: none; }
  .hero { min-height: auto; display: block; padding-top: 42px; padding-bottom: 94px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .intro { margin-top: 18px; }
  .stats-panel { min-width: 0; margin-top: 34px; padding: 20px; }
  .workspace { padding-left: 15px; padding-right: 15px; }
  .toolbar { grid-template-columns: 1fr 1fr; margin-top: -64px; padding: 9px; }
  .search-box, .view-toggle { grid-column: 1 / -1; }
  .view-toggle button { width: 50%; height: 40px; }
  .section-heading { margin-top: 42px; }
  .team-grid { grid-template-columns: 1fr; }
  .group-heading { gap: 7px; }
  .group-heading small { max-width: 150px; text-align: right; }
  .sticker-list { grid-template-columns: repeat(5, 1fr); }
  .team-grid.list-view .team-card { display: block; }
  .team-grid.list-view .sticker-list { grid-template-columns: repeat(5, 1fr); margin-top: 18px; }
  .floating-found-button { right: 15px; bottom: 15px; min-width: 0; width: calc(100% - 30px); }
  .modal-panel { padding: 28px 20px 20px; }
  .modal-panel textarea { min-height: 220px; }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .stats-panel { gap: 17px; }
  .progress-ring { width: 96px; height: 96px; }
  .progress-ring::before { width: 74px; height: 74px; }
  .progress-ring strong { font-size: 26px; }
  .stat-lines div { gap: 10px; }
  .stat-lines strong { font-size: 19px; }
  .sticker-list { grid-template-columns: repeat(5, 1fr); }
}
