:root {
  color-scheme: dark;
  --bg: #151410;
  --ink: #f5ead4;
  --muted: #b9aa8d;
  --panel: #241d18;
  --panel-strong: #2d241c;
  --paper: #f0dfbd;
  --paper-ink: #241a14;
  --line: rgba(224, 190, 121, .28);
  --red: #a93e34;
  --red-dark: #6e211e;
  --green: #416a4c;
  --blue: #3d6070;
  --gold: #d0a94d;
  --shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 76% 8%, rgba(245, 234, 212, .72) 0 42px, rgba(245, 234, 212, .18) 43px 64px, transparent 65px),
    linear-gradient(180deg, rgba(18, 28, 34, .96), rgba(21, 20, 16, .98) 48%, #16110f),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 34vh;
  pointer-events: none;
  background:
    linear-gradient(142deg, transparent 0 18%, rgba(7, 12, 12, .72) 18% 21%, transparent 21% 100%) 8% 0 / 180px 100% repeat-x,
    linear-gradient(132deg, transparent 0 22%, rgba(10, 15, 13, .82) 22% 25%, transparent 25% 100%) 42% 0 / 220px 100% repeat-x,
    linear-gradient(180deg, transparent, rgba(7, 9, 8, .9) 70%);
  opacity: .78;
  z-index: 0;
}

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

body.wolf-helper-page {
  --bg: #101816;
  --ink: #eef7ee;
  --muted: #a9c3b2;
  --panel: #17231d;
  --panel-strong: #203128;
  --paper: #e0f0d9;
  --paper-ink: #152118;
  --line: rgba(139, 208, 142, .28);
  --red: #3f6f50;
  --red-dark: #244a34;
  --green: #6faf73;
  --blue: #416c64;
  --gold: #8bd08e;
  background:
    radial-gradient(circle at 78% 10%, rgba(139, 208, 142, .45) 0 48px, rgba(139, 208, 142, .14) 49px 76px, transparent 77px),
    linear-gradient(180deg, rgba(13, 24, 22, .98), rgba(16, 24, 22, .98) 48%, #0f1512),
    var(--bg);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 10000;
  padding: 10px 14px;
  border: 2px solid #000;
  background: #ffd931;
  color: #231f20;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select {
  font: inherit;
}

button,
.primary-link,
.ghost-link {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

button:hover,
.primary-link:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.disabled-button {
  cursor: not-allowed;
  opacity: .58;
}

.disabled-button:hover {
  transform: none;
}

.home-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand-mark {
  color: rgba(255, 250, 240, .86);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark span {
  color: var(--gold);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 226, 160, .34);
  border-radius: 25px;
  background: rgba(240, 223, 189, .11);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.auth-entry-link:hover {
  transform: translateY(-1px);
  background: rgba(240, 223, 189, .2);
  border-color: rgba(208, 169, 77, .52);
}

.auth-entry-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-hero {
  min-height: 44vh;
  display: flex;
  align-items: end;
  padding: 76px 24px 44px;
  background:
    linear-gradient(90deg, rgba(32, 29, 24, .86), rgba(32, 29, 24, .42)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='620' viewBox='0 0 1200 620'%3E%3Crect width='1200' height='620' fill='%23356b55'/%3E%3Cpath d='M0 420c220-180 397-146 534-82 140 65 292 162 666-40v322H0z' fill='%23201d18' opacity='.42'/%3E%3Cpath d='M822 88l53 102 113 18-80 80 18 113-104-52-105 52 19-113-81-80 113-18z' fill='%23c28b2d' opacity='.82'/%3E%3Ccircle cx='287' cy='203' r='96' fill='%23fffaf0' opacity='.18'/%3E%3Cpath d='M258 394c24-93 139-127 205-57 26 28 37 67 28 106H242c1-17 6-34 16-49z' fill='%23fffaf0' opacity='.22'/%3E%3C/svg%3E") center/cover;
  color: #fffaf0;
}

.site-hero > div,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow,
.tag,
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 86px);
  line-height: .94;
}

h2,
h3 {
  margin: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: #eee5d4;
  font-size: 19px;
  line-height: 1.7;
}

.game-card p,
.game-features,
.home-banner-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.home-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 44px;
  padding: 22px;
  border: 1px solid rgba(208, 169, 77, .3);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(48, 35, 26, .96), rgba(22, 31, 29, .95)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-banner-copy {
  display: grid;
  gap: 12px;
}

.home-banner-copy h2 {
  color: #fff4cf;
  font-size: clamp(32px, 4vw, 56px);
}

.home-banner-copy p {
  max-width: 620px;
  margin: 0;
  font-size: 17px;
}

.home-banner-media {
  position: relative;
  min-height: 220px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 65% 34%, rgba(255, 233, 160, .44), transparent 34%),
    linear-gradient(135deg, #162121, #315f85 55%, #d0a94d);
}

.home-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45));
  transform: rotate(-4deg) scale(1.04);
}

.home-page {
  --home-yellow: #ffd931;
  --home-ink: #231f20;
  --home-black: #000000;
  --home-stone: #c8cbcd;
  --home-paper: #fff5d9;
  --home-badge-gray: #a6a8aa;
  --home-white-line: #d6d6d6;
  --home-display-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  --home-text-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  --home-ui-font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .065) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(0deg, rgba(0, 0, 0, .055) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--home-stone);
  color: var(--home-ink);
  font-family: var(--home-text-font);
}

.home-page::before {
  display: none;
}

.home-page .home-topbar {
  position: sticky;
  inset: 0 0 auto;
  z-index: 30;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0 18px;
  align-items: stretch;
  border-bottom: 2px solid var(--home-black);
  background: var(--home-yellow);
}

.home-page .brand-mark {
  display: grid;
  align-content: center;
  gap: 2px;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-weight: 700;
  text-decoration: none;
}

.home-page .brand-name {
  color: var(--home-ink);
  font-size: 15px;
  letter-spacing: 0;
}

