@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  --ink: #233443;
  --muted: #586978;
  --paper: #fffdf8;
  --sky: #e7f3f6;
  --coral: #eb6d5c;
  --yellow: #f8cd57;
  --line: #c9d8dc;
  --shadow: 4px 5px 0 #233443;
  --radius: 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  background: var(--sky);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-image: radial-gradient(#8faeb433 0.8px, transparent 0.8px);
  background-size: 16px 16px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #3984bc;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
}
h1 {
  font-size: clamp(3.1rem, 6.8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.04;
}
h2 {
  font-size: 2.2rem;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.65;
}
img {
  max-width: 100%;
}
.site-header {
  height: 94px;
  max-width: 1320px;
  padding: 0 50px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #b9d1d9;
}
.brand {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  padding: 0;
}
.brand-dot {
  color: var(--coral);
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.button {
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  min-height: 48px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 2px 3px 0 var(--ink);
}
.button.primary {
  background: var(--coral);
  box-shadow: 3px 4px 0 var(--ink);
}
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 var(--ink);
}
.button.dark {
  background: var(--ink);
  color: #fff;
}
.button.small {
  font-size: 0.86rem;
  padding: 10px 15px;
  min-height: 42px;
}
.button.ghost {
  border-color: var(--line);
  background: transparent;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: #fff;
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
.hero {
  max-width: 1220px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 590px;
  padding: 56px 0 42px;
  gap: 40px;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.eyebrow:before {
  content: "";
  width: 23px;
  height: 2px;
  background: currentColor;
}
.hero h1 .accent {
  color: #d85c4f;
  position: relative;
}
.hero-copy > p {
  max-width: 460px;
  font-size: 1.08rem;
  color: var(--muted);
  margin: 25px 0 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-notes {
  display: flex;
  gap: 20px;
  margin-top: 25px;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-notes span:before {
  content: "✦";
  color: #d86253;
  margin-right: 7px;
}
.hero-art {
  position: relative;
  height: 440px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1.5px dashed #9fb9c0;
  border-radius: 50%;
  transform: rotate(15deg);
  z-index: -1;
}
.art-card {
  width: 250px;
  height: 345px;
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 6px 9px 0 #23344326;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s;
}
.art-card.behind {
  background: #a7cbb4;
  transform: translate(-80px, -14px) rotate(-18deg);
  height: 320px;
  width: 229px;
  justify-content: center;
  text-align: center;
  font-size: 5rem;
}
.art-card.behind.right {
  background: #b7a3dc;
  transform: translate(93px, 6px) rotate(20deg);
}
.art-card.front {
  transform: rotate(-4deg);
  z-index: 2;
}
.art-card.front:hover {
  transform: rotate(1deg) translateY(-6px);
}
.art-card .card-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.art-card .art {
  height: 235px;
  background: #f9d46b;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
.art img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: scale(1.07);
}
.art-card strong {
  font:
    700 1.2rem "Space Grotesk",
    sans-serif;
}
.art-card .card-sub {
  font-size: 0.73rem;
  color: var(--muted);
}
.sticker {
  position: absolute;
  z-index: 3;
  background: #fff5cf;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  width: 102px;
  height: 102px;
  right: 0;
  top: 7px;
  display: grid;
  place-content: center;
  transform: rotate(12deg);
  font:
    700 0.9rem/1.2 "Space Grotesk",
    sans-serif;
  text-align: center;
  box-shadow: 3px 4px 0 #23344316;
}
.star {
  position: absolute;
  font-size: 2.2rem;
  line-height: 1;
  color: #df9f37;
  left: 12px;
  bottom: 35px;
}
.art-tag {
  position: absolute;
  bottom: 2px;
  left: 80px;
  font-size: 0.8rem;
  background: #fff;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  transform: rotate(-5deg);
  z-index: 3;
}
.ticker {
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 45px;
  padding: 15px 25px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}
.ticker b {
  color: var(--yellow);
}
.collection {
  max-width: 1220px;
  margin: auto;
  padding: 56px 0 64px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}
.badge {
  border: 1px solid #a9bdc2;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 0.75rem;
  white-space: nowrap;
  background: #edf6f6;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 18px 0 25px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 30px;
  padding: 8px 17px;
  font-size: 0.85rem;
}
.filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game-tile {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 3px 4px 0 #23344312;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.game-tile:hover {
  transform: translateY(-4px);
  box-shadow: 4px 7px 0 #23344325;
}
.tile-art {
  height: 164px;
  display: grid;
  place-items: center;
  background: var(--tile);
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.tile-art:before,
.tile-art:after {
  content: "";
  border: 1px solid #23344318;
  position: absolute;
  border-radius: 50%;
  width: 160px;
  height: 160px;
}
.tile-art:after {
  width: 215px;
  height: 215px;
}
.tile-icon {
  font-size: 4.8rem;
  line-height: 1;
  transform: rotate(-8deg);
  filter: drop-shadow(3px 4px 0 #ffffff66);
  position: relative;
  z-index: 1;
}
.tile-art .dragon-mini {
  height: 162px;
  width: 180px;
  z-index: 1;
}
.tile-stamp {
  position: absolute;
  right: 13px;
  top: 12px;
  background: #fff9;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tile-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tile-body h3 {
  font-size: 1.35rem;
}
.tile-body > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 5px 0 17px;
}
.tile-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 19px;
}
.tile-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}
.tile-actions .button {
  flex: 1;
  font-size: 0.86rem;
  min-height: 40px;
  padding: 9px;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 8px 1px;
}
.study {
  background: #eff0eb;
}
.study .tile-art {
  background: #cbd0df;
}
.study-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.how {
  background: #f9e6ac;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  margin-top: 40px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.how h3 {
  margin-bottom: 8px;
}
.how p {
  font-size: 0.9rem;
  color: #50606a;
}
.how-icon {
  font-size: 1.5rem;
  margin-bottom: 9px;
}
.site-footer {
  border-top: 1px solid #b9d1d9;
  max-width: 1320px;
  margin: auto;
  padding: 28px 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}
.site-footer strong {
  color: var(--ink);
}
dialog {
  padding: 34px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px;
  width: min(600px, calc(100% - 30px));
  max-height: 90vh;
  box-shadow: 8px 10px 0 #152d3c22;
  color: var(--ink);
}
dialog::backdrop {
  background: #172d3f77;
  backdrop-filter: blur(3px);
}
.dialog-notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff0e9;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  width: 34px;
  height: 34px;
}
.dialog-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.dialog-sub {
  color: var(--muted);
  margin: 12px 0 23px;
  font-size: 0.94rem;
}
.rules-list {
  padding: 0 0 0 21px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.rules-list li {
  margin-bottom: 15px;
  padding-left: 3px;
}
.edition {
  background: #e9f0ec;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.81rem;
  color: var(--muted);
  margin: 18px 0;
}
label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 7px;
}
input,
select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #b3c4ca;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 46px;
}
input:focus,
select:focus {
  border-color: var(--ink);
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #536975 50%),
    linear-gradient(135deg, #536975 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 35px;
}
.field {
  margin: 17px 0;
}
.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mode-tabs button {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-weight: 600;
}
.mode-tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 12px 0 18px;
  line-height: 1.6;
}
.full {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 15px 22px;
  z-index: 100;
  max-width: min(550px, 92vw);
  box-shadow: 0 3px 15px #0002;
  font-size: 0.9rem;
}
.play-shell {
  max-width: 1280px;
  margin: auto;
  padding: 28px 40px 60px;
  min-height: 70vh;
}
.play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.play-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.play-title h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.play-title .icon {
  font-size: 2rem;
}
.play-tools {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.play-tools .button {
  font-size: 0.82rem;
  padding: 8px 12px;
  min-height: 38px;
}
.play-status {
  border: 1.5px solid var(--ink);
  background: #fffdf8;
  border-radius: 12px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 3px 4px 0 #23344316;
  margin-bottom: 19px;
}
.play-status h2 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
.save-mark {
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
}
.score-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 23px;
}
.score {
  border: 1px solid #bed1d6;
  border-radius: 10px;
  background: #ffffff80;
  padding: 10px 17px;
  min-width: 104px;
}
.score small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.score strong {
  font-size: 0.95rem;
}
.seat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #bfd2d7;
  padding-bottom: 19px;
  margin-bottom: 23px;
}
.seat-row > span {
  font-size: 0.8rem;
  color: var(--muted);
  margin-right: 7px;
}
.seat {
  border: 1px solid #a6bbc2;
  border-radius: 30px;
  background: #f5fafb;
  padding: 8px 13px;
  font-size: 0.82rem;
}
.seat.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.seat .seat-count {
  display: inline-block;
  margin-left: 6px;
  background: #ffffff30;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.7rem;
}
.board-section {
  margin-bottom: 27px;
}
.board-section h3 {
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0;
  font-size: 0.87rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.playing-card {
  background: var(--paper);
  border: 1.5px solid #647887;
  border-radius: 12px;
  width: 160px;
  min-height: 190px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 2px 3px 0 #23344315;
  overflow: hidden;
}
.card-face {
  min-height: 84px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eaf0ee;
  font-size: 2.8rem;
}
.playing-card.monster .card-face {
  background: #f9df8e;
}
.playing-card.spell .card-face {
  background: #c4dce9;
}
.playing-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  line-height: 1.25;
}
.playing-card p {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #52636e;
}
.card-type {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  align-self: flex-start;
  background: #eef0e8;
  border-radius: 4px;
  padding: 3px 5px;
}
.actions-area {
  background: #d5e7eb;
  border: 1px solid #b7cfd6;
  border-radius: 14px;
  padding: 22px;
  margin: 20px 0;
}
.actions-area h3 {
  font-size: 1rem;
  margin-bottom: 15px;
}
.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.action-card {
  width: 176px;
  background: #fffdf8;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  box-shadow: 2px 3px 0 #23344320;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 3px 6px 0 #23344330;
}
.action-card .card-face {
  min-height: 70px;
  font-size: 2.4rem;
  background: #f5df9f;
}
.action-card.spell .card-face {
  background: #b9d7e7;
}
.action-card.action .card-face {
  background: #dcdce7;
}
.action-card strong {
  font-size: 0.83rem;
  line-height: 1.4;
}
.action-card p {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}
.empty {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  padding: 10px 0;
}
.privacy {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  text-align: center;
  padding: 48px 25px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  max-width: 630px;
  box-shadow: 4px 5px 0 #23344312;
}
.privacy-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.privacy h2 {
  font-size: 1.8rem;
}
.privacy p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 400px;
  margin: 13px auto 23px;
}
.log {
  border-top: 1px solid #b9d0d6;
  margin-top: 28px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.log summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.log ol {
  line-height: 1.8;
  padding-left: 20px;
}
.victory {
  background: #f9db7e;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}
.victory h2 {
  font-size: 2rem;
  margin: 10px 0;
}
.lobby {
  max-width: 650px;
  background: var(--paper);
  padding: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  margin: 30px auto;
}
.room-code {
  font-family: "Space Grotesk", monospace;
  font-size: 2.4rem;
  letter-spacing: 0.15em;
  padding: 21px 0;
}
.roster {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.roster li {
  border-bottom: 1px solid #d9e1de;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.roster small {
  color: var(--muted);
}
.shape {
  width: 100%;
  height: 88px;
  overflow: visible;
}
.shape rect {
  fill: #34495b;
  stroke: #fffdf8;
  stroke-width: 0.9;
}
.shape.target-shape rect {
  fill: #e5ad3c;
  stroke: #fffdf8;
}
.letter-face {
  font:
    700 3rem "Space Grotesk",
    sans-serif;
}
.resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1.5px solid var(--ink);
  background: #fff6d6;
  border-radius: 12px;
  padding: 17px 22px;
  margin-bottom: 26px;
}
.resume p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 3px;
}
.resume .button {
  white-space: nowrap;
}
.input-action {
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.input-action input {
  text-transform: uppercase;
}
.rules-source {
  display: flex;
  gap: 18px;
  font-size: 0.84rem;
  margin-top: 24px;
}
.disconnect {
  border: 1.5px solid #d6715e;
  background: #fff0e8;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 17px;
  font-size: 0.9rem;
}
.about-p {
  margin: 17px 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes pop {
  from {
    transform: translateY(6px);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.actions-area,
.victory {
  animation: pop 0.2s ease-out;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 660px;
  }
  .hero-art {
    transform: scale(1.07);
  }
}
@media (max-width: 1330px) {
  .hero,
  .collection {
    margin-left: 50px;
    margin-right: 50px;
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 15px;
    min-height: 540px;
  }
  .hero-art {
    transform: scale(0.85);
    transform-origin: center center;
  }
  .hero-copy > p {
    font-size: 1rem;
  }
  .hero-notes {
    gap: 12px;
    font-size: 0.75rem;
  }
  .game-grid {
    gap: 18px;
  }
  .tile-body {
    padding: 17px;
  }
  .site-header {
    padding: 0 30px;
  }
  .hero,
  .collection {
    margin-left: 30px;
    margin-right: 30px;
  }
  .sticker {
    right: -20px;
  }
  .ticker {
    gap: 25px;
    font-size: 0.7rem;
  }
  .tile-actions {
    gap: 10px;
  }
  .how {
    gap: 20px;
    padding: 23px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 78px;
    padding: 0 20px;
  }
  .brand {
    font-size: 1.6rem;
  }
  nav {
    gap: 14px;
  }
  nav > a,
  .nav-button {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 38px 0 20px;
    margin: 0 24px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 3.6rem;
    max-width: 500px;
  }
  .hero-copy > p {
    margin: 20px 0 24px;
    max-width: 460px;
  }
  .hero-art {
    height: 365px;
    transform: scale(0.82);
    margin: -15px 0 -20px;
  }
  .orbit {
    width: 370px;
    height: 370px;
  }
  .sticker {
    right: 0;
    top: 10px;
  }
  .hero-notes {
    margin-top: 21px;
  }
  .ticker {
    justify-content: flex-start;
    gap: 25px;
    padding: 15px 20px;
  }
  .ticker span:last-child {
    display: none;
  }
  .collection {
    margin: 0 20px;
    padding: 34px 0 45px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .badge {
    display: none;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tile-art {
    height: 140px;
  }
  .tile-icon {
    font-size: 4rem;
  }
  .tile-body h3 {
    font-size: 1.15rem;
  }
  .tile-meta {
    gap: 12px;
    font-size: 0.72rem;
  }
  .tile-actions {
    flex-wrap: wrap;
    gap: 3px;
  }
  .tile-actions .button {
    flex-basis: 100%;
  }
  .tile-actions .text-button {
    width: 100%;
    font-size: 0.78rem;
  }
  .tile-stamp {
    font-size: 0.59rem;
    padding: 4px 7px;
    right: 8px;
    top: 8px;
  }
  .how {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 25px;
  }
  .how > div {
    padding-bottom: 20px;
    border-bottom: 1px solid #b8a778;
  }
  .how > div:last-child {
    border: 0;
    padding: 0;
  }
  .site-footer {
    padding: 24px 20px;
    font-size: 0.72rem;
  }
  .play-shell {
    padding: 23px 18px 40px;
  }
  .play-top {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .play-title h1 {
    font-size: 1.8rem;
  }
  .play-tools {
    width: 100%;
  }
  .play-status {
    align-items: flex-start;
    padding: 15px;
    flex-direction: column;
    gap: 7px;
  }
  .playing-card {
    width: calc((100% - 24px) / 3);
    min-width: 130px;
    min-height: 165px;
  }
  .cards-row {
    gap: 10px;
  }
  .action-card {
    width: calc((100% - 12px) / 2);
  }
  .actions-area {
    padding: 16px;
  }
  .playing-card p {
    font-size: 0.72rem;
  }
  .actions-row {
    gap: 10px;
  }
  .name-grid {
    gap: 10px;
  }
  dialog {
    padding: 28px 23px;
  }
  .lobby {
    padding: 24px;
    margin: 10px auto;
  }
  .room-code {
    font-size: 2rem;
  }
  .resume {
    padding: 15px;
    align-items: flex-start;
  }
  .resume strong {
    font-size: 0.88rem;
  }
  .resume p {
    font-size: 0.75rem;
  }
  .resume .button {
    font-size: 0.78rem;
    padding: 8px 10px;
    min-height: 38px;
  }
  .score {
    padding: 9px 12px;
    min-width: 90px;
  }
  .score-row {
    gap: 8px;
  }
  .score strong {
    font-size: 0.85rem;
  }
  .shape {
    height: 80px;
  }
  .privacy {
    padding: 37px 20px;
  }
  .hero-actions .button {
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .hero-actions {
    gap: 10px;
  }
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero-art {
    transform: scale(0.75);
    margin-left: -15px;
    margin-right: -15px;
  }
  .game-grid {
    gap: 12px;
  }
  .tile-body {
    padding: 13px;
  }
  .tile-body > p {
    font-size: 0.8rem;
  }
  .tile-meta {
    gap: 8px;
    font-size: 0.65rem;
  }
  .tile-art {
    height: 125px;
  }
  .playing-card {
    width: calc((100% - 10px) / 2);
    min-width: 0;
  }
  .hero-notes {
    font-size: 0.68rem;
    gap: 9px;
  }
  .brand {
    font-size: 1.45rem;
  }
  .brand img {
    width: 31px;
  }
  .site-header nav .button {
    font-size: 0.76rem;
    padding: 9px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.playing-card p,
.action-card p {
  font-size: 0.875rem;
}
.playing-card {
  width: 178px;
}
.playing-card strong {
  font-size: 1rem;
}
.action-card {
  width: 190px;
}
.action-card strong {
  font-size: 0.9rem;
}
@media (max-width: 760px) {
  .playing-card {
    width: calc((100% - 10px) / 2);
    min-width: 0;
  }
  .action-card {
    width: calc((100% - 10px) / 2);
  }
  .playing-card p,
  .action-card p {
    font-size: 0.875rem;
  }
}
