:root {
  color-scheme: dark;
  --ink: #f3dec0;
  --muted: #c1a679;
  --dim: #8b7351;
  --ember: #d8a84e;
  --ember-strong: #f7bd43;
  --rust: #9c2e25;
  --rust-light: #c14b3e;
  --green: #5f8f73;
  --teal: #2e6e77;
  --black: #050403;
  --wood: #15100b;
  --panel: rgba(16, 13, 9, 0.93);
  --panel-soft: rgba(31, 25, 17, 0.82);
  --line: rgba(216, 168, 78, 0.35);
  --line-strong: rgba(216, 168, 78, 0.72);
  --focus: #f7bd43;
  --toast-bg: rgba(11, 8, 5, 0.92);
  --toast-border: rgba(217, 158, 62, 0.75);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(95, 143, 115, 0.18), transparent 27rem),
    radial-gradient(circle at 78% 8%, rgba(156, 46, 37, 0.17), transparent 26rem),
    linear-gradient(135deg, #060403, #15100b 48%, #050403);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button,
input,
select,
textarea,
output {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site {
  min-height: 100svh;
}

.stage {
  position: relative;
  width: min(100vw, 1536px);
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  background: #0b0907;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.78);
  isolation: isolate;
}

.artwork {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  padding: 0;
  overflow: hidden;
  color: transparent;
  text-indent: -999rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.hotspot:hover {
  background: rgba(247, 189, 67, 0.055);
}

.hotspot:active {
  background: rgba(247, 189, 67, 0.11);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.hotspot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(8, 5, 2, 0.75), 0 0 22px rgba(247, 189, 67, 0.55);
}

.home {
  left: 26.3%;
  top: 1.45%;
  width: 3.6%;
  height: 4.6%;
}

.how-nav {
  left: 31.05%;
  top: 1.45%;
  width: 6.8%;
  height: 4.6%;
}

.clues-nav {
  left: 39.15%;
  top: 1.45%;
  width: 3.9%;
  height: 4.6%;
}

.coins-nav {
  left: 43.9%;
  top: 1.45%;
  width: 3.8%;
  height: 4.6%;
}

.prizes-nav {
  left: 48.55%;
  top: 1.45%;
  width: 4.1%;
  height: 4.6%;
}

.heritage-nav {
  left: 53.35%;
  top: 1.45%;
  width: 8.3%;
  height: 4.6%;
}

.about-nav {
  left: 62.05%;
  top: 1.45%;
  width: 5.7%;
  height: 4.6%;
}

.sponsors-nav {
  left: 68.2%;
  top: 1.45%;
  width: 5.95%;
  height: 4.6%;
}

.login {
  left: 83.05%;
  top: 1.55%;
  width: 5.75%;
  height: 3.8%;
}

.join-top {
  left: 89.55%;
  top: 1.45%;
  width: 8.25%;
  height: 4.05%;
}

.hero-join {
  left: 74.9%;
  top: 31.55%;
  width: 9.35%;
  height: 4.55%;
}

.member-join {
  left: 10.85%;
  top: 79.15%;
  width: 6.25%;
  height: 3%;
}

.clue-search {
  left: 28.35%;
  top: 59.55%;
  width: 11.25%;
  height: 2.95%;
}

.region-select {
  left: 50%;
  top: 51.95%;
  width: 7.75%;
  height: 2.85%;
}

.view-clue {
  left: 50.3%;
  top: 82.65%;
  width: 7%;
  height: 3.1%;
}

.learn-how {
  left: 66.3%;
  top: 75.2%;
  width: 6.35%;
  height: 3.05%;
}

.manage {
  left: 94.25%;
  top: 58.65%;
  width: 3.65%;
  height: 2.65%;
}

.submit-code {
  left: 93.05%;
  top: 74.25%;
  width: 4.95%;
  height: 3%;
}

.wins {
  left: 82.55%;
  top: 88.4%;
  width: 15.55%;
  height: 2.7%;
}

.heritage-learn {
  left: 29.5%;
  top: 94.8%;
  width: 6.9%;
  height: 2.55%;
}

.app-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 4, 3, 0.76), rgba(5, 4, 3, 0.93)),
    url("./assets/nz-treasure-hunt-reference.png") center top / cover fixed,
    #080604;
}