.home-page .brand-subtitle {
  color: var(--home-ink);
  font-size: 10px;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.home-page .home-menu {
  display: flex;
  align-self: stretch;
  margin-left: auto;
  border-left: 2px solid var(--home-black);
}

.home-page .home-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-right: 2px solid var(--home-black);
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-decoration: none;
}

.home-page .home-menu a:hover {
  background: var(--home-ink);
  color: var(--home-yellow);
}

.home-page .account-actions {
  align-self: stretch;
  gap: 0;
}

.home-page .auth-entry-link {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-right: 2px solid var(--home-black);
  border-radius: 0;
  background: transparent;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.home-page .lang-toggle {
  min-width: 46px;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-right: 2px solid var(--home-black);
  border-radius: 0;
  background: transparent;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
}

.home-page .auth-entry-link:hover {
  background: var(--home-ink);
  color: var(--home-yellow);
  border-color: var(--home-black);
}

.home-page .lang-toggle:hover {
  background: var(--home-ink);
  color: var(--home-yellow);
}

.home-page .account-avatar-link {
  width: 58px;
  height: 58px;
  min-height: 58px;
  border: 0;
  border-right: 2px solid var(--home-black);
  border-radius: 0;
  background: var(--home-yellow);
  color: var(--home-ink);
  box-shadow: none;
}

.home-page .account-popover {
  border: 2px solid var(--home-black);
  border-radius: 0;
  background: var(--home-stone);
  box-shadow: none;
}

.home-page .account-popover strong,
.home-page .account-popover span {
  color: var(--home-ink);
}

.home-page .site-hero {
  min-height: clamp(520px, 72dvh, 690px);
  align-items: center;
  padding: 34px 18px 38px;
  border-bottom: 2px solid var(--home-black);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .1) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(0, 0, 0, .1) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--home-yellow);
  color: var(--home-ink);
  overflow: hidden;
}

.home-page .site-hero > div,
.home-page main {
  width: min(1240px, calc(100% - 30px));
}

.home-page .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  grid-template-areas:
    "copy table"
    "stats table";
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}

.home-page .hero-copy {
  grid-area: copy;
  align-self: center;
}

.home-page .eyebrow,
.home-page .tag {
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  overflow-wrap: anywhere;
}

.home-page h1 {
  display: grid;
  gap: 13px;
  max-width: 860px;
  margin-bottom: 18px;
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(66px, 11vw, 146px);
  font-weight: 900;
  line-height: .86;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-page h1 > span {
  line-height: 1;
}

.home-page h1 small {
  display: block;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: .073em;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-page .lead {
  max-width: 650px;
  color: var(--home-ink);
  font-family: var(--home-text-font);
  font-size: clamp(20px, 2.35vw, 30px);
  line-height: 1.12;
  text-wrap: pretty;
}

.home-page .hero-table {
  position: relative;
  grid-area: table;
  align-self: stretch;
  min-height: 420px;
  margin: 0;
  border: 2px solid var(--home-black);
  background: var(--home-ink);
  box-shadow: 16px 16px 0 rgba(0, 0, 0, .18);
  transform: rotate(1.2deg);
}

.home-page .hero-table::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 2px solid rgba(255, 217, 49, .88);
  pointer-events: none;
}

.home-page .hero-table img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.94) contrast(1.08);
}

.home-page .hero-table figcaption {
  position: absolute;
  left: -2px;
  right: 34px;
  bottom: -2px;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  border: 2px solid var(--home-black);
  background: var(--home-paper);
  color: var(--home-black);
}

.home-page .hero-table figcaption span,
.home-page .hero-stats dt {
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.home-page .hero-table figcaption strong {
  font-family: var(--home-display-font);
  font-size: clamp(24px, 3.3vw, 39px);
  line-height: .92;
}

.home-page .hero-token {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 112px);
  aspect-ratio: 1;
  border: 2px solid var(--home-black);
  background: var(--home-yellow);
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .22);
}

.home-page .token-one {
  top: 34px;
  left: -34px;
  transform: rotate(-9deg);
}

.home-page .token-two {
  right: -28px;
  top: 46%;
  background: var(--home-badge-gray);
  transform: rotate(8deg);
}

.home-page .hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 690px;
  margin: 10px 0 0;
  border: 2px solid var(--home-black);
  background: var(--home-paper);
}

.home-page .hero-stats div {
  min-width: 0;
  padding: 14px 16px;
}

.home-page .hero-stats div + div {
  border-left: 2px solid var(--home-black);
}

.home-page .hero-stats dt,
.home-page .hero-stats dd {
  margin: 0;
}

.home-page .hero-stats dt {
  color: rgba(35, 31, 32, .68);
}

.home-page .hero-stats dd {
  margin-top: 5px;
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: .9;
  overflow-wrap: anywhere;
}

