:root {
  color-scheme: dark;
  --bg:#101116;
  --surface:#191b24;
  --line:#2c2d39;
  --text:#efedf5;
  --muted:#9594a7;
  --purple:#b89af8;
  --green:#82d9b5;
  --pink:#e5a2c8;
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #22232e;
  color: var(--text);
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background .16s, transform .16s;
}
button:hover,
.button:hover {
  background: #30303f;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
}
.primary {
  background: var(--purple);
  color: #1e1432;
  border-color: var(--purple);
}
.primary:hover {
  background: #ccb5ff;
}
.danger-button {
  background: #852d48;
  border-color: #a94160;
}
.danger {
  color: #c5a0b1;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1px;
  font-weight: 750;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.5px;
}
h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.3px;
}
small {
  font-size: 11px;
}
a {
  color: var(--purple);
}
.muted {
  color: var(--muted);
}
.purple {
  color: var(--purple);
}
.green {
  color: var(--green);
}
.pink {
  color: var(--pink);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--purple);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 800;
  font-size: 27px;
}
.brand > span {
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--text);
}
.brand-light {
  font-weight: 400;
  color: #a9a5ba;
}
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #15161d;
  border-right: 1px solid var(--line);
  padding: 29px 20px;
  display: flex;
  flex-direction: column;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 35px 0 30px;
  padding: 12px 9px;
}
.workspace strong {
  font-size: 11px;
}
.workspace small {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  background: #363047;
  color: #c7aff5;
  border: 1px solid #504162;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.online {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}
.workspace .online {
  margin-left: auto;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #747387;
  padding: 0 11px;
  margin-bottom: 12px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  background: transparent;
  border-color: transparent;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
  padding: 12px;
}
nav button > span {
  font-size: 19px;
  width: 20px;
  line-height: 1;
}
nav button.active {
  color: #c9b0ff;
  background: #29223b;
  border-color: #423254;
}
nav b {
  margin-left: auto;
  background: #44335f;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-note {
  margin-top: auto;
  padding: 40px 12px 25px;
}
.sidebar-note > span {
  display: block;
  color: var(--purple);
  font-size: 24px;
  margin-bottom: 8px;
}
.sidebar-note strong {
  font-size: 11px;
  display: block;
}
.sidebar-note p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.profile {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile button {
  margin-left: auto;
  padding: 4px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 11px;
  color: var(--muted);
}
.crumb {
  color: #d6d2e1;
  margin-left: 15px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 1px;
}
.top-heart {
  font-size: 24px;
  margin-left: 16px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--purple);
}
.page {
  padding: 35px 40px 50px;
  max-width: 1530px;
  margin: auto;
  min-height: calc(100vh - 133px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.page-heading .muted {
  font-size: 12px;
  margin-top: 10px;
}
.page-heading > .primary {
  white-space: nowrap;
}
.hero {
  border: 1px solid #453650;
  background:
    radial-gradient(
      ellipse at 83% 45%,
      #46305877,
      transparent 50%),
    linear-gradient(
      110deg,
      #25202f,
      #211c2c);
  border-radius: 13px;
  padding: 28px 32px;
  min-height: 224px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.hero-tag {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #d7bafc;
}
.hero h2 {
  font-size: 27px;
  margin: 12px 0 9px;
  letter-spacing: -.6px;
}
.hero p {
  font-size: 11px;
  color: #b4a9c1;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #c7a8fb;
  font-size: 11px;
  justify-content: flex-start;
}
.hero .text-button {
  margin-top: 18px;
}
.text-button:hover {
  background: none;
  color: #eee2ff;
}
.hero-art {
  position: relative;
  min-width: 270px;
  width: 36%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket {
  z-index: 2;
  background:
    linear-gradient(
      140deg,
      #3b2a4f,
      #241e33);
  height: 154px;
  width: 123px;
  border: 1px solid #ba96e0;
  border-radius: 9px;
  transform: rotate(13deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 5px 40px #a273bd2a;
}
.ticket > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: #dfc29c;
}
.ticket strong {
  font-size: 65px;
  color: #dbb8fb;
  line-height: 1;
}
.ticket small {
  font-size: 5px;
  letter-spacing: .8px;
  color: #cfb5e2;
}
.ticket-back {
  position: absolute;
  height: 150px;
  width: 117px;
  background: #302538;
  border: 1px solid #7a637f;
  border-radius: 9px;
  transform: translate(-35px, 10px) rotate(-13deg);
}
.spark {
  position: absolute;
  color: #b6a0d1;
}
.s1 {
  left: 7%;
  top: 20%;
  font-size: 35px;
}
.s2 {
  right: 12%;
  bottom: 15%;
  font-size: 25px;
}
.s3 {
  right: 8%;
  top: 0;
  font-size: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 32px;
}
.stats > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #171820;
  position: relative;
  min-height: 100px;
}
.stat-icon {
  height: 39px;
  width: 39px;
  display: inline-grid;
  place-items: center;
  background: #252333;
  border: 1px solid #3a304e;
  border-radius: 10px;
  font-size: 23px;
  flex-shrink: 0;
}
.stat-icon.green {
  background: #1e2c2b;
  border-color: #2c433b;
}
.stat-icon.pink {
  background: #302331;
  border-color: #483047;
}
.stats small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.stats strong {
  font-size: 26px;
  display: block;
  line-height: 1.3;
  letter-spacing: -1px;
}
.stat-caption {
  font-size: 8px;
  color: #777588;
  position: absolute;
  right: 12px;
  bottom: 12px;
}
.inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.inventory-heading h2 {
  font-size: 18px;
}
.inventory-heading h2 span {
  font-size: 10px;
  color: #b9b2ca;
  background: #292733;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 8px;
}
.inventory-heading > span {
  color: #6f6c81;
  font-size: 8px;
  letter-spacing: 1px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.tabs button {
  font-size: 11px;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.tabs button.selected {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.search-group {
  display: flex;
  gap: 9px;
}
.search-group input,
.search-group select {
  font-size: 10px;
  margin: 0;
  width: auto;
  padding: 9px 11px;
  background: #181920;
  max-width: 190px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s;
}
.card-wrapper:hover {
  transform: translateY(-3px);
  border-color: #6b5483;
}
.quest-card {
  --accent:#b69af3;
  --art:#34264b;
  background: #191b24;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
}
.card-wrapper > .quest-card {
  border: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0;
  flex: 1;
}
.quest-card.loot {
  --accent:#e6c483;
  --art:#413421;
}
.quest-card.coop {
  --accent:#e5a2c8;
  --art:#462837;
}
.quest-card.event {
  --accent:#87c8e1;
  --art:#233e4e;
}
.card-art {
  height: 155px;
  background:
    radial-gradient(
      ellipse at 50% 75%,
      var(--art),
      #1e1c28);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}
.rarity,
.card-number {
  position: absolute;
  z-index: 1;
  top: 12px;
  padding: 4px 7px;
  background: #14141ccc;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  font-size: 7px;
  letter-spacing: .8px;
  color: var(--accent);
  text-transform: uppercase;
}
.rarity {
  left: 12px;
}
.card-number {
  right: 12px;
  color: #c3bbc9;
  font-size: 6px;
}
.art-symbol {
  font-family: Georgia, serif;
  font-size: 86px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 35px var(--accent);
  transform: rotate(-10deg);
  position: relative;
  z-index: 1;
}
.art-orbit {
  position: absolute;
  width: 106px;
  height: 106px;
  border: 1px solid var(--accent);
  opacity: .18;
  border-radius: 28px;
  transform: rotate(30deg);
}
.art-stars {
  position: absolute;
  font-size: 23px;
  letter-spacing: 80px;
  white-space: nowrap;
  color: var(--accent);
  opacity: .6;
  transform: translateX(40px);
}
.card-body {
  padding: 18px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 12px;
}
.status {
  border: 1px solid #315646;
  border-radius: 4px;
  color: #8edcb5;
  background: #1c322a;
  padding: 3px 6px;
  font-size: 8px;
  white-space: nowrap;
}
.status:before {
  content: "\25cf";
  font-size: 6px;
  margin-right: 4px;
}
.status.done {
  color: #b9afc8;
  border-color: #45404c;
  background: #2b2733;
}
.card-body h3 {
  margin-bottom: 8px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.description {
  font-size: 11px;
  color: #a5a1b2;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.description.full {
  display: block;
  min-height: 0;
}
.reward {
  border-top: 1px solid #ffffff0d;
  padding-top: 11px;
  margin-top: 13px;
}
.reward small {
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #7b758c;
}
.reward p {
  font-size: 10px;
  color: #d0c8dc;
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.card-actions {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  gap: 7px;
}
.card-actions button {
  font-size: 10px;
  padding: 7px 9px;
  background: #22232d;
}
.share-button {
  flex: 1;
  color: #cec1e8;
}
.icon-button {
  min-width: 29px;
}
.claimed .card-art {
  filter: saturate(.45);
}
.claimed-date {
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
}
.card-qr {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.card-qr img {
  width: 122px;
  height: 122px;
  background: white;
  border-radius: 4px;
  flex-shrink: 0;
}
.card-qr strong {
  font-size: 12px;
}
.card-qr p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.card-qr small {
  font-size: 8px;
  color: #91839f;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #41384f;
  border-radius: 12px;
  background: #191821;
}
.empty > span {
  font-size: 40px;
  color: var(--purple);
}
.empty h3 {
  margin: 12px 0 8px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 19px 40px;
  color: #6c677b;
  font-size: 8px;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
}
footer span {
  letter-spacing: 0;
}
.settings-panel {
  max-width: 700px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 12px;
}
.settings-panel > p {
  margin: 12px 0 22px;
}
.settings-panel form > .muted {
  margin: 14px 0;
  font-size: 12px;
}
.notice {
  background: #332b20;
  border: 1px solid #645032;
  color: #e6cc9b;
  padding: 13px;
  border-radius: 7px;
  font-size: 12px;
  margin: 16px 0;
}
.history-list {
  display: grid;
  gap: 14px;
}
.history-list article {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.history-list h3 {
  font-size: 16px;
}
.history-list p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0;
}
.history-list small {
  color: var(--muted);
}
.history-list .status {
  margin-left: auto;
}
label {
  display: block;
  color: #c8c3d4;
  font-size: 12px;
  font-weight: 500;
  margin-top: 17px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #3c394a;
  border-radius: 7px;
  background: #12131b;
  color: var(--text);
  padding: 11px 12px;
  margin-top: 7px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #b89af814;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #6b677b;
}
.form-error {
  color: #ffacba;
  font-size: 12px;
  margin: 12px 0;
  min-height: 0;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.upload {
  border: 1px dashed #554363;
  padding: 12px;
  border-radius: 8px;
  color: #d0b6f5;
}
.upload input {
  font-size: 11px;
  padding: 8px;
  background: transparent;
  border: 0;
}
.upload small {
  color: var(--muted);
  font-size: 9px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-story {
  background:
    radial-gradient(
      ellipse at 60% 60%,
      #44305077,
      transparent 65%),
    #1b1823;
  border-right: 1px solid #382c45;
  padding: 40px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story > div {
  padding: 50px 0;
}
.login-story h1 {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.2;
}
.login-story em {
  font-style: normal;
  color: var(--purple);
}
.login-story > div > p:not(.eyebrow) {
  color: #a99ab8;
  font-size: 13px;
  margin-top: 22px;
}
.login-story > small {
  letter-spacing: 2px;
  color: #7d708c;
  font-size: 8px;
}
.login-emblem {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #cba3f1;
  font-size: 66px;
  margin-top: 36px;
}
.login-emblem span {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a28daf;
}
.login-panel {
  width: min(100%, 440px);
  align-self: center;
  justify-self: center;
  padding: 40px;
}
.login-panel h2 {
  font-size: 29px;
  margin-bottom: 14px;
}
.login-panel form {
  margin-top: 30px;
}
.login-panel button {
  width: 100%;
  margin-top: 12px;
  justify-content: space-between;
}
.login-foot {
  font-size: 10px;
  color: #756b83;
  margin-top: 36px;
}
.login-panel .muted {
  font-size: 12px;
}
.login-panel small.muted {
  display: block;
  margin-top: 9px;
}
dialog {
  color: var(--text);
  background: #181922;
  border: 1px solid #51405f;
  border-radius: 15px;
  padding: 32px;
  width: min(960px, calc(100% - 30px));
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: 0 35px 100px #0009;
}
dialog::backdrop {
  background: #080810c9;
  backdrop-filter: blur(6px);
}
.close {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 23px;
  line-height: 1;
  padding: 5px 10px;
  background: none;
  border: 0;
  color: var(--muted);
  z-index: 2;
}
.editor {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 35px;
}
.editor h2 {
  font-size: 24px;
}
.editor .muted {
  font-size: 12px;
  margin-top: 9px;
}
.preview {
  padding: 30px 20px;
  border-radius: 10px;
  background: #11121a;
}
.preview > small {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 18px;
}
.preview .quest-card {
  width: 100%;
}
.editor #remove-image {
  margin-top: 9px;
}
.simple-dialog {
  padding: 14px 6px;
  max-width: 530px;
  margin: auto;
}
.simple-dialog > p.muted {
  margin-top: 16px;
}
.share-dialog {
  max-width: 460px;
  margin: auto;
}
.share-dialog > p.muted {
  margin: 10px 0 20px;
  font-size: 12px;
}
.share-card {
  max-width: 380px;
  margin: auto;
}
.export-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.export-actions button,
.export-actions a {
  font-size: 12px;
}
.share-dialog > small {
  font-size: 10px;
}
.public-page {
  max-width: 500px;
  margin: auto;
  padding: 30px 24px;
  text-align: center;
}
.public-page > .brand {
  justify-content: center;
  margin-bottom: 50px;
}
.public-page h1 {
  font-size: 31px;
}
.public-page > .muted {
  font-size: 12px;
  margin: 14px 0 25px;
}
.public-card {
  text-align: left;
}
.public-card .card-art {
  height: 210px;
}
.redeem {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
}
.sound-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.sound-label input {
  display: inline;
  width: auto;
  margin: 0;
  accent-color: var(--purple);
}
.claim-result {
  background: #1b3029;
  border: 1px solid #365c49;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.claim-result strong {
  color: var(--green);
}
.claim-result p {
  font-size: 12px;
  margin-top: 8px;
  color: #b0c7ba;
}
.offline-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 25px 0;
}
.standalone main {
  max-width: 470px;
  padding: 30px 20px;
  margin: auto;
}
.standalone .redeem-link {
  display: flex;
  margin-top: 22px;
}
.standalone .eyebrow {
  text-align: center;
}
.export-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 440px;
  pointer-events: none;
}
.export-host .card-art {
  height: 220px;
}
.export-host .card-body {
  padding: 24px;
}
.export-host .description {
  font-size: 14px;
}
.export-host .reward p {
  font-size: 13px;
}
.export-host h3 {
  font-size: 24px;
}
.export-host .card-qr img {
  width: 156px;
  height: 156px;
}
.export-host .card-number {
  font-size: 8px;
}
.export-host .rarity {
  font-size: 9px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  padding: 13px 23px;
  background: #322740;
  border: 1px solid #725b8b;
  border-radius: 9px;
  color: #f0e5ff;
  font-size: 12px;
  box-shadow: 0 8px 40px #0007;
  max-width: calc(100% - 30px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  text-align: center;
  padding: 80px;
  color: var(--purple);
}
.confetti {
  position: fixed;
  top: -20px;
  width: 8px;
  height: 14px;
  z-index: 100;
  animation: fall 2.5s ease-in forwards;
  pointer-events: none;
}
@keyframes fall {
  to {
    transform: translate(var(--drift), 105vh) rotate(720deg);
  }
}
@media (min-width: 1500px) {
  .card-art {
    height: 190px;
  }
  .card-body {
    padding: 22px;
  }
  .card-body h3 {
    font-size: 21px;
  }
  .description {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 15px;
  }
  .page {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-group {
    width: 100%;
  }
  .search-group input {
    flex: 1;
    max-width: none;
  }
  .stat-caption {
    display: none;
  }
  .stats > div {
    padding: 14px;
    gap: 10px;
  }
  .hero-art {
    min-width: 200px;
  }
  .hero {
    padding: 25px;
  }
  h1 {
    font-size: 28px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }
  .sidebar > .brand {
    font-size: 22px;
  }
  .workspace,
  .nav-label,
  .sidebar-note,
  .profile {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
    margin-top: 16px;
    overflow: auto;
  }
  nav button {
    font-size: 11px;
    padding: 9px 10px;
    white-space: nowrap;
  }
  nav button > span {
    font-size: 17px;
  }
  .topbar {
    height: 48px;
    padding: 0 20px;
  }
  .top-right {
    font-size: 7px;
  }
  .top-heart {
    font-size: 18px;
    padding-left: 12px;
    margin-left: 0;
  }
  .page {
    padding: 25px 20px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .page-heading > .primary {
    font-size: 11px;
    padding: 10px;
    white-space: normal;
    flex-shrink: 0;
  }
  .hero {
    padding: 23px;
    min-height: 210px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    max-width: 250px;
  }
  .hero-art {
    min-width: 120px;
    width: 25%;
    margin-right: -30px;
  }
  .ticket {
    width: 83px;
    height: 120px;
  }
  .ticket > span {
    font-size: 5px;
  }
  .ticket strong {
    font-size: 48px;
  }
  .ticket small {
    font-size: 4px;
  }
  .ticket-back {
    width: 80px;
    height: 115px;
    transform: translate(-15px, 8px) rotate(-13deg);
  }
  .s1 {
    left: -8%;
    font-size: 22px;
  }
  .s2 {
    right: 10%;
    font-size: 20px;
  }
  .stats {
    gap: 8px;
    margin: 16px 0 26px;
  }
  .stats > div {
    padding: 11px 9px;
    gap: 8px;
    min-height: 85px;
  }
  .stats .stat-icon {
    width: 27px;
    height: 30px;
    font-size: 18px;
    border-radius: 6px;
  }
  .stats small {
    font-size: 8px;
  }
  .stats strong {
    font-size: 23px;
  }
  .inventory-heading > span {
    display: none;
  }
  .cards {
    gap: 14px;
  }
  .card-body {
    padding: 14px;
  }
  .card-art {
    height: 140px;
  }
  .card-number {
    display: none;
  }
  .card-body h3 {
    font-size: 17px;
  }
  .description {
    font-size: 10px;
  }
  .card-actions {
    padding: 9px;
    gap: 5px;
  }
  .card-actions button {
    font-size: 9px;
    padding: 7px;
  }
  .card-actions .icon-button {
    min-width: 24px;
  }
  .search-group select {
    max-width: 155px;
  }
  .toolbar {
    margin-bottom: 18px;
  }
  footer {
    padding: 17px 20px;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    padding: 25px 30px;
    border-right: 0;
  }
  .login-story > div {
    padding: 40px 0 10px;
  }
  .login-story h1 {
    font-size: 34px;
  }
  .login-story > small,
  .login-emblem {
    display: none;
  }
  .login-story > div > p:not(.eyebrow) {
    font-size: 11px;
  }
  .login-panel {
    padding: 35px 30px;
    margin: auto;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .preview {
    display: none;
  }
  dialog {
    padding: 28px 20px;
  }
  .editor h2 {
    font-size: 21px;
  }
  .history-list article {
    padding: 17px;
    gap: 12px;
  }
  .settings-panel {
    padding: 22px;
  }
  .history-list .status {
    font-size: 7px;
  }
  .login-panel h2 {
    font-size: 25px;
  }
  .simple-dialog .form-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 440px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .card-art {
    height: 190px;
  }
  .card-number {
    display: block;
  }
  .card-body {
    padding: 19px;
  }
  .description {
    font-size: 12px;
  }
  .card-body h3 {
    font-size: 20px;
  }
  .reward p {
    font-size: 12px;
  }
  .card-actions {
    padding: 12px;
  }
  .card-actions button {
    font-size: 12px;
  }
  .stats > div {
    display: block;
    padding: 12px;
  }
  .stats .stat-icon {
    float: right;
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
  .stats small {
    max-width: 60px;
    min-height: 26px;
  }
  .stats strong {
    margin-top: 3px;
  }
  .hero-art {
    display: none;
  }
  .hero h2 {
    font-size: 25px;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
  }
  .tabs button {
    padding: 9px 10px;
  }
  .page-heading {
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading .muted {
    font-size: 11px;
  }
  .card-qr img {
    width: 115px;
    height: 115px;
  }
  .history-list .stat-icon {
    display: none;
  }
  .top-right {
    letter-spacing: 0;
  }
  .brand > span {
    font-size: 16px;
  }
  .sidebar nav {
    justify-content: space-between;
  }
  nav button {
    padding: 8px 7px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
  }
  .sidebar .profile {
    display: flex;
    position: absolute;
    top: 13px;
    right: 20px;
    border: 0;
    padding: 0;
  }
  .sidebar .profile .avatar,
  .sidebar .profile > div {
    display: none;
  }
  .sidebar .profile button {
    display: block;
    padding: 0 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