.app-shell::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.94), rgba(5, 4, 3, 0.58) 48%, rgba(5, 4, 3, 0.92)),
    radial-gradient(circle at 58% 22%, rgba(216, 168, 78, 0.12), transparent 24rem);
}

.masthead,
.account-strip,
.app-content {
  position: relative;
  z-index: 1;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(21rem, 24.25rem) 1fr auto;
  gap: 1.05rem;
  align-items: center;
  min-height: 4.55rem;
  padding: 0.48rem clamp(1.15rem, 2.2vw, 2rem);
  background:
    linear-gradient(180deg, rgba(4, 3, 2, 0.98), rgba(9, 6, 3, 0.98) 60%, rgba(2, 1, 1, 0.99)),
    repeating-linear-gradient(178deg, rgba(146, 83, 35, 0.18) 0 2px, rgba(0, 0, 0, 0) 2px 9px),
    repeating-linear-gradient(91deg, rgba(255, 223, 168, 0.055) 0 1px, transparent 1px 28px),
    #090604;
  border-bottom: 1px solid rgba(216, 168, 78, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.68);
}

.masthead::before {
  position: absolute;
  inset: auto 0 -0.44rem;
  z-index: 0;
  height: 0.8rem;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(2, 1, 1, 0.98) 0 42%, transparent 42% 100%) 0 0 / 2.2rem 0.8rem repeat-x,
    linear-gradient(225deg, rgba(2, 1, 1, 0.98) 0 42%, transparent 42% 100%) 1.1rem 0 / 2.2rem 0.8rem repeat-x;
}

.masthead::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse at 12% 30%, rgba(239, 196, 119, 0.08), transparent 17rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 38%, rgba(0, 0, 0, 0.42));
}

.masthead > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  gap: 0.72rem;
  align-items: center;
  min-width: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 3.95rem;
  height: 3.8rem;
  overflow: hidden;
  color: transparent;
  text-indent: -999rem;
  background-image: url("./assets/nz-treasure-hunt-reference.png");
  background-repeat: no-repeat;
  background-position: -11px -7px;
  background-size: 1536px 1024px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.65));
}

.brand strong,
.view-title,
.panel-title,
.modal-header h2,
.card-title {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  color: #f1ddbd;
  font-size: 1.62rem;
  line-height: 0.98;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(219, 167, 83, 0.18);
}

.brand small {
  display: block;
  color: #d5a860;
  font-size: 1.03rem;
  line-height: 1.16;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #000;
}

.brand small::before {
  content: "- ";
}

.app-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.app-nav button {
  position: relative;
  min-height: 3.25rem;
  padding: 0 0.76rem;
  color: #e7d7bc;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.83rem;
  font-weight: 700;
  text-shadow: 0 2px 0 #000;
}

.app-nav button::after {
  position: absolute;
  right: 0.62rem;
  bottom: 0.44rem;
  left: 0.62rem;
  height: 2px;
  content: "";
  background: transparent;
  box-shadow: none;
}

.app-nav button:hover,
.app-nav button[aria-current="page"] {
  color: var(--ember-strong);
  background: rgba(216, 168, 78, 0.04);
}