.home-page .home-banner {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  margin: 40px 0 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-page .home-banner-copy h2 {
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(47px, 5.6vw, 78px);
  font-weight: 900;
  line-height: .87;
}

.home-page .home-banner-copy p {
  color: var(--home-ink);
  font-family: var(--home-text-font);
  font-size: 18px;
  line-height: 1.15;
}

.home-page .home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-page .home-badges span {
  padding: 4px 9px;
  border: 1px solid var(--home-black);
  border-radius: 10px;
  background: var(--home-badge-gray);
  color: var(--home-black);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
}

.home-page .card-actions {
  grid-column: auto;
}

.home-page .home-banner-media {
  min-height: 270px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .home-banner-media img {
  padding: 0;
  filter: none;
  transform: rotate(-2deg) scale(1.04);
}

.home-page .primary-link,
.home-page .primary-button {
  min-height: 42px;
  border: 2px solid var(--home-black);
  border-radius: 25px;
  background: var(--home-yellow);
  color: var(--home-ink);
  box-shadow: none;
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.home-page .primary-link:hover,
.home-page .primary-button:hover,
.home-page .ghost-link:hover,
.home-page .ghost-button:hover {
  background: var(--home-ink);
  color: var(--home-yellow);
  border-color: var(--home-black);
}

.home-page .primary-link:active,
.home-page .primary-button:active,
.home-page .ghost-link:active,
.home-page .ghost-button:active {
  transform: translateY(1px);
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.tool-page-body a:focus-visible,
.tool-page-body button:focus-visible {
  outline: 3px solid var(--home-black);
  outline-offset: 3px;
}

.home-page .ghost-link,
.home-page .ghost-button {
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid var(--home-black);
  border-radius: 0;
  background: transparent;
  color: var(--home-black);
  font-family: var(--home-ui-font);
  font-size: 11px;
  letter-spacing: .091em;
  text-transform: uppercase;
}

.home-page .login-required-link {
  cursor: not-allowed;
  opacity: .58;
}

.home-page .login-required-link:hover {
  transform: none;
}

.home-page .games-catalog {
  display: grid;
  gap: 24px;
  margin: 50px 0 58px;
}

.home-page .games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.home-page .game-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
  min-width: 0;
  padding: 0;
  transition: transform .2s cubic-bezier(.22, .75, .16, 1);
}

.home-page .game-tile:hover,
.home-page .tool-tile:hover {
  transform: translateY(-4px) rotate(-.3deg);
}

.home-page .game-tile.is-live {
  grid-column: span 3;
  grid-template-columns: minmax(180px, .78fr) minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 0;
  min-height: 310px;
  border: 2px solid var(--home-black);
  background: var(--home-paper);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, .16);
}

.home-page .game-tile:not(.is-live) {
  grid-column: span 2;
  padding-top: 2px;
}

.home-page .game-tile-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.home-page .game-tile.is-live .game-tile-media {
  height: 100%;
  min-height: 310px;
  aspect-ratio: auto;
  border-right: 2px solid var(--home-black);
  background: var(--home-yellow);
}

.home-page .game-tile-media img {
  width: 100%;
  height: 100%;
  max-width: 210px;
  max-height: 210px;
  object-fit: contain;
}

.home-page .game-tile.is-live .game-tile-media img {
  max-width: none;
  max-height: none;
  padding: 14px;
  object-fit: contain;
  filter: drop-shadow(10px 12px 0 rgba(0, 0, 0, .14));
}

.home-page .game-tool-art {
  background:
    linear-gradient(135deg, rgba(35, 31, 32, .96), rgba(35, 31, 32, .82)),
    var(--home-ink);
}

.home-page .game-tool-art span {
  display: inline-grid;
  place-items: center;
  width: min(72%, 220px);
  aspect-ratio: 1;
  border: 2px solid var(--home-yellow);
  color: var(--home-yellow);
  font-family: var(--home-display-font);
  font-size: clamp(38px, 8vw, 78px);
  font-weight: 900;
  line-height: 1;
}

.home-page .game-tile-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-page .game-tile.is-live .game-tile-copy {
  padding: clamp(18px, 3vw, 30px);
}

.home-page .game-tile h3 {
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  line-height: .9;
}

.home-page .game-tile p {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--home-text-font);
  font-size: 16px;
  line-height: 1.22;
}

.home-page .game-tile .card-actions {
  margin-top: 2px;
}

.home-page .development-link {
  width: max-content;
  min-height: 42px;
  margin-top: 2px;
  padding: 10px 14px;
  border: 2px solid var(--home-black);
  border-radius: 25px;
  background: transparent;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
  opacity: .78;
}

.home-page .tools-catalog {
  padding-top: 30px;
}

.home-page .tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .tool-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
  min-width: 0;
  transition: transform .2s cubic-bezier(.22, .75, .16, 1);
}

.home-page .tool-tile-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--home-black);
  background: var(--home-yellow);
  overflow: hidden;
}

.home-page .tool-tile-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}

.home-page .tool-tile-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.home-page .tool-tile strong {
  font-family: var(--home-display-font);
  font-size: clamp(30px, 3vw, 44px);
  line-height: .9;
}

.home-page .tool-tile p {
  margin: 0;
  color: var(--home-ink);
  font-size: 15px;
  line-height: 1.45;
}

.home-page .upcoming-games {
  display: grid;
  gap: 15px;
  margin: 46px 0 42px;
}

.home-page .section-heading {
  display: grid;
  gap: 15px;
  border-bottom: 2px solid var(--home-black);
  padding-bottom: 10px;
}

.home-page .section-heading h2 {
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 900;
  line-height: .87;
}

.home-page .upcoming-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.home-page .upcoming-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-ink);
}

.home-page .upcoming-card:nth-child(even) {
  background: transparent;
}

.home-page .disabled-pill {
  width: max-content;
  border: 2px solid var(--home-black);
  border-radius: 25px;
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.home-page .upcoming-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 15px;
  background: transparent;
}

.home-page .upcoming-card h3 {
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: 36px;
  font-weight: 900;
  line-height: .9;
}

.home-page .upcoming-card p {
  margin: 13px 0 18px;
  color: var(--home-ink);
  font-family: var(--home-text-font);
  font-size: 17px;
  line-height: 1.15;
}

.home-page .disabled-pill {
  align-self: end;
  margin-top: auto;
  padding: 10px 14px;
  background: var(--home-yellow);
  color: var(--home-ink);
  opacity: .9;
}

.home-page footer,
.home-page .site-footer {
  max-width: none;
  margin: 0;
  padding: 20px 15px;
  border-top: 2px solid var(--home-black);
  background: var(--home-yellow);
  color: var(--home-ink);
  font-family: var(--home-text-font);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 32px 0 56px;
}

.game-card,
.panel,
.player-row,
.score-card,
.role-row,
.phase-box,
.vote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(55, 42, 31, .92), rgba(34, 27, 22, .94)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  align-items: center;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  grid-column: 2;
}

.game-card-copy {
  display: grid;
  gap: 10px;
}

.game-card-copy h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.game-card-copy p {
  margin: 0;
  max-width: 620px;
}

.game-features {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.game-features li {
  position: relative;
  padding-left: 18px;
}

.game-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.wolf-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 35%, rgba(244, 226, 166, .38), transparent 36%),
    linear-gradient(135deg, #151410, #315f85 55%, #c28b2d);
}

.wolf-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45));
  transform: rotate(-3deg) scale(1.04);
}

