@font-face {
  font-family: "Plumbers Display";
  src: url("preview-fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Plumbers Work Sans";
  src: url("preview-fonts/BarlowSemiCondensed-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Plumbers Work Sans";
  src: url("preview-fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "Plumbers Work Sans";
  src: url("preview-fonts/BarlowSemiCondensed-Black.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}
@font-face {
  font-family: "Plumbers Slab";
  src: url("preview-fonts/RobotoSlab-Variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --font-work: "Plumbers Work Sans", "Arial Narrow", ui-sans-serif, sans-serif;
  --font-display: "Plumbers Display", "Arial Black", sans-serif;
  --font-slab: "Plumbers Slab", Rockwell, Georgia, serif;
  --paper: #f3ead7;
  --paper-deep: #e4d5b8;
  --card: #fffaf0;
  --ink: #17263c;
  --ink-soft: #596373;
  --navy: #0d2039;
  --copper: #b86f3e;
  --copper-dark: #81472a;
  --yellow: #f4c84a;
  --red: #c65043;
  --green: #247354;
  --line: #cabd9f;
  --shadow: 0 16px 40px rgb(37 42 48 / 10%);
  --shell: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 4%, rgb(255 255 255 / 80%) 0 8%, transparent 29%),
    repeating-linear-gradient(0deg, transparent 0 4px, rgb(95 73 42 / 2%) 5px),
    var(--paper);
  font-family: var(--font-work);
  line-height: 1.45;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(23 38 60 / 9%) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}
button, input { font: inherit; }
button { color: inherit; }
.shell, .site-header { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 99; clip-path: inset(100%); }
.skip-link:focus { padding: 8px 11px; background: var(--card); border-radius: 8px; clip-path: none; }

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  margin-top: 12px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.brand { display: flex; align-items: center; width: fit-content; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; overflow: hidden; place-items: center; background: var(--yellow); border-radius: 50%; }
.brand-mark img { width: 33px; height: 33px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-copy strong { font-size: .85rem; font-weight: 950; letter-spacing: .13em; }
.brand-copy small { color: var(--copper-dark); font-size: .61rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-self: center; gap: 4px; padding: 4px; background: rgb(23 38 60 / 5%); border-radius: 10px; }
.main-nav a { padding: 7px 10px; color: var(--ink-soft); border-radius: 7px; font-size: .76rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px rgb(23 38 60 / 8%); outline: none; }

.global-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
}

.global-nav a {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 42px;
  padding: 0 22px;
  color: #47230f;
  background:
    linear-gradient(90deg, rgb(255 226 194 / 16%), transparent 20% 76%, rgb(82 34 14 / 16%)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(86 38 18 / 7%) 4px),
    linear-gradient(145deg, #edb07c 0%, #bd6b3d 24%, #dc8d55 47%, #9b4d2a 72%, #d98853 100%);
  border: 1px solid #713719;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgb(255 231 205 / 82%),
    inset 0 -2px 0 rgb(79 30 11 / 54%),
    inset 1px 0 0 rgb(255 209 169 / 28%),
    inset -1px 0 0 rgb(76 29 11 / 28%),
    0 5px 11px rgb(87 42 21 / 24%);
  font-family: var(--font-slab, Rockwell, Georgia, serif);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgb(246 183 131 / 72%),
    0 -1px 0 rgb(72 27 9 / 62%);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.global-nav a::before {
  position: absolute;
  inset: 3px;
  z-index: -1;
  border: 1px solid rgb(94 41 18 / 38%);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgb(255 218 183 / 15%);
  content: "";
  pointer-events: none;
}

.global-nav a:hover {
  background:
    linear-gradient(90deg, rgb(255 236 215 / 22%), transparent 20% 76%, rgb(82 34 14 / 13%)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgb(86 38 18 / 6%) 4px),
    linear-gradient(145deg, #f3bd8e 0%, #c97748 24%, #e59b63 47%, #a75934 72%, #e09460 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 238 219 / 88%),
    inset 0 -2px 0 rgb(79 30 11 / 50%),
    inset 1px 0 0 rgb(255 209 169 / 28%),
    inset -1px 0 0 rgb(76 29 11 / 28%),
    0 7px 15px rgb(87 42 21 / 30%);
  transform: translateY(-1px);
}
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 17px;
  color: var(--card);
  background: var(--navy);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgb(23 38 60 / 18%);
  font-weight: 900;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgb(23 38 60 / 20%); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 6px rgb(23 38 60 / 14%); }
.button:disabled { opacity: .55; cursor: wait; }
.button-small { min-height: 40px; padding-inline: 15px; justify-self: end; }
.button-wide { width: 100%; }
.button-copper { margin-top: 9px; background: var(--copper); box-shadow: 0 5px 0 var(--copper-dark); }
.button-ghost { color: var(--ink); background: var(--card); box-shadow: 0 4px 12px rgb(23 38 60 / 12%); text-decoration: none; }
.destination-factory {
  color: #47230f;
  background: linear-gradient(145deg, #edb07c, #bd6b3d 38%, #dc8d55 65%, #9b4d2a);
  border: 1px solid #713719;
  box-shadow: inset 0 1px 0 rgb(255 231 205 / 72%), 0 5px 11px rgb(87 42 21 / 24%);
  text-decoration: none;
}

.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; min-height: 510px; padding: 70px 2vw 48px; }
.eyebrow { margin: 0 0 9px; color: var(--copper-dark); font-size: .72rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
h1 { margin-bottom: 23px; font-size: clamp(4.2rem, 10vw, 8.2rem); letter-spacing: -.08em; line-height: .76; text-transform: uppercase; }
.hero-copy { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 650; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.text-link { padding: 0; color: var(--ink); background: transparent; border: 0; font-weight: 900; text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; cursor: pointer; }
.text-link span { color: var(--copper-dark); }
.gauge { position: relative; display: grid; justify-items: center; place-items: center; isolation: isolate; filter: drop-shadow(0 22px 17px rgb(43 32 19 / 18%)); transform: rotate(1deg); }
.gauge-halo { position: absolute; z-index: -1; width: 83%; aspect-ratio: 1; background: radial-gradient(circle, rgb(244 200 74 / 48%) 0 39%, rgb(244 200 74 / 14%) 40% 57%, transparent 70%); border-radius: 50%; }
.gauge img { display: block; width: min(39vw, 430px); height: auto; }

.status-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; color: white; background: var(--navy); border: 3px solid var(--navy); border-radius: 16px; box-shadow: var(--shadow); }
.status-strip div { display: grid; gap: 2px; min-height: 84px; padding: 18px 22px; border-right: 1px solid rgb(255 255 255 / 13%); }
.status-strip div:last-child { border: 0; }
.status-strip span { color: #b9c2ce; font-size: .67rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.status-strip strong { color: var(--yellow); font-family: var(--font-slab); font-size: 1.22rem; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 20px; padding-block: 58px 20px; }
.workspace-side { display: grid; align-self: start; gap: 20px; }
.panel { background: rgb(255 250 240 / 91%); border: 1px solid rgb(255 255 255 / 75%); border-radius: 18px; box-shadow: var(--shadow); }
.board { overflow: hidden; }
.board-rows { max-height: 650px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--copper) transparent; scrollbar-width: thin; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 25px 27px 19px; }
.panel-heading h2, .lookup h2, .identity h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.45rem); letter-spacing: -.045em; }
.panel-heading > span { color: var(--ink-soft); font-size: .74rem; font-weight: 800; }
.board-header, .board-row { display: grid; grid-template-columns: 34px minmax(150px, 1.4fr) minmax(100px, 1fr) 80px 95px; align-items: center; gap: 8px; }
.board-header { padding: 9px 23px; color: var(--ink-soft); background: rgb(23 38 60 / 5%); font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.board-row { width: 100%; min-height: 61px; padding: 9px 23px; background: transparent; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.board-row:hover, .board-row:focus-visible { background: #fff6dd; outline: none; }
.board-row > span:first-child { color: var(--copper-dark); font-family: var(--font-slab); font-weight: 900; }
.wallet-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.rank-cell { font-weight: 900; }
.rate-cell { color: var(--green); font-size: .78rem; font-weight: 900; }
.points-cell { font-family: var(--font-slab); font-size: 1rem; font-weight: 900; text-align: right; }
.empty-row { padding: 30px; color: var(--ink-soft); }
.board-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 63px; padding: 11px 18px 11px 23px; background: rgb(23 38 60 / 4%); border-top: 1px solid var(--line); }
.board-pagination > span { color: var(--ink-soft); font-size: .72rem; font-weight: 900; }
.board-pagination > div { display: flex; gap: 6px; }
.board-pagination button { min-height: 34px; padding: 0 11px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-size: .68rem; font-weight: 900; cursor: pointer; }
.board-pagination button:hover:not(:disabled), .board-pagination button:focus-visible:not(:disabled) { color: white; background: var(--navy); border-color: var(--navy); outline: none; }
.board-pagination button:disabled { opacity: .38; cursor: not-allowed; }
.lookup { align-self: start; padding: 27px; }
.my-profile { padding: 27px; }
.my-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.my-profile-heading h2 { margin: 0; font-size: 1.3rem; }
.my-profile-heading > strong { font-family: var(--font-slab); font-size: 2rem; line-height: 1; }
.my-profile > .address-copy { margin-top: 13px; }
.my-profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 19px 0 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.my-profile-facts div { display: grid; gap: 3px; min-width: 0; padding: 11px; background: var(--card); }
.my-profile-facts dt { color: var(--ink-soft); font-size: .62rem; font-weight: 900; }
.my-profile-facts dd { margin: 0; overflow: hidden; font-family: var(--font-slab); font-size: .88rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.my-profile-actions { display: grid; gap: 9px; margin-top: 15px; }
.my-profile-actions .button-copper { margin-top: 0; }
.lookup label { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: .72rem; font-weight: 900; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.referral-invite { margin-top: 20px; padding: 18px; background: #fff1c5; border: 1px solid #d7b96b; border-radius: 12px; box-shadow: inset 0 0 0 3px rgb(255 255 255 / 40%); }
.referral-invite h3 { margin: 0 0 9px; font-size: 1rem; }
.referral-invite > p:not(.eyebrow, .form-status) { margin-bottom: 9px; color: var(--ink-soft); font-size: .75rem; font-weight: 700; }
.referral-invite code { color: var(--copper-dark); font-weight: 900; }
.referral-invite .button { margin-top: 8px; }
input { width: 100%; min-height: 43px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; outline: none; }
input:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgb(184 111 62 / 15%); }
.address-copy { padding: 0; color: var(--copper-dark); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-status { min-height: 1.4em; margin: 13px 0 0; color: var(--ink-soft); font-size: .76rem; }
.form-status[data-state="error"] { color: #9a302b; }
.form-status[data-state="success"] { color: var(--green); }

.profile { padding-top: 38px; scroll-margin-top: 100px; }
.profile-top { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; padding: 28px; }
.address-copy { display: block; max-width: 100%; overflow: hidden; font-family: ui-monospace, monospace; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.rank-line { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.rank-line span { padding: 6px 10px; color: white; background: var(--copper); border-radius: 7px; font-weight: 950; }
.rank-line small { color: var(--ink-soft); font-weight: 800; }
.score { text-align: right; }
.score > span { display: block; color: var(--ink-soft); font-size: .68rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.score strong { display: block; font-family: var(--font-slab); font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -.06em; line-height: 1; }
.score small { color: var(--green); font-weight: 900; }
.rank-progress-wrap { grid-column: 1 / -1; }
.rank-progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--ink-soft); font-size: .68rem; font-weight: 900; }
.rank-track { height: 10px; overflow: hidden; background: var(--paper-deep); border-radius: 20px; }
.rank-track i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--copper), var(--yellow)); border-radius: inherit; transition: width 350ms ease; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.compact-card { padding: 25px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 11px; }
.facts div { display: grid; gap: 4px; min-width: 0; padding: 16px; background: var(--card); }
.facts dt { color: var(--ink-soft); font-size: .67rem; font-weight: 900; }
.facts dd { margin: 0; overflow: hidden; font-family: var(--font-slab); font-size: 1.2rem; font-weight: 900; text-overflow: ellipsis; }
.crew-total { display: flex; align-items: baseline; gap: 10px; }
.crew-total strong { font-family: var(--font-slab); font-size: 3.4rem; line-height: 1; }
.crew-total span { color: var(--ink-soft); font-weight: 800; }
.crew-card > p:not(.eyebrow, .form-status) { color: var(--green); font-size: .85rem; font-weight: 900; }
.profile-side-stack { display: grid; gap: 20px; }
.bonus-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bonus-heading .eyebrow { margin: 0; }
.bonus-heading > strong { color: var(--green); font-family: var(--font-slab); font-size: 1.45rem; }
.bonus-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 17px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.bonus-list div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--card); }
.bonus-list span { color: var(--ink-soft); font-size: .7rem; font-weight: 800; }
.bonus-list strong { color: var(--green); font-size: .72rem; }
.achievements { margin-top: 20px; overflow: hidden; scroll-margin-top: 105px; }
.achievement-dropdown-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; padding: 17px 27px; cursor: pointer; list-style: none; }
.achievement-dropdown-summary::-webkit-details-marker { display: none; }
.achievement-dropdown-summary > span { display: grid; gap: 2px; }
.achievement-dropdown-summary small { color: var(--copper-dark); font-size: .63rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.achievement-dropdown-summary strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.achievement-dropdown-summary > b { color: var(--ink-soft); font-size: .72rem; }
.achievement-dropdown-summary::after { color: var(--copper-dark); font-family: var(--font-slab); font-size: 1.25rem; content: "+"; }
.achievements[open] > .achievement-dropdown-summary::after { content: "−"; }
.achievements.is-own > .achievement-dropdown-summary { display: none; }
.achievements.is-viewed[open] > .achievement-dropdown-summary { border-bottom: 1px solid var(--line); }
.achievement-filters { display: flex; gap: 8px; padding: 0 27px 20px; overflow-x: auto; scrollbar-width: none; }
.achievement-filters::-webkit-scrollbar { display: none; }
.achievement-filters button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .69rem; font-weight: 900; cursor: pointer; }
.achievement-filters button.active { color: white; background: var(--navy); border-color: var(--navy); }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.family-card { min-width: 0; background: var(--card); }
.family-summary { display: grid; grid-template-columns: 154px minmax(0, 1fr); align-items: stretch; width: 100%; min-height: 194px; padding: 0; overflow: hidden; background: transparent; border: 0; text-align: left; cursor: pointer; }
.family-summary:hover, .family-summary:focus-visible { background: #fff6dd; outline: none; }
.family-art { position: relative; display: grid; min-height: 194px; overflow: hidden; place-items: center; background: radial-gradient(circle at 50% 45%, #f8dc83 0 20%, transparent 58%), linear-gradient(145deg, #f8e8bf, #d6b77d); border-right: 1px solid var(--line); }
.family-art::before { position: absolute; inset: 11px; border: 1px solid rgb(13 32 57 / 20%); border-radius: 12px; content: ""; }
.family-art::after { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 45%, rgb(13 32 57 / 9%)); content: ""; pointer-events: none; }
.family-art img { position: relative; z-index: 1; width: 100%; height: 100%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 8px 6px rgb(13 32 57 / 22%)); }
.family-art.rarity-elite { background: radial-gradient(circle at 50% 43%, #fff2a7 0 17%, transparent 56%), linear-gradient(145deg, #e9c056, #b86f3e); }
.family-art.rarity-legendary { background: radial-gradient(circle at 50% 43%, #fff7b7 0 15%, transparent 53%), linear-gradient(145deg, #f5cf54, #9f562f); }
.family-art.rarity-mythic { background: radial-gradient(circle at 50% 43%, white 0 8%, #ffe887 19%, transparent 52%), linear-gradient(145deg, #f6c646, #773f84); }
.family-copy { display: flex; flex-direction: column; min-width: 0; padding: 22px; }
.family-copy > small { color: var(--copper-dark); font-size: .64rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.family-copy h3 { margin: 7px 0 8px; font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.025em; }
.family-copy > p { margin: 0; color: var(--ink-soft); font-size: .74rem; }
.family-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--ink-soft); font-size: .67rem; font-weight: 850; }
.family-meta b { color: var(--copper-dark); }
.achievement-ladder { grid-column: 1 / -1; padding: 8px 14px 15px; background: rgb(23 38 60 / 4%); border-top: 1px solid var(--line); }
.achievement-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 13px; min-height: 104px; margin-top: 7px; padding: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; }
.achievement-row[data-state="locked"] { filter: grayscale(.92); opacity: .5; }
.achievement-row[data-state="earned"] { opacity: .76; }
.achievement-row.is-highlighted { position: relative; z-index: 2; border-color: var(--yellow); box-shadow: 0 0 0 3px rgb(244 200 74 / 34%), 0 10px 28px rgb(184 111 62 / 22%); animation: achievement-highlight 900ms ease-in-out 2; }
.achievement-row > img { width: 84px; height: 84px; object-fit: contain; background: radial-gradient(circle, #f8dc83, #dfc48d 68%, transparent 69%); border-radius: 9px; }
.achievement-row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.achievement-row h4 { margin: 3px 0 4px; font-family: var(--font-display); font-size: .83rem; font-weight: 400; }
.achievement-row-heading small { color: var(--copper-dark); font-size: .58rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.achievement-row p { margin: 0; color: var(--ink-soft); font-size: .69rem; }
.achievement-progress { position: relative; height: 18px; margin-top: 8px; overflow: hidden; background: var(--paper-deep); border-radius: 999px; }
.achievement-progress i { position: absolute; inset: 0 auto 0 0; width: var(--progress); max-width: 100%; background: linear-gradient(90deg, var(--copper), var(--yellow)); border-radius: inherit; }
.achievement-progress span { position: relative; z-index: 1; display: block; padding: 2px 8px 0; color: var(--ink); font-size: .57rem; font-weight: 900; text-align: right; }

.rules { margin-top: 58px; overflow: hidden; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.rule-grid article { min-height: 190px; padding: 23px; background: var(--card); }
.rule-grid b { color: var(--copper); font-family: var(--font-slab); font-size: 1.65rem; }
.rule-grid h3 { margin: 23px 0 8px; font-size: 1rem; }
.rule-grid p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 45px; color: var(--ink-soft); font-size: .72rem; }
footer span { color: var(--ink); font-weight: 950; letter-spacing: .1em; }
footer p { margin: 0; }

.achievement-notification { position: fixed; top: 88px; left: 50%; z-index: 80; width: min(440px, calc(100vw - 28px)); opacity: 0; pointer-events: none; transform: translate3d(-50%, -14px, 0) scale(.97); transition: opacity 320ms ease, transform 420ms cubic-bezier(.2, .8, .2, 1); }
.achievement-notification.is-visible { opacity: 1; pointer-events: auto; transform: translate3d(-50%, 0, 0) scale(1); }
.achievement-notification.is-leaving { opacity: 0; transform: translate3d(-50%, -10px, 0) scale(.98); }
.achievement-toast { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 112px; padding: 9px 13px 9px 9px; overflow: hidden; color: white; background: linear-gradient(115deg, #071426, var(--navy) 58%, #203d61); border: 2px solid var(--yellow); border-radius: 14px; box-shadow: 0 18px 48px rgb(7 20 38 / 34%), inset 0 0 0 1px rgb(255 255 255 / 10%); text-align: left; cursor: pointer; }
.achievement-toast::before { position: absolute; inset: 5px; border: 1px solid rgb(244 200 74 / 34%); border-radius: 9px; content: ""; pointer-events: none; }
.achievement-toast::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 46%, rgb(255 255 255 / 12%) 50%, transparent 54%); content: ""; transform: translateX(-110%); animation: achievement-shine 1.1s 380ms ease-out both; pointer-events: none; }
.achievement-toast-art { position: relative; z-index: 1; display: grid; width: 88px; height: 92px; overflow: hidden; place-items: center; background: radial-gradient(circle, #fff3a2 0 24%, #d99a39 59%, #6d341e 100%); border: 2px solid #f4d66d; border-radius: 10px; }
.achievement-toast-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px rgb(7 20 38 / 30%)); }
.achievement-toast-copy { position: relative; z-index: 1; display: grid; min-width: 0; padding: 0 13px; }
.achievement-toast-copy small { color: var(--yellow); font-size: .62rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.achievement-toast-copy strong { margin-top: 4px; overflow: hidden; font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.achievement-toast-copy span { margin-top: 4px; color: #c6d0dd; font-size: .72rem; font-weight: 750; }
.achievement-toast-action { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1px; color: #d9e0e8; font-size: .61rem; font-weight: 900; text-transform: uppercase; }
.achievement-toast-action b { color: var(--yellow); font-size: 1.15rem; }
.confetti { position: absolute; inset: -28px -20px -60px; z-index: -1; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: 10px; left: 50%; width: 9px; height: 15px; background: var(--yellow); border-radius: 2px; opacity: 0; animation: confetti-fall 1.55s cubic-bezier(.15, .75, .25, 1) both; }
.confetti-piece-1 { --x: -205px; --r: 270deg; left: 48%; background: var(--yellow); animation-delay: 40ms; }
.confetti-piece-2 { --x: -162px; --r: -220deg; left: 44%; background: var(--red); animation-delay: 110ms; }
.confetti-piece-3 { --x: -116px; --r: 320deg; left: 42%; background: #fff0aa; animation-delay: 20ms; }
.confetti-piece-4 { --x: -68px; --r: -300deg; left: 47%; background: var(--copper); animation-delay: 150ms; }
.confetti-piece-5 { --x: -24px; --r: 250deg; left: 49%; background: #5da6d2; animation-delay: 70ms; }
.confetti-piece-6 { --x: 32px; --r: -240deg; left: 51%; background: var(--yellow); animation-delay: 130ms; }
.confetti-piece-7 { --x: 78px; --r: 310deg; left: 53%; background: var(--red); animation-delay: 10ms; }
.confetti-piece-8 { --x: 124px; --r: -280deg; left: 56%; background: #fff0aa; animation-delay: 170ms; }
.confetti-piece-9 { --x: 168px; --r: 240deg; left: 55%; background: var(--copper); animation-delay: 90ms; }
.confetti-piece-10 { --x: 210px; --r: -330deg; left: 52%; background: #5da6d2; animation-delay: 190ms; }
.confetti-piece:nth-child(n + 11):nth-child(-n + 20) { top: 18px; animation-delay: 260ms; animation-duration: 1.75s; }
.confetti-piece:nth-child(n + 21) { top: 24px; animation-delay: 420ms; animation-duration: 1.9s; }

@keyframes achievement-shine { to { transform: translateX(115%); } }
@keyframes achievement-highlight { 50% { background: #fff3c5; transform: translateY(-2px); } }
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -8px, 0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), 180px, 0) rotate(var(--r)); }
}

@media (max-width: 880px) {
  .site-header { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .global-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .global-nav a { flex: 1; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; justify-content: center; overflow-x: auto; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .hero { min-height: 390px; }
  .gauge img { width: min(41vw, 360px); }
  .workspace, .profile-grid { grid-template-columns: 1fr; }
  .workspace-side { order: -1; }
  .family-grid { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell, .site-header { width: min(calc(100% - 24px), var(--shell)); }
  .site-header { top: auto; margin-top: 6px; }
  .brand-copy small { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .global-nav { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .global-nav a { min-width: 0; min-height: 38px; padding-inline: 9px; font-size: .7rem; }
  .main-nav { justify-content: flex-start; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 58px 5px 35px; }
  h1 { font-size: clamp(3.25rem, 15vw, 4.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .gauge { margin-top: 34px; }
  .gauge img { width: min(86vw, 360px); }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip div:nth-child(2) { border-right: 0; }
  .status-strip div:nth-child(-n+2) { border-bottom: 1px solid rgb(255 255 255 / 13%); }
  .status-strip div:last-child { grid-column: 1 / -1; border-top: 0; }
  .workspace { padding-top: 35px; }
  .board-rows { max-height: 480px; }
  .panel-heading { align-items: flex-start; padding-inline: 19px; }
  .board-header { display: none; }
  .board-row { grid-template-columns: 28px 1fr auto; padding-inline: 17px; }
  .board-row .rank-cell, .board-row .rate-cell { display: none; }
  .board-pagination { align-items: stretch; flex-direction: column; padding: 13px 17px 16px; }
  .board-pagination > div { display: grid; grid-template-columns: repeat(4, 1fr); }
  .board-pagination button { padding-inline: 6px; }
  .profile-top { grid-template-columns: 1fr; padding: 21px; }
  .score { text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .bonus-list { grid-template-columns: 1fr; }
  .achievement-filters { padding-inline: 19px; }
  .family-summary { grid-template-columns: 112px minmax(0, 1fr); min-height: 164px; }
  .family-art { min-height: 164px; }
  .family-copy { padding: 18px 15px; }
  .family-copy > p { display: none; }
  .achievement-row { grid-template-columns: 68px minmax(0, 1fr); }
  .achievement-row > img { width: 68px; height: 68px; }
  .rule-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer p { margin-top: 7px; }
  .achievement-notification { top: auto; right: 14px; bottom: 14px; left: 14px; width: auto; transform: translate3d(0, 18px, 0) scale(.97); }
  .achievement-notification.is-visible { transform: translate3d(0, 0, 0) scale(1); }
  .achievement-notification.is-leaving { transform: translate3d(0, 14px, 0) scale(.98); }
  .achievement-toast { grid-template-columns: 75px minmax(0, 1fr); min-height: 96px; padding: 8px; }
  .achievement-toast-art { width: 72px; height: 76px; }
  .achievement-toast-copy { padding-inline: 11px 5px; }
  .achievement-toast-copy strong { font-size: .9rem; }
  .achievement-toast-action { display: none; }
}

@media (max-width: 420px) {
  .global-nav { gap: 4px; }
  .global-nav a {
    padding-inline: 5px;
    font-size: 0.62rem;
    letter-spacing: 0.035em;
  }
  #connect-wallet[data-nametag-address] {
    overflow: hidden;
    max-width: 145px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confetti { display: none; }
}