.app-nav button:hover::after,
.app-nav button[aria-current="page"]::after {
  background: var(--ember-strong);
  box-shadow: 0 0 10px rgba(247, 189, 67, 0.5);
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.button,
.icon-button,
.segmented button,
.chip,
.map-pin,
.pin,
.inline-link {
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.05rem;
  border-radius: 5px;
  border: 1px solid rgba(216, 168, 78, 0.52);
  color: #f6dfb4;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(16, 12, 8, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 189, 67, 0.85);
}

.button.primary {
  color: #fff4d6;
  background: linear-gradient(180deg, var(--rust-light), #7c211b);
  border-color: rgba(239, 132, 100, 0.44);
}

.masthead .button {
  min-width: 5.85rem;
  min-height: 2.45rem;
  padding: 0 1rem;
  border-radius: 5px;
  font-size: 0.82rem;
  text-shadow: 0 1px 0 #000;
}

.masthead .button.ghost {
  color: #ead5b4;
  background: rgba(3, 2, 1, 0.58);
  border-color: rgba(178, 112, 37, 0.72);
}

.masthead .button.primary {
  position: relative;
  min-width: 8.15rem;
  justify-content: flex-start;
  padding-right: 2.8rem;
  color: #21150c;
  text-shadow: 0 1px 0 rgba(255, 232, 178, 0.48);
  background:
    linear-gradient(90deg, rgba(112, 63, 25, 0.2), transparent 25% 75%, rgba(112, 63, 25, 0.26)),
    linear-gradient(180deg, #e9c285, #bb7f37);
  border-color: rgba(244, 205, 132, 0.8);
  box-shadow: inset 0 0 0 1px rgba(58, 32, 11, 0.25), 0 3px 0 rgba(0, 0, 0, 0.38);
}

.masthead .button.primary::after {
  position: absolute;
  top: 50%;
  right: 0.53rem;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  color: #1d1208;
  font-size: 0.58rem;
  font-weight: 900;
  content: "NZ";
  background:
    radial-gradient(circle at 34% 28%, #f4daa0, #9d5b20 62%, #43200f);
  border: 1px solid rgba(64, 34, 11, 0.75);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 2px rgba(255, 230, 160, 0.14);
}

.button.gold {
  color: #241609;
  background: linear-gradient(180deg, #f1d694, #bc8332);
  border-color: #f3c65d;
}

.button.ghost {
  background: rgba(0, 0, 0, 0.28);
}

.button.danger {
  background: linear-gradient(180deg, #9c2e25, #53140f);
}

.button.slim {
  min-height: 2rem;
  padding: 0 0.7rem;
  font-size: 0.76rem;
}

.account-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  color: #dfc89e;
  background: rgba(10, 7, 4, 0.74);
  border-bottom: 1px solid rgba(216, 168, 78, 0.24);
}

.account-strip span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.2rem 0.72rem;
  border-right: 1px solid rgba(216, 168, 78, 0.22);
}

.account-strip span:last-child {
  border-right: 0;
}

.account-strip strong {
  color: var(--ember-strong);
}

.app-content {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.view {
  display: grid;
  gap: 1.2rem;
}

.view-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.1rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(13, 10, 7, 0.96), rgba(28, 22, 15, 0.88)),
    radial-gradient(circle at 82% 20%, rgba(216, 168, 78, 0.18), transparent 20rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.view-title {
  max-width: 42rem;
  margin: 0;
  color: #f7e4be;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.lead {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  color: #e7d1a9;
  font-size: 1.06rem;
  line-height: 1.58;
}

.action-row,
.toolbar,
.modal-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.action-row {
  margin-top: 1.2rem;
}

.hero-stamp {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 15rem;
  padding: 1.4rem;
  text-align: center;
  background:
    radial-gradient(circle at 45% 30%, rgba(249, 217, 148, 0.18), transparent 9rem),
    linear-gradient(160deg, rgba(74, 40, 17, 0.8), rgba(12, 8, 5, 0.85));
  border: 1px solid rgba(216, 168, 78, 0.43);
  border-radius: 8px;
}

.hero-stamp strong {
  display: block;
  color: #f0d38d;
  font-size: 3.3rem;
  line-height: 1;
}

.hero-stamp span {
  color: #d9c29a;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.content-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.card,
.form-panel,
.tool-panel {
  color: #ecd8b3;
  background:
    linear-gradient(180deg, rgba(31, 25, 17, 0.94), rgba(12, 9, 6, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(216, 168, 78, 0.1), transparent 14rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.panel,
.form-panel,
.tool-panel {
  padding: 1rem;
}

.card {
  display: grid;
  gap: 0.72rem;
  align-content: start;
  padding: 1rem;
}

.card-title,
.panel-title {
  margin: 0;
  color: #f5dfb8;
  font-size: 1.08rem;
}

.card p,
.panel p,
.form-panel p,
.tool-panel p {
  margin: 0;
  color: #d8c29c;
  line-height: 1.52;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.15rem 0.5rem;
  color: #f6dfb4;
  background: rgba(216, 168, 78, 0.12);
  border: 1px solid rgba(216, 168, 78, 0.32);
  border-radius: 999px;
}

.status-pill.active {
  color: #d8ffd9;
  background: rgba(95, 143, 115, 0.2);
  border-color: rgba(116, 191, 130, 0.45);
}

.status-pill.paused {
  color: #ffe2da;
  background: rgba(156, 46, 37, 0.22);
  border-color: rgba(239, 132, 100, 0.4);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin-bottom: 0.3rem;
  color: #1e1309;
  font-weight: 900;
  background: linear-gradient(180deg, #f1d694, #bc8332);
  border-radius: 50%;
}

.toolbar {
  justify-content: space-between;
  padding: 0.8rem;
  background: rgba(7, 5, 3, 0.64);
  border: 1px solid rgba(216, 168, 78, 0.25);
  border-radius: 8px;
}

.filters {
  display: flex;
  flex: 1 1 24rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.field {
  display: grid;
  gap: 0.38rem;
}

.field label,
.field span,
.check-row span {
  color: #d9c29a;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.62rem 0.72rem;
  color: #f8e7c7;
  background: rgba(5, 4, 3, 0.72);
  border: 1px solid rgba(216, 168, 78, 0.37);
  border-radius: 5px;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(216, 194, 156, 0.62);
}

.segmented {
  display: inline-flex;
  padding: 0.22rem;
  background: rgba(5, 4, 3, 0.65);
  border: 1px solid rgba(216, 168, 78, 0.26);
  border-radius: 6px;
}

.segmented button {
  min-height: 2.15rem;
  padding: 0 0.75rem;
  color: #d9c29a;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.segmented button[aria-pressed="true"] {
  color: #241609;
  background: linear-gradient(180deg, #f1d694, #bc8332);
}

.clue-layout {
  display: grid;
  grid-template-columns: minmax(21rem, 0.95fr) minmax(18rem, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.clue-map {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 28%, rgba(95, 143, 115, 0.34), transparent 7rem),
    radial-gradient(ellipse at 38% 64%, rgba(95, 143, 115, 0.28), transparent 10rem),
    linear-gradient(160deg, rgba(16, 31, 28, 0.95), rgba(5, 5, 4, 0.96));
  border: 1px solid rgba(216, 168, 78, 0.34);
  border-radius: 8px;
}

.map-coast {
  position: absolute;
  inset: 9% 19%;
  border: 1px solid rgba(216, 168, 78, 0.42);
  border-radius: 58% 42% 48% 52% / 52% 50% 50% 48%;
  transform: rotate(-19deg);
  box-shadow:
    inset 0 0 4rem rgba(216, 168, 78, 0.12),
    0 0 2rem rgba(0, 0, 0, 0.35);
}

.map-coast::before,
.map-coast::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(216, 168, 78, 0.32);
  border-radius: 55% 45% 52% 48% / 50% 46% 54% 50%;
}

.map-coast::before {
  width: 54%;
  height: 58%;
  left: -4%;
  bottom: -26%;
}

.map-coast::after {
  width: 26%;
  height: 31%;
  right: 8%;
  bottom: -43%;
}

.map-pin {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  color: #170e07;
  font-weight: 900;
  background: linear-gradient(180deg, #f3d795, #bd812e);
  border: 2px solid rgba(36, 22, 9, 0.74);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 0 0 3px rgba(247, 189, 67, 0.14), 0 6px 15px rgba(0, 0, 0, 0.56);
}

.map-pin span {
  transform: rotate(45deg);
}

.clue-list {
  display: grid;
  gap: 0.8rem;
}

.clue-card {
  grid-template-columns: 1fr auto;
}

.difficulty {
  color: var(--ember-strong);
}

.empty-state {
  padding: 1.4rem;
  color: #e2cba1;
  text-align: center;
  background: rgba(7, 5, 3, 0.62);
  border: 1px dashed rgba(216, 168, 78, 0.38);
  border-radius: 8px;
}

.coin-code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(216, 168, 78, 0.18);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.dot {
  width: 0.72rem;
  height: 0.72rem;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(216, 168, 78, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-tile {
  min-height: 5.5rem;
  padding: 0.8rem;
  background: rgba(5, 4, 3, 0.42);
  border: 1px solid rgba(216, 168, 78, 0.21);
  border-radius: 6px;
}

.stat-tile strong {
  display: block;
  color: var(--ember-strong);
  font-size: 1.9rem;
  line-height: 1;
}

.stat-tile span {
  color: #d8c29c;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.prize-value {
  color: #a8e7a8;
  font-size: 1.3rem;
  font-weight: 900;
}

.pledge-list {
  display: grid;
  gap: 0.7rem;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem;
  background: rgba(5, 4, 3, 0.36);
  border: 1px solid rgba(216, 168, 78, 0.21);
  border-radius: 6px;
}

.check-row input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--ember);
}

.sponsor-mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  color: #1e1208;
  font-weight: 900;
  background: linear-gradient(180deg, #f0d494, #9e6425);
  border-radius: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: 1rem;
}

.modal {
  width: min(39rem, calc(100vw - 2rem));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal-frame {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(31, 25, 17, 0.98), rgba(9, 7, 5, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(216, 168, 78, 0.13), transparent 14rem);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: rgba(5, 4, 3, 0.78);
  border-bottom: 1px solid rgba(216, 168, 78, 0.28);
}

.modal-header h2 {
  margin: 0;
  color: #f7e4be;
  font-size: 1.25rem;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #ecd8b3;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(216, 168, 78, 0.35);
  border-radius: 5px;
}

.modal-body {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-link {
  padding: 0;
  color: var(--ember-strong);
  text-decoration: underline;
  background: transparent;
  border: 0;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.65rem 0.85rem;
  color: #f6d89f;
  background: var(--toast-bg);
  border: 1px solid var(--toast-border);
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1120px) {
  .masthead {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .app-nav,
  .account-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .view-hero,
  .clue-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .content-grid.two,
  .content-grid.four,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .stage {
    width: 100vw;
  }

  .hotspot {
    border-radius: 2px;
  }

  .app-content {
    padding: 0.85rem;
  }

  .masthead {
    padding: 0.65rem 0.75rem 0.85rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 3.15rem;
    height: 3.05rem;
    background-position: -14px -9px;
    background-size: 1230px 819px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .brand small {
    font-size: 0.78rem;
  }

  .app-nav {
    gap: 0.12rem;
  }

  .app-nav button {
    min-height: 2.45rem;
    padding: 0 0.48rem;
    font-size: 0.72rem;
  }

  .app-nav button::after {
    right: 0.44rem;
    bottom: 0.18rem;
    left: 0.44rem;
  }

  .masthead .button {
    min-width: 5.3rem;
    min-height: 2.25rem;
  }

  .masthead .button.primary {
    min-width: 7.55rem;
  }

  .account-strip {
    justify-content: flex-start;
  }

  .content-grid,
  .content-grid.two,
  .content-grid.four,
  .step-list,
  .stats-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .view-hero {
    padding: 1rem;
  }

  .view-title {
    font-size: 2rem;
  }

  .hero-stamp strong {
    font-size: 2.4rem;
  }

  .toolbar,
  .coin-code {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-basis: 100%;
  }

  .clue-map {
    min-height: 25rem;
  }
}