.primary-link,
.primary-button {
  width: fit-content;
  background: linear-gradient(180deg, #c75142, var(--red-dark));
  color: #fffaf0;
  border-color: rgba(255, 222, 146, .26);
  box-shadow: 0 8px 22px rgba(109, 26, 22, .32);
}

.ghost-link,
.ghost-button {
  background: rgba(240, 223, 189, .11);
  color: var(--ink);
  border-color: var(--line);
}

.ghost-link:hover,
.ghost-button:hover {
  background: rgba(240, 223, 189, .19);
  border-color: rgba(208, 169, 77, .48);
}

.account-avatar-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 160, .34);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(240, 223, 189, .18), rgba(240, 223, 189, .08));
  color: #fff4cf;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.account-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-actions .primary-link,
.account-actions .ghost-link {
  min-height: 40px;
  padding: 8px 12px;
}

.account-menu {
  position: relative;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(255, 226, 160, .28);
  border-radius: 8px;
  background: rgba(28, 24, 20, .96);
  box-shadow: var(--shadow);
}

.account-popover strong {
  color: #fff4cf;
  font-size: 14px;
}

.account-popover span {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-popover .ghost-link {
  justify-self: stretch;
  text-align: center;
}

footer {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 14px 28px;
  font-size: 12px;
  line-height: 1.5;
}

.app-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 20px;
}

.topbar a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(208, 169, 77, .2);
  border-radius: 999px;
  background: rgba(240, 223, 189, .08);
}

.back-link:hover {
  color: var(--ink);
  background: rgba(240, 223, 189, .15);
  border-color: rgba(208, 169, 77, .42);
}

.topbar {
  color: var(--muted);
}

.room-title {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.room-title h1 {
  font-size: clamp(30px, 5vw, 58px);
  color: var(--ink);
  text-shadow: 0 3px 28px rgba(0, 0, 0, .45);
}

.room-title-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.room-code-copy {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.room-code-copy span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.room-code-copy.copied .code-box {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(69, 121, 83, .22);
}

.room-code-copy.copy-failed .code-box {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(199, 81, 66, .18);
}

.room-code-copy em {
  min-height: 14px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.room-code-copy.copy-failed em {
  color: #f0a092;
}

.room-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(240px, 320px);
  gap: 14px;
  align-items: start;
}

.room-layout.offline-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-areas:
    "controls main"
    "rules main";
}

.room-layout.offline-layout > aside,
.room-layout.offline-layout > .phase-box {
  min-width: 0;
}

.room-layout.offline-layout > aside:first-of-type {
  grid-area: controls;
}

.room-layout.offline-layout > .phase-box {
  grid-area: main;
}

.room-layout.offline-layout > aside:last-of-type {
  grid-area: rules;
}

.panel {
  padding: 14px;
}

.panel h2,
.phase-box h2 {
  color: #ffe3a3;
}

.panel + .panel {
  margin-top: 12px;
}

.stack {
  display: grid;
  gap: 12px;
}

.join-panel {
  width: min(520px, calc(100% - 28px));
  margin: 34px auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: rgba(14, 13, 11, .48);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(208, 169, 77, .42);
  outline-offset: 2px;
}

.code-box {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #0f0e0c;
  color: #fffaf0;
  font-weight: 900;
  letter-spacing: .12em;
}

.player-row,
.role-row,
.vote-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  box-shadow: none;
}

.player-row.me {
  border-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
}

.small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.role-row {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.role-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.role-row small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.role-row input {
  text-align: center;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.rule-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rule-notes {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.rule-notes p {
  margin: 0;
  line-height: 1.55;
}

.rule-notes strong {
  color: var(--ink);
}

.compact-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wolf-cover {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 58% 38%, rgba(139, 208, 142, .22), transparent 38%),
    #111b16;
  overflow: hidden;
}

.wolf-cover img {
  width: min(360px, 92%);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45));
}

.preset-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.preset-scroll button {
  flex: 0 0 auto;
}

.selected-preset {
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(240, 223, 189, .98), rgba(222, 197, 148, .96));
  color: var(--paper-ink);
}

.selected-preset strong {
  color: var(--paper-ink);
}

.selected-preset.role-config-pulse {
  animation: role-config-pulse .7s ease;
}

@keyframes role-config-pulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(208, 169, 77, .0);
  }
  35% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(208, 169, 77, .24);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(208, 169, 77, .0);
  }
}

.selected-preset span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #6a5637;
  font-size: 11px;
  line-height: 1.35;
}

.selected-preset .role-chip {
  background: #342117;
  color: #fff0cb;
  border-color: rgba(72, 43, 25, .3);
}

.selected-preset .role-chip small {
  color: inherit;
  opacity: .62;
  font-size: 10px;
}

.role-chip.team-werewolf,
.wake-step.team-werewolf {
  background: rgba(116, 31, 28, .9);
  border-color: rgba(209, 77, 66, .58);
  color: #ffe5df;
}

.role-chip.team-third,
.wake-step.team-third {
  background: rgba(122, 88, 24, .9);
  border-color: rgba(230, 181, 75, .62);
  color: #fff3c7;
}

.role-chip.team-vampire,
.wake-step.team-vampire {
  background: rgba(83, 39, 92, .92);
  border-color: rgba(191, 112, 205, .55);
  color: #f7dcff;
}

.role-chip.team-village,
.wake-step.team-village {
  background: rgba(42, 33, 24, .9);
  border-color: rgba(208, 169, 77, .35);
  color: #fff0cb;
}

.center-cards .role-chip {
  border-color: rgba(208, 169, 77, .35);
}

.rule-links .ghost-link {
  background: rgba(240, 223, 189, .13);
}

