/* Mesa de jardim: o canvas ocupa a tela; painéis de papel e madeira esmaltada flutuam nas margens.
   Visual único (claro e acolhedor) por escolha: cores e fundo definidos explicitamente. */
:root {
  --cream: #f4ebdd;
  --paper: #fbf6ec;
  --paper-2: #f2e8d6;
  --honey: #b8895d;
  --honey-dark: #8c6340;
  --sage: #88a18a;
  --sage-soft: #dfe7dc;
  --deep: #294b40;
  --deep-2: #1f3a31;
  --coral: #d88a7a;
  --coral-dark: #b9675a;
  --gold: #c7aa68;
  --ink: #25382f;
  --ink-soft: #55665c;
  --line: rgba(41, 75, 64, 0.16);
  --shadow: 0 10px 30px rgba(40, 24, 10, 0.22), 0 2px 6px rgba(40, 24, 10, 0.14);
  --font-display: 'Corben', 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #3b2a1c;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
}
body {
  user-select: none;
  -webkit-user-select: none;
}

#game {
  position: fixed;
  inset: 0;
  background: #3b2a1c;
}
#game canvas {
  display: block;
  touch-action: none;
}
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
#ui > * {
  pointer-events: auto;
}
#ui .passthrough {
  pointer-events: none;
}
#ui .passthrough > * {
  pointer-events: auto;
}
#safe-probe {
  position: fixed;
  visibility: hidden;
  pointer-events: none;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  cursor: pointer;
  border: 1.5px solid rgba(41, 75, 64, 0.22);
  background: linear-gradient(#fffaf1, #f1e6d2);
  box-shadow:
    0 2px 0 rgba(140, 99, 64, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.01em;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    background 0.15s;
}
.btn svg {
  font-size: 1.25em;
  flex: none;
}
.btn:hover {
  background: linear-gradient(#fffdf8, #f4ead9);
}
.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 0 0 rgba(140, 99, 64, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}
.btn.primary {
  background: linear-gradient(#335d50, var(--deep));
  color: #fdf6e6;
  border-color: rgba(199, 170, 104, 0.85);
  box-shadow:
    0 3px 0 var(--deep-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn.primary:hover {
  background: linear-gradient(#3a6a5b, #2d5246);
}
.btn.coral {
  background: linear-gradient(#e29a8a, var(--coral));
  color: #3a1d16;
  border-color: rgba(120, 50, 40, 0.3);
  box-shadow:
    0 3px 0 var(--coral-dark),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.btn.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 12px;
}
.btn.block {
  width: 100%;
  justify-content: flex-start;
}
.btn.block .hint-text {
  margin-left: auto;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
}
.icon-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* ---------------------------------------------------------------- telas e cartões */
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(14px, env(safe-area-inset-right, 0px))
    calc(env(safe-area-inset-bottom, 0px) + 18px) max(14px, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse at 50% 30%, rgba(59, 42, 28, 0.15), rgba(30, 20, 12, 0.55));
  animation: fadeIn 0.25s ease both;
}
.screen.center {
  align-items: center;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen,
  .card,
  .modal-card {
    animation: none !important;
  }
}
.reduced .screen,
.reduced .card,
.reduced .modal-card {
  animation: none !important;
}

.card {
  width: min(560px, 100%);
  margin: auto 0;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border-radius: 22px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1.5px rgba(199, 170, 104, 0.55),
    inset 0 0 0 6px rgba(255, 255, 255, 0.35);
  padding: 22px 22px 20px;
  position: relative;
  animation: rise 0.3s ease both;
}
.card.wide {
  width: min(880px, 100%);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card-head h2 {
  margin: 0;
  flex: 1;
  font-size: clamp(22px, 6vw, 28px);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep);
  text-wrap: balance;
  line-height: 1.1;
}
h2 {
  font-size: 26px;
}
h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}
p {
  line-height: 1.5;
}
.muted {
  color: var(--ink-soft);
}
.label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- início */
.home {
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  margin: auto 0;
}
.title-card {
  text-align: center;
  padding: 18px 20px 20px;
}
.title-card .portrait-wrap {
  display: flex;
  justify-content: center;
  margin: -6px 0 4px;
}
.title-card h1 {
  margin: 2px 0 0;
  font-size: clamp(34px, 9vw, 46px);
  letter-spacing: -0.01em;
}
.title-card .sub {
  font-family: var(--font-display);
  color: var(--coral-dark);
  font-size: 17px;
  margin-top: 4px;
}
.title-card .tagline {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
  font-style: italic;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(41, 75, 64, 0.18);
}
.menu-list {
  display: grid;
  gap: 10px;
}
.lang-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.lang-row .seg {
  background: rgba(251, 246, 236, 0.9);
  box-shadow: 0 4px 12px rgba(40, 24, 10, 0.2);
}
.btn.primary .hint-text {
  color: rgba(253, 246, 230, 0.8);
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .home {
    width: min(900px, 100%);
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 18px;
  }
  .home .lang-row {
    grid-column: 1 / -1;
  }
}
.seg {
  display: inline-flex;
  background: rgba(41, 75, 64, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink-soft);
  min-height: 40px;
}
.seg button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--deep);
  box-shadow: 0 1px 3px rgba(40, 24, 10, 0.18);
}

/* ---------------------------------------------------------------- escolhas */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.choice {
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 6px;
  min-height: 56px;
  position: relative;
}
.choice[aria-pressed='true'] {
  border-color: var(--deep);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(41, 75, 64, 0.25);
}
.choice[disabled] {
  opacity: 0.55;
  cursor: default;
}
.choice .ttl {
  font-weight: 800;
}
.choice .desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.choice .row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.choice .lock {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--ink-soft);
}
.env-swatch {
  height: 44px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}
.note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 10px 0 0;
}
.warn-box {
  background: #fbe8e2;
  border: 1px solid rgba(185, 103, 90, 0.35);
  color: #6b2f25;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 12px;
}

/* ---------------------------------------------------------------- HUD da partida */
.hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hud-panel {
  background: linear-gradient(180deg, rgba(251, 246, 236, 0.94), rgba(242, 232, 214, 0.94));
  border-radius: 18px;
  box-shadow:
    0 6px 18px rgba(40, 24, 10, 0.25),
    inset 0 0 0 1.5px rgba(199, 170, 104, 0.5);
  backdrop-filter: blur(4px);
}
.hud-top {
  padding: 6px 10px;
}
.hud-top .who {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.hud-top .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep);
  font-size: 18px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-top .status {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-top .rule {
  font-size: 11px;
  font-weight: 800;
  color: var(--honey-dark);
  letter-spacing: 0.04em;
}
.counts {
  display: grid;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 14px;
}
.count-row {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
.count-row img {
  width: 20px;
  height: 20px;
}
.count-row .num {
  min-width: 14px;
  text-align: right;
}
.count-row.active {
  color: var(--deep);
}
.count-row.active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 2px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.portrait {
  display: block;
  flex: none;
}

.hud-bottom {
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
}
.hud-bottom .btn {
  min-width: 0;
  flex: 1;
  max-width: 170px;
  padding: 0 12px;
}
.hud-side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}
.hud-side.left {
  justify-items: center;
  text-align: center;
}
.hud-side.left .who {
  justify-items: center;
  text-align: center;
}
.hud-side.left .name {
  font-size: 24px;
}
.hud-side.left .status {
  white-space: normal;
}
.hud-side .btn {
  width: 100%;
}

.banner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.banner .pill {
  pointer-events: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  min-height: 30px;
  background: rgba(251, 246, 236, 0.95);
  color: var(--deep);
  font-weight: 800;
  font-size: 14px;
  box-shadow:
    0 3px 10px rgba(40, 24, 10, 0.25),
    inset 0 0 0 1.5px rgba(199, 170, 104, 0.6);
  animation: rise 0.2s ease both;
}
.banner .pill.no-btn {
  padding-right: 14px;
}
.banner .pill.capture {
  background: var(--deep);
  color: #fdf6e6;
  box-shadow:
    0 3px 10px rgba(40, 24, 10, 0.3),
    inset 0 0 0 1.5px rgba(199, 170, 104, 0.9);
}
.banner .pill.warn {
  background: #fbe8e2;
  color: #6b2f25;
}
.banner .pill.good {
  background: #f6efcf;
  color: #5a4512;
}
.banner .pill .mini {
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  min-height: 26px;
}
.banner .pill.capture .mini {
  background: rgba(253, 246, 230, 0.18);
}
.banner.landscape {
  align-items: flex-end;
}
.banner.landscape .pill {
  border-radius: 14px;
  white-space: normal;
  text-align: center;
  justify-content: center;
  padding: 8px 12px;
}

/* ---------------------------------------------------------------- modais */
.modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(25, 16, 8, 0.5);
  z-index: 5;
}
.modal-card {
  width: min(440px, 100%);
  max-height: calc(100% - 20px);
  overflow: auto;
  animation: rise 0.22s ease both;
}
.modal-card.result {
  text-align: center;
}
.result .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  margin: 6px 0 4px;
  color: var(--deep);
}
.result .seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f6efcf;
  color: #5a4512;
  font-weight: 800;
}
.result .seal svg {
  font-size: 22px;
  color: var(--coral-dark);
}
.result .quote {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  margin: 12px 0 0;
}
.unlock-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.unlock-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--deep);
}
.rules-list {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 8px;
}
.rules-list li {
  line-height: 1.45;
}

