@charset "UTF-8";
@font-face {
  font-family: "Old Standard TT";
  src: url("/brand/OldStandard-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Old Standard TT";
  src: url("/brand/OldStandard-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --black: #0e0d0b;
  --surface: #191713;
  --panel: #201d17;
  --line: #3a3326;
  --gold: #c9a04a;
  --light: #f4efe7;
  --muted: #c1b6a4;
  --red: #a8322a;
  --serif: "Old Standard TT", Georgia, "Times New Roman", serif;
  font:
    16px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--black);
  color: var(--light);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: #dfbb72;
}
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--light);
  background: var(--panel);
  padding: 0.56rem 0.92rem;
  cursor: pointer;
  font-weight: 540;
}
button:hover,
a:hover {
  color: #f1d39b;
}
button:hover {
  border-color: #957640;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.primary {
  background: #d4ad61;
  color: #21190c;
  border-color: #dbb972;
  font-weight: 700;
}
.primary:hover {
  background: #e2bd78;
  color: #21190c;
}
.textbtn,
.quiet,
.iconbtn {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.textbtn {
  color: #e3be75;
  padding-inline: 0.3rem;
}
.chosen,
.current {
  color: #e7c77f;
  border-color: #9c7a3f;
  background: #30291d;
}
.gold,
.reward {
  color: #dfb76b;
}
:focus-visible {
  outline: 3px solid #f4cb7b;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
}
img,
video {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.4rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.5rem;
}
em {
  font-weight: 400;
  color: #e4bd74;
}
small {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}
p {
  margin: 0.6rem 0 1rem;
  overflow-wrap: anywhere;
}
strong,
b {
  overflow-wrap: anywhere;
}
#top {
  border-bottom: 1px solid var(--line);
  background: var(--black);
}
.mast {
  max-width: 1344px;
  margin: auto;
  padding: 0 clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.logobox {
  padding: 25px 25px 25px 0;
}
.logo {
  display: block;
  width: 184px;
  height: auto;
}
.mastmeta,
.private,
.quiet,
.byline,
.actions,
.pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.private {
  color: var(--muted);
  font-size: 0.9rem;
}
.demo,
.tag {
  font-size: 0.83rem;
  border: 1px solid #54452e;
  background: #211c14;
  color: #e3c88f;
  border-radius: 30px;
  padding: 0.2rem 0.7rem;
}
.welcome {
  max-width: 1344px;
  margin: clamp(18px, 4vw, 65px) auto;
  padding: 0 clamp(16px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  min-height: 560px;
}
.cover {
  min-height: 520px;
  position: relative;
  background: #1b160f;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
}
.coverpic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}
.covertext {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(24px, 3vw, 56px);
  background: linear-gradient(90deg, #0e0d0bcc, transparent 92%);
}
.cover h1 {
  color: #fff4df;
  line-height: 1.04;
  font-size: clamp(3.2rem, 5vw, 6rem);
  padding: 2rem 0;
}
.eyebrow {
  font:
    650 0.78rem/1.65 system-ui,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0bf80;
}
.eyebrow i {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #b38d4c;
  vertical-align: middle;
  margin: 0 8px;
}
.invitation {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  padding: clamp(24px, 3vw, 48px);
  text-align: center;
}
.sealbox {
  padding: 18px;
  display: flex;
  justify-content: center;
  background: var(--black);
  width: fit-content;
  margin: auto;
  border-radius: 8px;
}
.seal {
  display: block;
  width: 106px;
  height: auto;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.65rem;
  margin: 20px 0;
}
.ornament:before,
.ornament:after {
  content: "";
  height: 1px;
  width: 36px;
  background: #685332;
}
.invitation > p,
.hint,
.note {
  color: var(--muted);
}
.invitation form {
  text-align: left;
}
.invitation .primary {
  width: 100%;
}
.mutedlink {
  display: inline-block;
  color: var(--muted);
  padding: 13px 6px;
  margin-top: 10px;
  text-underline-offset: 4px;
}
.guestwrap,
.adminmain {
  max-width: 1344px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 44px) clamp(16px, 4vw, 64px) 110px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 325px;
  display: flex;
  align-items: center;
  background: #1c1713 url(/evening.webp) 68% 51% / cover no-repeat;
  border: 1px solid #51412d;
  border-radius: 12px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #14110efc, #16130ea8 42%, transparent 83%);
}
.hero > div {
  min-width: 0;
  padding: clamp(24px, 3vw, 46px);
}
.guestwrap h1, .guestwrap h2, .guestwrap h3, #modal h2, .check {
  overflow-wrap: anywhere;
}
.download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.hero h1 {
  line-height: 1.01;
}
.hero .eyebrow {
  margin: 0 0 16px;
}
.hero p:not(.eyebrow) {
  color: #e3d8c7;
}
.hero.compact {
  min-height: 205px;
}
.hero.compact h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(220px, 1fr);
  gap: clamp(18px, 3vw, 44px);
}
.dashboard aside {
  padding-top: 28px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 14px;
}
.sectionhead:first-child {
  margin-top: 0;
}
.dashboard .sectionhead:first-child {
  margin-top: 28px;
}
.cards,
.tiles,
.stats {
  display: grid;
  gap: 12px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr));
}
.questcard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 7px;
  padding: 18px;
  border-radius: 9px;
  background: #1b1915;
}
.cardtop,
.cardfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}
.cardtop {
  margin-bottom: 12px;
}
.roundicon {
  width: 36px;
  height: 36px;
  border: 1px solid #544630;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #dbb66e;
}
.reward {
  font-size: 0.94rem;
}
.questcard h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.cardfoot {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
.tiles {
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}
.tiles button {
  justify-content: flex-start;
  padding: 12px;
}
.tiles svg {
  color: var(--gold);
}
.walletmini,
.walletbanner,
.panel,
.post,
.passport {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.5vw, 32px);
  margin-bottom: 14px;
}
.walletmini {
  background: #252015;
}
.walletmini small {
  display: flex;
  align-items: center;
  gap: 10px;
}
.walletmini strong,
.walletbanner strong {
  display: block;
  font: normal 3.1rem/1.25 var(--serif);
  color: #e7c278;
  margin: 10px 0;
}
.note {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.row > div {
  min-width: 0;
}
.row small {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.actions,
.pills {
  flex-wrap: wrap;
}
.pills,
.actions {
  margin: 8px 0;
}
.empty {
  padding: 1.2rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 7px;
}
.stats {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  margin: 16px 0;
}
.stat {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat b {
  display: block;
  font: normal 2rem var(--serif);
  color: #e4bd74;
  margin: 4px 0;
}
.passport {
  text-align: center;
}
.passport .avatar {
  margin: auto;
}
.avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}
.initial {
  display: grid;
  place-items: center;
  background: #33291b;
  color: #efd094;
  font: 1.5rem var(--serif);
}
.post {
  max-width: 760px;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 8px;
  margin: 16px 0;
}
.photo {
  display: block;
  border-radius: 6px;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #100f0c;
}
.byline small {
  margin: 0;
}
#nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 3;
  background: #13120ff5;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#nav:empty {
  display: none;
}
#nav > div {
  display: flex;
  max-width: 730px;
  margin: auto;
  justify-content: space-around;
}
#nav .navbtn {
  min-height: 64px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  flex: 1;
}
#nav .current {
  color: #e6bd6a;
  box-shadow: inset 0 2px var(--gold);
}
.adminmain {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
}
.sidebar {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 3px;
}
.sidebar .navbtn {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
}
.sidebar .current {
  background: #2c251a;
}
.adminbody {
  min-width: 0;
}
.field,
.search {
  margin: 12px 0;
  display: block;
}
.field > label,
.search {
  font-size: 0.9rem;
  font-weight: 580;
}
.field > label {
  display: block;
  margin: 0 0 5px;
}
.field > input:not([type="checkbox"]),
.field select,
.field textarea,
.search input {
  display: block;
  font-size: 1rem;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  background: #110f0d;
  color: var(--light);
  border: 1px solid #584e3d;
  border-radius: 5px;
}
.field small {
  margin-top: 4px;
}
.field input[type="file"] {
  white-space: normal;
}
.field input[type="color"] {
  padding: 4px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.checks {
  overscroll-behavior: contain;
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 10px;
}
.formerror {
  color: #ffaaa1;
  font-size: 0.92rem;
}
.formerror:empty {
  margin: 0;
}
.iconbtn {
  width: 44px;
  padding: 0;
}
.iconbtn:empty:before {
  content: "×";
}
dialog {
  width: min(520px, calc(100% - 24px));
  max-height: 86dvh;
  overflow: auto;
  color: var(--light);
  border: 1px solid #74603d;
  border-radius: 12px;
  background: #1b1915;
  padding: clamp(18px, 3vw, 30px);
}
dialog::backdrop {
  background: #070604c9;
}
#notice {
  position: fixed;
  bottom: 88px;
  right: 20px;
  z-index: 9;
  color: #fbf3e5;
  background: #352c1e;
  border: 1px solid #806940;
  border-radius: 7px;
  padding: 10px 16px;
  max-width: min(90vw, 480px);
  display: none;
}
#notice.show {
  display: block;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px;
}
.mobilemetrics {
  display: none;
}
@media (max-width: 580px) {
  .mobilemetrics {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
  .mobilemetrics button {
    flex: 1;
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    padding: 10px 14px;
    background: var(--surface);
  }
  .mobilemetrics b {
    font: 1.65rem var(--serif);
    color: #e3bd76;
  }
  .dashboard aside > .walletmini,
  .dashboard aside > .row {
    display: none;
  }
}
@media (max-width: 800px) {
  .welcome {
    grid-template-columns: 1.05fr 1fr;
  }
  .covertext {
    padding: 24px;
  }
  .cover h1 {
    font-size: 3.1rem;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard aside {
    padding-top: 0;
  }
  .adminmain {
    display: block;
  }
  .sidebar {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 16px;
  }
  .sidebar .eyebrow {
    display: none;
  }
  .sidebar .navbtn {
    flex: none;
  }
  .mast {
    padding: 0 16px;
  }
}
@media (max-width: 580px) {
  .logobox {
    padding: 23px 12px 23px 0;
  }
  .logo {
    width: 180px;
  }
  .mastmeta {
    gap: 2px;
  }
  .private {
    max-width: 94px;
    font-size: 0.77rem;
    line-height: 1.25;
  }
  .quiet span {
    display: none;
  }
  .quiet {
    padding: 8px;
    min-width: 44px;
  }
  .demo {
    font-size: 0.72rem;
    padding: 3px 7px;
  }
  .welcome {
    display: block;
    margin-top: 14px;
  }
  .cover {
    min-height: 220px;
    border-radius: 10px 10px 0 0;
  }
  .covertext {
    min-height: 220px;
    padding: 20px;
    justify-content: center;
  }
  .cover h1 {
    font-size: 2.65rem;
    padding: 0;
  }
  .cover .eyebrow {
    margin-top: 0;
  }
  .invitation {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    padding: 20px;
  }
  .invitation .seal {
    width: 96px;
  }
  .invitation .sealbox {
    padding: 13px;
  }
  .ornament {
    margin: 12px 0;
  }
  .hero {
    min-height: 252px;
    background-position: 64% center;
  }
  .hero:before {
    background: linear-gradient(90deg, #10100de8, #12100d99 56%, #12100d33);
  }
  .hero > div {
    padding: 20px;
  }
  .hero .eyebrow {
    font-size: 0.72rem;
  }
  .hero h1 {
    font-size: 3.05rem;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .questcard {
    padding: 12px;
  }
  .questcard h3 {
    font-size: 1.24rem;
  }
  .questcard small,
  .cardfoot {
    font-size: 0.77rem;
  }
  .roundicon {
    width: 30px;
    height: 30px;
  }
  .cardtop {
    margin-bottom: 6px;
  }
  .dashboard .cards .questcard:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .row {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 5px;
  }
  .row .actions {
    margin: 2px 0;
  }
  .panel,
  .post {
    padding: 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .sectionhead {
    margin-top: 20px;
  }
  #nav .navbtn {
    flex-direction: column;
    gap: 3px;
    padding: 7px 2px;
    font-size: 0.75rem;
    min-width: 0;
    min-height: 58px;
  }
  .eyebrow {
    letter-spacing: 0.09em;
  }
  .adminmain,
  .guestwrap {
    padding-inline: 14px;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 355px) {
  .mast {
    padding-inline: 10px;
  }
  .demo {
    max-width: 55px;
    text-align: center;
    line-height: 1.1;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .welcome {
    padding: 0 10px;
  }
}
@media (pointer: coarse) {
  body {
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
  }
  #nav {
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  }
  .guestwrap {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  dialog {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
}

.partner-picker summary { cursor: pointer; padding: 12px 0; }
.partner-picker summary span { color: var(--gold); }
.partner-picker .check { min-height: 44px; }
.partner-picker [hidden] { display: none; }