.role-chip {
  min-height: 25px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(35, 25, 18, .88);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.role-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-palette .role-chip {
  min-height: 30px;
  cursor: pointer;
}

.role-tooltip {
  position: fixed;
  z-index: 50;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: #604f35;
  font-size: 13px;
  line-height: 1.5;
}

.role-tooltip strong {
  color: var(--paper-ink);
  font-size: 15px;
}

.tooltip-action,
.role-replace-list button {
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(96, 79, 53, .26);
  border-radius: 7px;
  background: #342117;
  color: #fff0cb;
  font-size: 12px;
  font-weight: 900;
}

.tooltip-action {
  width: fit-content;
}

.role-replace-list button.team-werewolf {
  background: rgba(116, 31, 28, .92);
  border-color: rgba(209, 77, 66, .6);
  color: #ffe5df;
}

.role-replace-list button.team-third {
  background: rgba(122, 88, 24, .92);
  border-color: rgba(180, 130, 34, .62);
  color: #fff3c7;
}

.role-replace-list button.team-vampire {
  background: rgba(83, 39, 92, .94);
  border-color: rgba(139, 70, 153, .62);
  color: #f7dcff;
}

.role-replace-list button.team-village {
  background: rgba(42, 33, 24, .94);
  border-color: rgba(127, 95, 42, .48);
  color: #fff0cb;
}

.role-replace-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
}

.preset-rows {
  display: grid;
  gap: 6px;
}

.preset-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(13, 12, 10, .28);
}

.preset-row.suggested {
  border-color: var(--gold);
  background: rgba(208, 169, 77, .16);
}

.preset-row strong {
  color: var(--ink);
  font-size: 13px;
}

.preset-row-scroll {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 3px;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
}

.preset-row-scroll button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
  touch-action: manipulation;
}

.preset-row-scroll button:hover,
.preset-row-scroll button:focus-visible {
  transform: none;
}

.empty-presets {
  flex: 0 0 auto;
  padding: 9px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phase-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(42, 33, 25, .96), rgba(25, 21, 18, .96)),
    var(--panel);
}

.role-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: #201d18;
  color: #fffaf0;
}

.role-card strong {
  font-size: 30px;
}

.host-panel {
  position: relative;
  border-top: 1px solid rgba(208, 169, 77, .26);
  padding-top: 10px;
}

.host-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
}

.role-count-grid,
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.role-count-grid label {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 14, 12, .34);
  color: var(--ink);
  font-weight: 900;
}

.role-count-grid small {
  color: var(--muted);
  font-size: 11px;
}

.score-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.score-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.score-card b {
  color: #fff4cf;
  font-size: 42px;
  line-height: 1;
}

.score-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dice-tool {
  min-height: calc(100vh - 84px);
}

.tool-page {
  min-height: calc(100vh - 84px);
}

.draw-card {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  border: 2px solid rgba(255, 242, 201, .85);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 244, 207, .98), rgba(208, 169, 77, .88));
  color: var(--paper-ink);
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.16;
  text-align: center;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, .28);
}

.timer-display {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #10100f;
  color: #fff4cf;
  font-size: clamp(76px, 18vw, 180px);
  font-weight: 900;
  line-height: 1;
}

.timer-display.timer-done {
  background: #5b1f1a;
  color: #fff0cb;
}

.dice-box {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(208, 169, 77, .22), transparent 42%),
    #11100e;
  overflow: hidden;
}

.dice-visuals {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  pointer-events: none;
  perspective: 760px;
}

.dice-box:has(canvas) .dice-visuals {
  opacity: .18;
}

.dice-box.dice-expression-mode .dice-visuals {
  opacity: 1;
}

.css-die {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(72px, 12vw, 118px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 242, 201, .9);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 244, 207, .96), rgba(139, 208, 142, .92));
  color: #142018;
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 900;
  box-shadow:
    12px 14px 0 rgba(0, 0, 0, .34),
    inset -14px -14px 24px rgba(0, 0, 0, .18),
    inset 10px 10px 18px rgba(255, 255, 255, .36);
  transform: rotateX(58deg) rotateZ(var(--spin)) translateY(-12px);
}

.css-die::after {
  content: "";
  position: absolute;
  top: 6px;
  right: -13px;
  width: 13px;
  height: calc(100% - 4px);
  border: 1px solid rgba(255, 242, 201, .34);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  background:
    linear-gradient(180deg, rgba(91, 113, 67, .72), rgba(31, 34, 23, .9));
  transform: skewY(16deg);
  transform-origin: left top;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .22);
  z-index: -1;
}

.css-die span {
  transform: rotateX(-58deg) rotateZ(calc(var(--spin) * -1));
}

.dice-box canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px;
}

.dice-fallback {
  color: var(--gold);
  font-size: 30px;
  font-weight: 900;
}

.voice-setting {
  position: relative;
}

.setting-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-button {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 226, 160, .82);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.info-button:hover,
.info-button:focus-visible {
  color: #fff2c9;
}

.voice-faq {
  position: absolute;
  z-index: 60;
  max-width: 300px;
  width: min(300px, calc(100vw - 28px));
  display: grid;
  gap: 5px;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(208, 169, 77, .42);
  border-radius: 7px;
  background: rgba(16, 14, 12, .86);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.voice-faq strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.host-progress {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.host-progress span {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(16, 14, 12, .58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.host-progress span.speaking {
  border-color: var(--red);
  background: var(--red);
  color: #fffaf0;
}

.host-progress span.pause {
  border-color: var(--gold);
  background: rgba(208, 169, 77, .24);
  color: #ffe7a5;
}

.host-progress span.done {
  border-color: var(--green);
  background: var(--green);
  color: #fffaf0;
}

.host-panel textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(240, 223, 189, .98), rgba(226, 204, 161, .98));
  color: var(--paper-ink);
  line-height: 1.55;
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 10px 12px;
  background: rgba(208, 169, 77, .12);
  color: #e7d7b8;
}

.wake-flow {
  display: grid;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px 16px;
  border: 1px solid rgba(208, 169, 77, .16);
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 20%, rgba(208, 169, 77, .12), transparent 26%),
    linear-gradient(180deg, rgba(19, 14, 10, .44), rgba(9, 8, 7, .24));
  box-shadow: inset 0 1px 0 rgba(255, 240, 197, .05);
}

.wake-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, max-content);
  gap: 11px;
  align-items: stretch;
  position: relative;
}