/* ---------------------------------------------------------------- campanha */
.campaign {
  display: grid;
  gap: 14px;
}
.garden {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid var(--line);
}
.garden.locked {
  opacity: 0.6;
}
.garden-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.garden-head canvas {
  border-radius: 50%;
}
.garden-head .ttl {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep);
  font-size: 18px;
}
.nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.node {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  padding: 10px 8px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  min-height: 92px;
}
.node svg {
  font-size: 30px;
  color: var(--sage);
}
.node.sealed svg {
  color: var(--coral);
}
.node.sealed {
  background: #fff6f2;
  border-color: rgba(216, 138, 122, 0.6);
}
.node[disabled] {
  cursor: default;
  opacity: 0.55;
}
.node .n {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.node .t {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.seal-progress {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.seal-progress span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(41, 75, 64, 0.12);
}
.seal-progress span.on {
  background: var(--coral);
  box-shadow: inset 0 0 0 3px #f6c9bd;
}
.encounter-card {
  text-align: center;
}
.encounter-card .portrait-wrap {
  display: flex;
  justify-content: center;
}
.encounter-card blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 12px 0;
  color: var(--ink);
  line-height: 1.4;
}

/* ---------------------------------------------------------------- coleção */
.sets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.set {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  padding: 10px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}
.set[aria-pressed='true'] {
  border-color: var(--deep);
  box-shadow: 0 0 0 2px rgba(41, 75, 64, 0.25);
}
.set[disabled] {
  cursor: default;
}
.set .swatches {
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 10px;
  justify-content: center;
}
.set .swatches img {
  width: 44px;
  height: 52px;
  object-fit: contain;
}
.set.locked .swatches {
  filter: grayscale(0.85) opacity(0.55);
}
.set .ttl {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.set .sub {
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- estatísticas e opções */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.stat {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.stat .v {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.stat .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
table.mini {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
table.mini th,
table.mini td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
table.mini th:first-child,
table.mini td:first-child {
  text-align: left;
}
table.mini th {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.settings {
  display: grid;
  gap: 12px;
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.set-row label {
  font-weight: 700;
}
.set-row.tg {
  flex-wrap: nowrap;
}
.set-row.tg label {
  flex: 1;
  min-width: 0;
}
.set-row input[type='range'] {
  width: min(220px, 50vw);
  accent-color: var(--deep);
}
.toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
}
.toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(41, 75, 64, 0.2);
  transition: background 0.15s;
  pointer-events: none;
}
.toggle span::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.toggle input:checked + span {
  background: var(--deep);
}
.toggle input:checked + span::after {
  transform: translateX(22px);
}
.toggle input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
kbd {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
}
.shortcuts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 14px;
  align-items: center;
}

/* ---------------------------------------------------------------- tutorial */
.tut {
  position: absolute;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}
.tut .ttl {
  font-family: var(--font-display);
  color: var(--deep);
  font-size: 17px;
  font-weight: 700;
}
.tut .txt {
  font-size: 14px;
  line-height: 1.4;
}
.tut .txt.done {
  color: #3d5a1f;
  font-weight: 800;
}
.tut .row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.tut .dots {
  display: flex;
  gap: 4px;
}
.tut .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(41, 75, 64, 0.18);
}
.tut .dots span.on {
  background: var(--deep);
}
.tut .dots span.done {
  background: var(--coral);
}
.tut .btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 4vh;
  overflow: hidden;
  color: #fff;
  font: 900 22px var(--font-ui);
  text-align: center;
  background:
    radial-gradient(circle at 2px 2px, #ffffff14 1.4px, transparent 2px) 0 0/16px 16px,
    radial-gradient(120% 90% at 50% 30%, #2f6bea 0, #1746b4 45%, #0b1a55 100%);
}
.loading-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.62) saturate(1.1);
  transition: opacity 0.35s ease-out;
}
.loading-bg.in {
  opacity: 1;
}
.loading-logo {
  position: relative;
  grid-row: 2;
  width: min(78vw, 62vh, 560px);
  height: auto;
  opacity: 0;
  scale: 0.8;
  filter: drop-shadow(0 8px 0 #07142c88);
  transition:
    opacity 0.25s ease-out,
    scale 0.4s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.loading-logo.in {
  opacity: 1;
  scale: 1;
}
.loading > span {
  position: relative;
  grid-row: 2;
}
.loading-bar {
  --p: 0;
  position: relative;
  grid-row: 3;
  align-self: start;
  width: min(72vw, 440px);
  height: 30px;
  border: 5px solid #0b1a3a;
  border-radius: 99px;
  background: #0b1a3a;
  box-shadow:
    0 0 0 4px #fff,
    0 8px 0 4px #07142cc0;
}
.loading-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: max(30px, calc(var(--p) * 100%));
  border-radius: 99px;
  transition: width 0.18s linear;
  background: repeating-linear-gradient(115deg, #ffd83a 0 14px, #ffb81f 14px 28px);
  background-size: 200% 100%;
  animation: loadingStripes 0.7s linear infinite;
  box-shadow:
    inset 0 4px 0 #ffffff70,
    inset 0 -4px 0 #d98a0050;
}
.loading-bar b {
  position: absolute;
  top: 50%;
  left: clamp(15px, calc(var(--p) * 100%), calc(100% - 15px));
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 5px solid #0b1a3a;
  border-radius: 50%;
  transition: left 0.18s linear;
  background: radial-gradient(circle at 50% 50%, #ffe873 0 34%, #ffc21f 36% 58%, #ffd83a 60%);
  box-shadow:
    0 4px 0 #07142c,
    inset 0 3px 0 #ffffff80;
  animation: loadingCoin 0.5s ease-in-out infinite alternate;
}
@keyframes loadingStripes {
  to {
    background-position: -62px 0;
  }
}
@keyframes loadingCoin {
  to {
    translate: 0 -4px;
    rotate: 10deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-bar i,
  .loading-bar b {
    animation: none;
  }
  .loading-logo {
    transition: none;
  }
}

/* End of src/style.css */

/* End of assets/style-D_mhFG--.css */