.wake-row::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(208, 169, 77, .22), rgba(245, 214, 139, .72), rgba(208, 169, 77, .22));
  box-shadow: 0 0 10px rgba(208, 169, 77, .2);
  pointer-events: none;
}

.wake-row:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 14px;
  height: calc(100% + 14px);
  border-top: 2px solid rgba(245, 214, 139, .58);
  border-right: 2px solid rgba(245, 214, 139, .58);
  border-bottom: 2px solid rgba(245, 214, 139, .58);
  border-radius: 0 16px 16px 0;
  box-shadow: 4px 0 14px rgba(208, 169, 77, .12);
  pointer-events: none;
}

.wake-row.reverse:not(:last-child)::after {
  left: -12px;
  right: auto;
  border-left: 2px solid rgba(245, 214, 139, .58);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 0 14px rgba(208, 169, 77, .12);
}

.wake-step {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto;
  gap: 4px;
  justify-items: center;
  min-width: 72px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(208, 169, 77, .38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(45, 34, 24, .96), rgba(18, 14, 11, .96));
  color: var(--ink);
  text-align: center;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 245, 210, .08);
  z-index: 1;
}

.wake-step small {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 17px;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
}

.wake-step span {
  max-width: 78px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
}

.wake-step.phase-step {
  min-width: 78px;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(208, 169, 77, .28), rgba(58, 43, 26, .92));
  color: #ffe6a8;
  letter-spacing: 0;
}

.wake-step.phase-step small {
  min-width: 42px;
  background: rgba(255, 246, 215, .18);
}

.danger {
  color: var(--red);
}

.center-cards,
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.target-grid button {
  min-height: 54px;
  background: rgba(240, 223, 189, .11);
  border-color: var(--line);
  color: var(--ink);
}

.target-grid button.selected {
  background: var(--green);
  color: #fffaf0;
}

.log-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 0 4px 0 10px;
  border-left: 1px solid rgba(208, 169, 77, .22);
}

.log-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.log-list p::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  opacity: .72;
}

.dice-history-item {
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dice-history-item:hover,
.dice-history-item:focus-visible {
  color: #fff2c9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.night-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.night-strip span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(240, 223, 189, .11);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.night-strip span.active {
  background: var(--red);
  border-color: var(--red);
  color: #fffaf0;
}

.night-strip span.done {
  background: var(--green);
  border-color: var(--green);
  color: #fffaf0;
}

.hidden {
  display: none !important;
}

::selection {
  background: rgba(208, 169, 77, .42);
  color: #fffaf0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 13, 11, .42);
}

::-webkit-scrollbar-thumb {
  background: rgba(208, 169, 77, .42);
  border-radius: 99px;
}

.tool-launch-overlay,
.tool-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #231f20;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
}

.tool-launch-overlay strong,
.tool-entry-overlay strong {
  position: relative;
  z-index: 2;
  max-width: min(900px, calc(100vw - 32px));
  color: #000;
  font-size: clamp(44px, 11vw, 116px);
  font-weight: 900;
  line-height: .92;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.tool-launch-overlay.is-active strong {
  animation: tool-name-in .42s ease .34s forwards;
}

.tool-transition-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
}

.tool-transition-bars span {
  background: #ffd931;
  border-top: 2px solid #000;
  transform: translateX(-105%);
}

.tool-transition-bars span:nth-child(even) {
  transform: translateX(105%);
}

.tool-launch-overlay.is-active .tool-transition-bars span {
  animation: tool-bar-in .58s cubic-bezier(.22, .75, .16, 1) forwards;
}

.tool-launch-overlay.is-active .tool-transition-bars span:nth-child(2) { animation-delay: .05s; }
.tool-launch-overlay.is-active .tool-transition-bars span:nth-child(3) { animation-delay: .1s; }
.tool-launch-overlay.is-active .tool-transition-bars span:nth-child(4) { animation-delay: .15s; }
.tool-launch-overlay.is-active .tool-transition-bars span:nth-child(5) { animation-delay: .2s; }
.tool-launch-overlay.is-active .tool-transition-bars span:nth-child(6) { animation-delay: .25s; }

.tool-entry-overlay {
  background: #ffd931;
  border-bottom: 2px solid #000;
}

.tool-entry-overlay strong {
  opacity: 1;
  transform: none;
}

.tool-entry-overlay.is-leaving {
  animation: tool-entry-leave .78s cubic-bezier(.72, 0, .18, 1) .18s forwards;
}

.tool-page-body.tool-entry-pending .tool-shell {
  animation: tool-content-in .72s ease .2s both;
}

@keyframes tool-bar-in {
  to { transform: translateX(0); }
}

@keyframes tool-name-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tool-entry-leave {
  to { clip-path: inset(0 0 100% 0); }
}

@keyframes tool-content-in {
  from {
    opacity: .12;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-page-body {
  --home-yellow: #ffd931;
  --home-ink: #231f20;
  --home-black: #000000;
  --home-stone: #c8cbcd;
  --home-badge-gray: #a6a8aa;
  --home-display-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  --home-text-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", Helvetica, Arial, sans-serif;
  --home-ui-font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--home-stone);
  color: var(--home-ink);
  font-family: var(--home-text-font);
}

.tool-page-body::before {
  display: none;
}

.tool-page-body .tool-shell {
  width: min(1120px, calc(100% - 30px));
  padding: 0 0 48px;
}

.tool-page-body .tool-topbar {
  min-height: 58px;
  margin: 0 calc((100% - 100vw) / 2);
  padding: 0 max(18px, calc((100vw - 1120px) / 2));
  border-bottom: 2px solid var(--home-black);
  background: var(--home-yellow);
  color: var(--home-ink);
}

.tool-page-body .tool-topbar .small {
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.tool-page-body .back-link {
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-left: 2px solid var(--home-black);
  border-right: 2px solid var(--home-black);
  border-radius: 0;
  background: transparent;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.tool-page-body .back-link:hover {
  background: var(--home-ink);
  color: var(--home-yellow);
  border-color: var(--home-black);
}

.tool-page-body .tool-surface {
  display: grid;
  gap: 24px;
  min-height: 0;
  padding: 28px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 410px);
  min-height: 310px;
  border: 2px solid var(--home-black);
  background: var(--home-yellow);
  overflow: hidden;
}

.tool-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 48px);
}

.tool-page-body .kicker {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
}

.tool-page-body .tool-hero h1 {
  margin: 0;
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(52px, 10vw, 106px);
  font-weight: 900;
  line-height: .9;
  overflow-wrap: anywhere;
}

.tool-page-body .small {
  color: var(--home-ink);
  font-family: var(--home-text-font);
  font-size: 18px;
  line-height: 1.2;
}

.tool-hero-image {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  border-left: 2px solid var(--home-black);
  filter: saturate(.94) contrast(1.04);
}

.tool-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: 20px;
  align-items: start;
}

.tool-stage,
.tool-controls {
  min-width: 0;
  border: 2px solid var(--home-black);
  border-radius: 0;
  background: #f7f1e4;
  color: var(--home-ink);
  box-shadow: none;
}

.tool-stage {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.tool-controls {
  padding: 16px;
}

.tool-page-body .primary-button,
.tool-page-body .ghost-button {
  min-height: 42px;
  border: 2px solid var(--home-black);
  border-radius: 25px;
  box-shadow: none;
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.tool-page-body .primary-button {
  background: var(--home-yellow);
  color: var(--home-ink);
}

.tool-page-body .ghost-button {
  background: transparent;
  color: var(--home-ink);
}

.tool-page-body .primary-button:hover,
.tool-page-body .ghost-button:hover {
  background: var(--home-ink);
  color: var(--home-yellow);
  border-color: var(--home-black);
}

.tool-page-body label {
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.tool-page-body input,
.tool-page-body select {
  min-height: 42px;
  border: 2px solid var(--home-black);
  border-radius: 0;
  background: #fffaf0;
  color: var(--home-ink);
}

.tool-page-body input:focus,
.tool-page-body select:focus {
  outline: 3px solid var(--home-yellow);
  outline-offset: 2px;
}

.tool-page-body .tool-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
}

.tool-page-body .preset-toolbar,
.tool-page-body .action-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-page-body .notice {
  border: 2px solid var(--home-black);
  border-left-width: 10px;
  background: var(--home-yellow);
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.tool-page-body .panel {
  border: 2px solid var(--home-black);
  border-radius: 0;
  background: var(--home-stone);
  box-shadow: none;
  backdrop-filter: none;
}

.tool-page-body .panel h2 {
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: 24px;
  line-height: .95;
}

.tool-page-body .log-list {
  border-left: 2px solid var(--home-black);
}

.tool-page-body .log-list p,
.tool-page-body .dice-history-item {
  color: var(--home-ink);
}

.tool-page-body .log-list p::before {
  background: var(--home-black);
}

.tool-page-body .dice-box {
  min-height: 470px;
  border: 2px solid var(--home-black);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .08) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(0, 0, 0, .08) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--home-stone);
}

.tool-page-body .dice-box canvas {
  min-height: 470px;
}

.tool-page-body .css-die {
  border-color: var(--home-black);
  border-radius: 0;
  background: var(--home-yellow);
  color: var(--home-black);
  box-shadow:
    12px 14px 0 rgba(0, 0, 0, .2),
    inset -12px -12px 0 rgba(0, 0, 0, .12);
}

.tool-page-body .css-die::after {
  border-color: var(--home-black);
  background: var(--home-badge-gray);
}

.timer-workbench .tool-stage,
.penalty-workbench .tool-stage {
  min-height: 470px;
}

.tool-page-body .timer-display {
  min-height: 438px;
  border: 0;
  border-radius: 0;
  background: var(--home-yellow);
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(84px, 17vw, 184px);
  box-shadow: inset 0 0 0 2px var(--home-black);
}

.tool-page-body .timer-display.timer-done {
  background: var(--home-black);
  color: var(--home-yellow);
}

.tool-page-body .draw-card {
  min-height: 438px;
  border: 2px solid var(--home-black);
  border-radius: 0;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(0, 0, 0, .06) 18% 19%, transparent 19%),
    #fffaf0;
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: clamp(32px, 5vw, 58px);
  box-shadow: 14px 14px 0 var(--home-yellow);
}

.tool-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.tool-stat-grid span {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  border: 2px solid var(--home-black);
  background: var(--home-yellow);
  color: var(--home-ink);
  font-family: var(--home-ui-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .073em;
  text-transform: uppercase;
}

.tool-stat-grid strong {
  color: var(--home-black);
  font-family: var(--home-display-font);
  font-size: 42px;
  line-height: .9;
}

@media (max-width: 980px) {
  .tool-page-body .tool-shell {
    width: min(100%, calc(100% - 24px));
    padding-bottom: 34px;
  }

  .tool-page-body .tool-topbar {
    margin: 0 -12px;
    padding: 0 12px;
  }

  .tool-hero,
  .tool-workbench {
    grid-template-columns: 1fr;
  }

  .tool-hero {
    min-height: 0;
  }

  .tool-hero-copy {
    padding: 24px;
  }

  .tool-page-body .tool-hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .tool-page-body .small {
    font-size: 17px;
  }

  .tool-hero-image {
    min-height: 220px;
    border-top: 2px solid var(--home-black);
    border-left: 0;
  }

  .tool-page-body .tool-form {
    grid-template-columns: 1fr;
  }

  .tool-page-body .preset-toolbar,
  .tool-page-body .action-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .tool-page-body .dice-box,
  .tool-page-body .dice-box canvas,
  .timer-workbench .tool-stage,
  .penalty-workbench .tool-stage {
    min-height: 360px;
  }

  .tool-page-body .timer-display,
  .tool-page-body .draw-card {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-launch-overlay.is-active .tool-transition-bars span,
  .tool-launch-overlay.is-active strong,
  .tool-entry-overlay.is-leaving,
  .tool-page-body.tool-entry-pending .tool-shell {
    animation-duration: .01ms;
    animation-delay: 0s;
  }
}

@media (max-width: 980px) {
  .home-page .home-topbar {
    left: 0;
    right: 0;
    gap: 10px;
    padding: 0 14px;
  }

  .home-page .brand-mark {
    max-width: 150px;
  }

  .home-page .brand-name {
    display: block;
    font-size: 13px;
  }

  .home-page .brand-subtitle {
    display: block;
    font-size: 9px;
  }

  .home-page .account-actions {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    align-self: stretch;
    gap: 0;
  }

  .home-page .home-menu {
    display: none;
  }

  .home-page .auth-entry-link {
    flex: 0 0 auto;
    max-width: 120px;
    min-height: 58px;
    padding: 0 10px;
    font-size: 10px;
  }

  .home-page .account-avatar-link {
    width: 46px;
    height: 58px;
    min-height: 58px;
  }

  .home-page .lang-toggle {
    min-width: 46px;
    min-height: 58px;
    padding: 0 10px;
    font-size: 10px;
  }

  .home-page .auth-entry-link svg {
    width: 16px;
    height: 16px;
  }

  .home-page .site-hero {
    min-height: 390px;
    padding: 44px 16px 36px;
  }

  .home-page h1 {
    max-width: 100%;
    gap: 10px;
    font-size: clamp(46px, 14vw, 56px);
    line-height: 1;
  }

  .home-page .lead {
    font-size: 19px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .home-page .home-banner {
    grid-template-columns: 1fr;
    margin: 26px 0 34px;
    padding: 0;
  }

  .home-page .home-banner-media {
    order: -1;
    min-height: 180px;
  }

  .home-page .home-banner-copy h2 {
    font-size: 42px;
  }

  .home-page .home-banner-copy p {
    font-size: 17px;
  }

  .home-page .home-badges span {
    font-size: 10px;
  }

  .home-page .games-catalog {
    gap: 24px;
    margin: 30px 0 38px;
  }

  .home-page .games-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-page .game-tile {
    gap: 12px;
  }

  .home-page .game-tile-media {
    aspect-ratio: 4 / 3;
    justify-items: start;
  }

  .home-page .game-tile-media img {
    width: min(260px, 100%);
    max-width: 260px;
    max-height: 230px;
  }

  .home-page .game-tool-art {
    justify-items: start;
  }

  .home-page .game-tool-art span {
    width: min(190px, 64%);
  }

  .home-page .game-tile h3 {
    font-size: 38px;
  }

  .home-page .section-heading h2 {
    font-size: 40px;
  }

  .home-page .tools-grid {
    grid-template-columns: 1fr;
  }

  .home-page .tool-tile {
    min-height: 0;
  }

  .home-page .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .home-page .upcoming-card {
    min-height: 0;
  }

  .home-page .upcoming-card img {
    max-width: 260px;
  }

  .home-page .upcoming-card h3 {
    font-size: 34px;
  }

  .home-page .site-footer {
    padding: 18px 18px;
    font-size: 15px;
  }

  .site-hero {
    min-height: 380px;
    padding: 96px 16px 34px;
  }

  .lead {
    font-size: 17px;
    line-height: 1.6;
  }

  .home-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
    padding: 16px;
  }

  .home-banner-media {
    order: -1;
    min-height: 190px;
  }

  .home-banner-copy h2 {
    font-size: 32px;
  }

  .home-banner-copy p {
    font-size: 15px;
  }

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

  .card-actions {
    grid-column: auto;
  }

  .room-layout {
    grid-template-columns: 1fr;
  }

  .room-layout.offline-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "controls"
      "main"
      "rules";
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .home-topbar {
    left: 14px;
    right: 14px;
    width: auto;
    margin: 0;
  }

  .brand-mark {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark span {
    display: none;
  }

  .account-actions {
    position: fixed;
    top: 18px;
    right: 14px;
    z-index: 10;
    flex: 0 0 auto;
    gap: 7px;
  }

  .auth-entry-link {
    min-height: 38px;
    padding: 8px 11px;
    gap: 6px;
    font-size: 12px;
  }

  .auth-entry-link svg {
    width: 17px;
    height: 17px;
  }

  .account-avatar-link {
    width: 38px;
    height: 38px;
  }

  .account-popover {
    right: 0;
    min-width: 210px;
  }

  .room-title-bar {
    align-items: end;
    flex-direction: row;
  }

  .room-code-copy {
    justify-items: end;
  }

  .room-title-bar h1 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .room-code-copy .code-box {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .compact-controls {
    grid-template-columns: 1fr;
  }

  .wake-flow {
    width: 100%;
    overflow-x: auto;
    padding: 10px 12px 14px;
  }

  .wake-row {
    grid-auto-columns: minmax(70px, max-content);
    gap: 10px;
  }
}

@media (max-width: 980px) {
  .home-page .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "table"
      "stats";
    gap: 24px;
  }

  .home-page .brand-mark span {
    display: block;
  }

  .home-page .site-hero {
    min-height: 0;
    padding: 30px 16px 34px;
  }

  .home-page .hero-table {
    min-height: 285px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .18);
    transform: none;
  }

  .home-page .hero-table::before {
    inset: 12px;
  }

  .home-page .hero-token {
    width: 68px;
    font-size: 21px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, .2);
  }

  .home-page .token-one {
    left: 12px;
    top: 12px;
  }

  .home-page .token-two {
    right: 12px;
  }

  .home-page .hero-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .home-page .hero-stats div + div {
    border-left: 0;
    border-top: 2px solid var(--home-black);
  }

  .home-page .game-tile.is-live,
  .home-page .game-tile:not(.is-live) {
    grid-column: auto;
  }

  .home-page .game-tile.is-live {
    grid-template-columns: 1fr;
    min-height: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .14);
  }

  .home-page .game-tile.is-live .game-tile-media {
    min-height: 220px;
    border-right: 0;
    border-bottom: 2px solid var(--home-black);
  }

  .home-page .game-tile.is-live .game-tile-media img {
    width: 100%;
    max-width: 280px;
    max-height: 260px;
  }

  .home-page .game-tile:hover,
  .home-page .tool-tile:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-page .game-tile,
  .home-page .tool-tile,
  .skip-link {
    transition-duration: .01ms;
  }
}
