@font-face {
  font-family: Spectral;
  src: url(fonts/spectral-medium.ttf) format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Spectral;
  src: url(fonts/spectral-italic.ttf) format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --sand: #f7f5ee;
  --ink: #133638;
  --muted: #586e6b;
  --line: #d7ddd0;
  --sea: #0c4243;
  --coral: #ff9a78;
  --serif: Spectral, Georgia, serif;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--sand);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ca532f;
  outline-offset: 4px;
}
button:disabled:focus-visible {
  outline: none;
}
button svg,
.label-icon svg,
.felt svg,
.empty-hand svg,
.result-intro svg,
.crew-pick svg {
  width: 20px;
  height: 20px;
  flex: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}
p {
  line-height: 1.55;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.mast {
  border-bottom: 1px solid var(--line);
  background: #faf9f3;
}
.mast-in,
.shell {
  width: min(1320px, calc(100% - clamp(32px, 8.5vw, 144px)));
  margin: 0 auto;
}
.mast-in {
  height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font: 500 1.6rem/1 var(--serif);
  letter-spacing: -0.055em;
}
.brand > span:last-child i {
  font-weight: 500;
  color: #7d8b7f;
}
.mark,
.back-boat {
  display: inline-block;
  position: relative;
  width: 37px;
  height: 31px;
}
.mark i,
.mark b,
.mark em,
.back-boat i,
.back-boat b,
.back-boat em {
  position: absolute;
  inset: 0;
}
.mark i,
.back-boat i {
  background: #e2805d;
  clip-path: polygon(47% 1%, 48% 64%, 12% 64%);
}
.mark b,
.back-boat b {
  background: #b55744;
  clip-path: polygon(56% 25%, 86% 65%, 52% 65%);
}
.mark em,
.back-boat em {
  background: #194948;
  clip-path: polygon(0 68%, 100% 68%, 75% 95%, 25% 95%);
}
nav,
.nav-button,
.quiet,
.icon-button,
.btn,
.hero-actions,
.title-row,
.label-icon,
.game-tools,
.score-link,
.result-intro,
.dialog-actions,
.rivals,
.rival,
.setting,
.hero-meta,
.felt-status,
.bet-note,
.last-event {
  display: flex;
  align-items: center;
}
.nav-button,
.quiet,
.btn,
.hero-secondary,
.icon-button,
.score-link,
.filter {
  font-size: 0.91rem;
  font-weight: 600;
}
.nav-button {
  gap: 9px;
  padding: 10px;
}
.nav-button [data-icon],
.icon-button [data-icon] {
  display: flex;
}
.nav-sep {
  height: 19px;
  border-left: 1px solid var(--line);
  margin: 0 12px;
}
.icon-button {
  width: 40px;
  height: 40px;
  justify-content: center;
  border-radius: 50%;
}
.icon-button:hover,
.nav-button:hover,
.quiet:hover {
  background: #e6eae0;
}
.quiet {
  gap: 7px;
  padding: 8px 11px;
  border-radius: 8px;
}
.shell {
  padding: 24px 0 48px;
}
.hero {
  min-height: clamp(355px, 31vw, 440px);
  display: flex;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: #042e30 url(art/hero.webp) center 54% / cover no-repeat;
  color: #fff5dc;
  position: relative;
}
.hero-copy {
  position: relative;
  padding: clamp(30px, 3.6vw, 53px) clamp(28px, 4.4vw, 72px);
  max-width: 57%;
}
.hero-meta,
.eyeline {
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-meta {
  color: #c0d2be;
  gap: 10px;
  margin: 0 0 20px;
}
.hero-meta span {
  width: 28px;
  height: 1px;
  background: #a7bcb0;
}
.hero h1 {
  font-size: clamp(3.65rem, 6.2vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin: 0 0 20px;
  text-shadow: 0 1px 9px #00272935;
}
.hero h1 i {
  color: #ffb18b;
}
.hero-copy p {
  font-size: 1rem;
  max-width: 375px;
  color: #e1e8db;
  margin: 0 0 24px;
  line-height: 1.5;
}
.hero-actions {
  flex-wrap: wrap;
  gap: 15px;
}
.btn {
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 9px;
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}
.btn:active,
.filter:active {
  transform: translateY(1px);
}
.btn.coral {
  background: var(--coral);
  color: #34241d;
  box-shadow: 0 3px 0 #0002;
}
.btn.coral:hover {
  background: #ffb095;
}
.hero .btn {
  min-height: 48px;
  padding: 12px 20px;
}
.hero .btn svg {
  width: 16px;
  height: 16px;
}
.crew-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f4f1df;
}
.crew-pick svg {
  width: 17px;
  height: 17px;
  position: absolute;
  pointer-events: none;
}
.crew-pick svg:first-child {
  left: 2px;
}
.crew-pick svg:last-child {
  width: 12px;
  right: 2px;
}
.crew-pick select {
  color: inherit;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  appearance: none;
  padding: 12px 19px 12px 26px;
  cursor: pointer;
}
.crew-pick option {
  color: var(--ink);
  background: var(--sand);
}
.hero-secondary {
  border-bottom: 1px solid #bac8b0;
  padding: 7px 0;
  color: #fff3dc;
}
.atlas {
  margin-top: clamp(28px, 3vw, 44px);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.section-heading h2 {
  margin: 0;
}
.title-row {
  gap: 12px;
}
.label-icon {
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #e6eade;
  color: #446453;
}
.atlas-count,
.count {
  color: var(--muted);
  font-size: 0.87rem;
}
.atlas-count i {
  display: inline-block;
  width: 3px;
  height: 3px;
  vertical-align: middle;
  border-radius: 50%;
  background: #789184;
  margin: 0 6px;
}
.filters {
  display: flex;
  gap: 7px;
  margin: 16px 0 19px;
  flex-wrap: wrap;
}
.filter {
  padding: 7px 14px;
  min-height: 36px;
  border: 1px solid #c9d1c4;
  border-radius: 50px;
  color: #425c56;
  background: #f9f8f2;
}
.filter.active {
  background: #174742;
  border-color: #174742;
  color: #fffdef;
}
.filter:not(.active):hover {
  background: #e6eadd;
}
.specimens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 24px);
}
.specimen {
  min-width: 0;
  background: #f0f0e6;
  border: 1px solid #dfe1d4;
  border-radius: 13px;
  padding: clamp(13px, 1.55vw, 24px) clamp(13px, 2.25vw, 33px) 15px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
}
.specimen > span {
  font-size: 0.87rem;
  color: #47605a;
  text-align: center;
}
.face {
  position: relative;
  display: block;
  aspect-ratio: 0.73;
  width: 100%;
  max-width: 230px;
  border: 1px solid #0002;
  border-radius: 9px;
  background:
    linear-gradient(145deg, #ffffff28, #ffffff00 47%, #091a1b12), var(--paper);
  color: #193439;
  box-shadow:
    0 3px 2px #24352622,
    0 7px 14px -6px #1d302e85,
    inset 0 0 0 2px #ffffff30;
  padding: 5px;
  text-align: center;
  isolation: isolate;
  transition:
    transform 0.17s,
    box-shadow 0.17s;
}
.face:before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    123deg,
    #fff1 0 1px,
    transparent 1px 4px
  );
  opacity: 0.2;
  z-index: -1;
}
.card-in {
  border: 1px solid #24424044;
  border-radius: 5px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 6% 6% 5%;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
  font-size: clamp(0.61rem, 0.82vw, 0.78rem);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.card-glyph {
  font-size: 1.4em;
  line-height: 1;
}
.figure {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px #10262927);
  pointer-events: none;
}
.face-name {
  font: 500 clamp(1.17rem, 1.9vw, 1.82rem) / 1.05 var(--serif);
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.face-rule {
  margin: 5% 0 4%;
  width: 31%;
  border-top: 1px solid currentColor;
  opacity: 0.45;
}
.face-bottom {
  font-size: clamp(0.63rem, 0.88vw, 0.79rem);
  display: flex;
  align-items: center;
  gap: 5px;
}
.face-bottom em {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.inkcard {
  color: #fffdf4;
}
.inkcard .card-in {
  border-color: #f8fff455;
}
button.face:hover,
.selectable .face:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 8px 11px -2px #20312e50;
}
.specimen .face {
  width: 100%;
  max-width: 171px;
}
.specimen:nth-child(2n + 1) .face:not(:hover) {
  transform: rotate(-2deg);
}
.specimen:nth-child(2n) .face:not(:hover) {
  transform: rotate(2deg);
}
.game {
  padding-top: 19px;
}
.game-top,
.game-title {
  display: flex;
  align-items: center;
}
.game-top {
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 15px;
}
.game-title {
  gap: 16px;
}
.game-title h1 {
  font-size: clamp(2rem, 3.75vw, 3.1rem);
  line-height: 1.1;
  margin: 0;
}
.game-title > span,
.count {
  padding: 5px 9px;
  border-radius: 25px;
  background: #e7ebe0;
  color: #415e54;
  font-size: 0.84rem;
  font-weight: 600;
}
.game-tools {
  gap: 4px;
}
.game-tools svg {
  width: 17px;
  height: 17px;
}
.rivals {
  gap: 9px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rival,
.own-total {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 47px;
  background: #fafaf5;
  gap: 9px;
  padding: 6px 12px 6px 7px;
  text-align: left;
}
.rival.active {
  border-color: #bc805e;
  background: #fbefdf;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #dfe8df;
  color: #476657;
}
.av2 {
  background: #eaddce;
}
.av3 {
  background: #e1dbef;
}
.avatar svg {
  width: 17px;
  height: 17px;
}
.rival-name {
  display: grid;
  gap: 1px;
}
.rival-name strong {
  font-size: 0.87rem;
}
.rival-name small,
.rival-total small {
  font-size: 0.73rem;
  color: var(--muted);
}
.rival-total {
  font-size: 1rem;
  margin-left: 6px;
}
.own-total {
  border: none;
  margin-left: auto;
  background: transparent;
  font-size: 0.86rem;
  padding: 8px 0;
  color: var(--muted);
}
.own-total strong {
  margin: 0 2px 0 7px;
  color: var(--ink);
  font-size: 1.1rem;
}
.felt {
  position: relative;
  isolation: isolate;
  border-radius: 17px;
  overflow: hidden;
  text-align: center;
  padding: 19px clamp(12px, 2vw, 26px) 15px;
  background: radial-gradient(
    ellipse at 50% 48%,
    #205a54,
    #144a47 55%,
    #0a383a
  );
  color: #fff5dc;
  box-shadow:
    inset 0 0 0 1px #113f3b,
    inset 0 0 0 6px #0f3b3744;
}
.felt:before,
.felt:after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -30% 70% -35% -17%;
  opacity: 0.45;
  background: repeating-radial-gradient(
    ellipse at 12% 54%,
    transparent 0 28px,
    #9bc7ac29 29px 30px,
    transparent 31px 45px
  );
  transform: rotate(23deg);
  mask-image: linear-gradient(95deg, black, transparent);
}
.felt:after {
  inset: -45% -20% -52% 68%;
  transform: rotate(210deg);
}
.felt-status,
.bet-note {
  justify-content: center;
  gap: 7px;
  font-size: 0.76rem;
  letter-spacing: 0.075em;
  font-weight: 650;
  text-transform: uppercase;
  color: #c5d7bc;
}
.felt-status svg {
  width: 14px;
  height: 14px;
}
.turn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9ddb2;
  box-shadow: 0 0 0 3px #a9ddb219;
}
.felt h2 {
  margin: 6px 0 3px;
  font-size: clamp(1.68rem, 2.3vw, 2.15rem);
}
.felt-hint {
  font-size: 0.92rem;
  color: #dbebdb;
  margin: 0 auto 17px;
  line-height: 1.4;
  max-width: 650px;
}
.bet-note {
  margin: 6px auto;
  background: #fbdaaa;
  color: #374439;
  border-radius: 16px;
  padding: 4px 9px;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}
.bet-note svg {
  width: 13px;
  height: 13px;
}
.piles,
.pick-cards {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 45px);
  margin: 0 auto;
  --cw: clamp(104px, 11.2vw, 149px);
}
.pile {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  width: var(--cw);
  flex: none;
}
.pile .face,
.empty-slot,
.deck {
  width: 100%;
  aspect-ratio: 0.73;
}
.pile-divider {
  align-self: center;
  height: 80px;
  width: 1px;
  background: #bad2c12f;
  margin: 0 1px 28px;
}
.pile .face,
.deck {
  box-shadow:
    0 3px 0 -1px #d9ded0,
    0 4px 0 -1px #68756b,
    0 6px 0 -2px #e5ded1,
    0 7px 0 -2px #68756b,
    0 8px 13px #001b2390;
}
.pile.selectable .face,
.deck.selectable,
.selectable .empty-slot {
  outline: 2px solid #f3dfae;
  outline-offset: 3px;
}
.pile button:focus-visible,
.deck:focus-visible {
  outline: 3px solid #ff9971 !important;
  outline-offset: 5px !important;
}
.pile-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #e1e8d8;
}
.pile-caption b {
  font-weight: 600;
  font-size: 0.73rem;
  background: #123f3d;
  border: 1px solid #d2e5d044;
  border-radius: 15px;
  padding: 0 6px;
  line-height: 1.4;
}
.empty-slot {
  border: 1px dashed #c5d8c766;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #acc4ad;
  font-size: 0.85rem;
}
.deck {
  border-radius: 9px;
  padding: 4px;
  background: #b3c8af;
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.18s;
}
.deck.selectable:hover {
  transform: translateY(-4px) rotate(-4deg);
}
.back-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #b6c8a5;
  height: 100%;
  border-radius: 5px;
  background: repeating-radial-gradient(
    ellipse at 110% 100%,
    #124344 0 8px,
    #57817a 9px,
    #17484a 10px 15px
  );
  isolation: isolate;
}
.back-art:before {
  content: "";
  position: absolute;
  inset: 2%;
  background: linear-gradient(120deg, #0b3335bb, #1a545474);
  z-index: -1;
}
.back-line {
  position: absolute;
  inset: 4%;
  border: 1px solid #e2dab4a8;
  border-radius: 3px;
}
.back-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid #e6dcb05c;
  width: 50%;
  aspect-ratio: 1;
  background: #174647dd;
}
.back-boat {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 46%;
  height: 31%;
  transform: translate(-50%, -50%);
}
.back-boat i {
  background: #eae0ba;
}
.back-boat b {
  background: #bdcba4;
}
.back-boat em {
  background: #e2956e;
}
.back-wave {
  position: absolute;
  top: 64%;
  left: 0;
  right: 0;
  color: #d6cca6;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.pick-cards {
  align-items: center;
  gap: 20px;
  min-height: 1px;
}
.pick-face {
  width: var(--cw);
  flex: none;
  animation: deal 0.25s ease-out both;
}
.pick-face:nth-child(2) {
  animation-delay: 55ms;
}
.pick-cards.many {
  overflow-x: auto;
  justify-content: safe center;
  padding: 5px 5px 14px;
}
.table-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.table-controls:not(:empty) {
  margin-top: 14px;
}
.table-controls .btn {
  min-height: 37px;
  padding: 7px 12px;
}
.btn.cream {
  background: #f8edcc;
  color: #213d38;
}
.btn.mint {
  background: #b9d9b8;
  color: #163f37;
}
.btn.table-quiet {
  color: #f4f1df;
  border: 1px solid #c4d7c17d;
}
.last-event {
  width: 100%;
  justify-content: center;
  gap: 7px;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 5px;
}
.last-event svg {
  width: 14px;
  height: 14px;
}
.hand-heading {
  margin-bottom: 12px;
}
.hand-heading h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.12rem);
}
.hand-heading .label-icon {
  width: 30px;
  height: 30px;
}
.count {
  min-width: 24px;
  text-align: center;
}
.score-link {
  gap: 7px;
  color: #435f54;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 6px 10px;
}
.score-link svg {
  width: 15px;
  height: 15px;
}
.score-link span {
  color: var(--muted);
  font-weight: 400;
}
.hand-cards,
.mini-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hand-cards .face,
.mini-cards .face {
  width: clamp(90px, 9.4vw, 125px);
}
.hand-cards .face-name,
.mini-cards .face-name,
.table-face .face-name,
.pick-face .face-name {
  font-size: clamp(1.08rem, 1.6vw, 1.5rem);
}
.hand-cards .card-top,
.mini-cards .card-top {
  font-size: 0.58rem;
}
.empty-hand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--muted);
  padding: 16px;
  border: 1px dashed #bac8b8;
  border-radius: 10px;
  font-size: 0.9rem;
}
.laid {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.laid strong {
  font-size: 0.84rem;
  margin-right: 7px;
}
.laid button {
  background: #e5eadf;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 0.82rem;
}
.just-added {
  animation: deal 0.3s ease-out both;
}
.flying-card {
  position: fixed;
  pointer-events: none;
  width: 44px;
  height: 62px;
  padding: 2px;
  border-radius: 5px;
  background: #dee6ce;
  z-index: 20;
  box-shadow: 0 6px 13px #14393244;
}
.flying-card .back-wave {
  font-size: 8px;
}
.flying-card .back-art {
  border-radius: 4px;
}
@keyframes deal {
  from {
    opacity: 0.25;
    transform: translateY(-12px) rotate(-4deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}
dialog {
  border: 1px solid #d3dacd;
  border-radius: 16px;
  padding: clamp(19px, 3vw, 33px);
  width: min(540px, calc(100% - 24px));
  max-height: 85dvh;
  color: var(--ink);
  background: var(--sand);
  box-shadow: 0 18px 80px #002c2d50;
  overscroll-behavior: contain;
}
dialog[open] {
  animation: modalin 0.15s ease-out;
}
dialog::backdrop {
  background: #092d30a6;
  backdrop-filter: blur(3px);
}
dialog.large {
  width: min(695px, calc(100% - 24px));
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.modal-head h2 {
  margin: 2px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}
.close {
  flex: none;
  width: 33px;
  height: 33px;
  background: #e6ebe1;
}
.close svg {
  width: 17px;
  height: 17px;
}
.muted,
.credits,
.profile {
  color: var(--muted);
  line-height: 1.55;
}
.card-detail {
  display: grid;
  grid-template-columns: minmax(110px, 37%) 1fr;
  gap: 22px;
  align-items: center;
}
.card-detail .face-name {
  font-size: 1.6rem;
}
.eyeline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card-detail p {
  margin: 9px 0 0;
}
.card-detail p + .btn {
  margin-top: 15px;
}
.btn.primary {
  background: #184e47;
  color: #fffbea;
}
.btn.primary:hover {
  background: #246453;
}
.option-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.option-list button,
.setting {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  text-align: left;
}
.option-list button:hover {
  background: #e7ebdf;
}
.setting {
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
}
.setting select {
  max-width: 55%;
  border: 1px solid #c2ccbe;
  border-radius: 6px;
  background: #fffef7;
  color: var(--ink);
  padding: 7px 25px 7px 10px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #496355 50%),
    linear-gradient(135deg, #496355 50%, transparent 50%);
  background-size: 5px 5px;
  background-position:
    calc(100% - 15px) 52%,
    calc(100% - 10px) 52%;
  background-repeat: no-repeat;
}
.setting input {
  accent-color: #235749;
  width: 20px;
  height: 20px;
}
.setting + .muted {
  font-size: 0.9rem;
  margin: 18px 0 0;
}
.dialog-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}
.breakdown {
  margin: 0;
}
.breakdown > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown dd {
  margin: 0;
  font-weight: 650;
}
.breakdown > div:nth-last-child(2) {
  font-weight: 700;
}
.breakdown + .muted {
  margin-top: 14px;
}
.rulebook section {
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}
.rulebook h3,
dialog h3 {
  font-size: 1.45rem;
  margin: 0 0 8px;
}
.rulebook ol {
  padding-left: 22px;
  margin-top: 0;
}
.rulebook li {
  padding: 3px 0;
  line-height: 1.5;
}
.rulebook p,
.rulebook ol {
  margin-bottom: 13px;
}
.credits {
  font-size: 0.85rem;
}
.text-link {
  color: #246151;
}
.result-intro {
  gap: 12px;
  background: #e6ecdd;
  padding: 14px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.result-intro svg {
  width: 24px;
  height: 24px;
}
.result-intro p {
  margin: 2px 0 0;
  font-size: 0.94rem;
}
.scroll-table {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th,
td {
  text-align: right;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  text-align: left;
}
thead th {
  font-size: 0.81rem;
  color: var(--muted);
}
.journal {
  list-style: none;
  padding: 0;
  margin: 0;
}
.journal li {
  border-top: 1px solid var(--line);
  padding: 9px 0;
  line-height: 1.4;
}
.journal li span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.mini-cards {
  margin: 8px 0 18px;
}
.save-warning {
  text-align: center;
  font-size: 0.88rem;
}
.card-detail .card-top {
  font-size: 0.7rem;
}
@keyframes modalin {
  from {
    opacity: 0.2;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1550px) {
  .hero {
    background-position: center 50%;
  }
  .specimen .face {
    max-width: 170px;
  }
}
@media (max-width: 900px) {
  .mast-in,
  .shell {
    width: calc(100% - 40px);
  }
  .hero-copy {
    max-width: 60%;
    padding-left: 33px;
  }
  .hero {
    background-position: 54% center;
  }
  .specimen {
    padding: 12px 12px 10px;
  }
  .game-title h1 {
    font-size: 2.2rem;
  }
  .specimens {
    gap: 10px;
  }
  .face-name {
    font-size: 1.25rem;
  }
  .specimen > span {
    font-size: 0.79rem;
  }
  .rivals {
    gap: 5px;
  }
  .rival {
    padding-right: 8px;
  }
  .hero h1 {
    font-size: 4.05rem;
  }
}
@media (max-width: 650px) {
  .mast-in,
  .shell {
    width: calc(100% - 28px);
  }
  .mast-in {
    height: 56px;
  }
  .brand {
    font-size: 1.36rem;
    gap: 6px;
  }
  .mark {
    width: 29px;
    height: 26px;
  }
  .nav-button {
    padding: 8px 3px;
    font-size: 0.84rem;
    gap: 5px;
  }
  .nav-button svg {
    width: 16px;
    height: 16px;
  }
  .nav-sep {
    margin: 0 5px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
  }
  .shell {
    padding-top: 14px;
  }
  .hero {
    min-height: 390px;
    align-items: flex-end;
    background-size: auto 72%;
    background-position: 72% top;
    background-color: #073234;
    border-radius: 13px;
  }
  .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      0deg,
      #062f31 8%,
      #062f31f5 27%,
      #062f31b5 48%,
      transparent 75%
    );
  }
  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 145px 21px 23px;
  }
  .hero-meta {
    margin: 0 0 10px;
    font-size: 0.67rem;
    color: #d4dfc8;
  }
  .hero-meta span {
    width: 18px;
  }
  .hero h1 {
    font-size: clamp(3rem, 10vw, 4rem);
    margin-bottom: 10px;
    line-height: 0.94;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 i:before {
    content: " ";
  }
  .hero-copy p {
    font-size: 0.91rem;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 350px;
  }
  .hero-actions {
    gap: 11px;
  }
  .hero .btn {
    font-size: 0.87rem;
    min-height: 44px;
    padding: 10px 14px;
  }
  .crew-pick select {
    font-size: 0.85rem;
  }
  .atlas {
    margin-top: 25px;
  }
  .title-row {
    gap: 8px;
  }
  .label-icon {
    width: 30px;
    height: 30px;
  }
  .label-icon svg {
    width: 17px;
    height: 17px;
  }
  .section-heading h2 {
    font-size: 1.8rem;
  }
  .atlas-count {
    font-size: 0.74rem;
  }
  .filters {
    gap: 5px;
    margin: 12px 0;
  }
  .filter {
    font-size: 0.81rem;
    padding: 5px 10px;
    min-height: 36px;
  }
  .specimens {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .specimen {
    border-radius: 9px;
    padding: 9px 7px;
    gap: 7px;
  }
  .specimen > span {
    font-size: 0.72rem;
    line-height: 1.2;
  }
  .card-in {
    padding: 6%;
  }
  .face {
    border-radius: 7px;
    padding: 3px;
  }
  .card-top {
    font-size: 0.54rem;
  }
  .face-name,
  .table-face .face-name,
  .pick-face .face-name {
    font-size: clamp(0.98rem, 3.6vw, 1.32rem);
  }
  .face-bottom {
    font-size: 0.6rem;
    gap: 3px;
  }
  .face-bottom em {
    width: 4px;
    height: 4px;
  }
  .game-top {
    align-items: center;
    gap: 5px;
    margin-bottom: 9px;
  }
  .game-title {
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
  }
  .game-title h1 {
    font-size: 1.7rem;
  }
  .game-title > span {
    background: none;
    padding: 0;
    font-size: 0.76rem;
  }
  .game-tools .quiet {
    font-size: 0.77rem;
    gap: 4px;
    padding: 7px 4px;
  }
  .game-tools svg {
    width: 15px;
    height: 15px;
  }
  .rivals {
    margin-bottom: 8px;
  }
  .rival {
    border-radius: 8px;
    min-height: 35px;
    padding: 4px;
    gap: 4px;
  }
  .avatar {
    width: 21px;
    height: 21px;
  }
  .avatar svg {
    width: 13px;
    height: 13px;
  }
  .rival-name strong {
    font-size: 0.72rem;
  }
  .rival-name small {
    font-size: 0.65rem;
  }
  .rival-total {
    margin: 0 2px;
    font-size: 0.75rem;
  }
  .rival-total small {
    display: none;
  }
  .own-total {
    font-size: 0.69rem;
    min-height: 20px;
    padding: 2px 0;
  }
  .own-total strong {
    font-size: 0.8rem;
    margin-left: 2px;
  }
  .felt {
    border-radius: 11px;
    padding: 15px 6px 12px;
  }
  .felt-status {
    font-size: 0.66rem;
  }
  .felt h2 {
    font-size: 1.6rem;
    margin: 5px 0 3px;
  }
  .felt-hint {
    font-size: 0.83rem;
    line-height: 1.35;
    margin: 0 auto 14px;
    max-width: 330px;
  }
  .piles,
  .pick-cards {
    --cw: clamp(76px, 23.8vw, 116px);
    gap: clamp(10px, 3vw, 17px);
  }
  .pile-divider {
    display: none;
  }
  .pile {
    gap: 8px;
  }
  .pile-caption {
    font-size: 0.71rem;
    gap: 3px;
  }
  .pile-caption b {
    font-size: 0.64rem;
  }
  .empty-slot {
    font-size: 0.76rem;
  }
  .table-controls .btn {
    font-size: 0.8rem;
    min-height: 37px;
    padding: 7px 9px;
  }
  .last-event {
    font-size: 0.73rem;
    margin: 4px 0 9px;
  }
  .hand-heading h2 {
    font-size: 1.52rem;
  }
  .hand-heading .label-icon {
    width: 24px;
    height: 24px;
  }
  .hand-heading .count {
    font-size: 0.68rem;
    min-width: 20px;
    padding: 4px 6px;
  }
  .score-link {
    font-size: 0.75rem;
    padding: 5px 7px;
    gap: 4px;
  }
  .score-link span {
    display: none;
  }
  .hand-cards {
    gap: 7px;
  }
  .hand-cards .face,
  .mini-cards .face {
    width: clamp(78px, 22vw, 100px);
  }
  .hand-cards .face-name,
  .mini-cards .face-name {
    font-size: 1rem;
  }
  .hand-cards .card-top,
  .mini-cards .card-top {
    font-size: 0.52rem;
  }
  .empty-hand {
    padding: 12px;
    font-size: 0.83rem;
  }
  .card-detail {
    gap: 13px;
    grid-template-columns: minmax(98px, 35%) 1fr;
  }
  .card-detail p {
    font-size: 0.9rem;
  }
  .card-detail .face-name {
    font-size: 1.15rem;
  }
  .card-detail .card-top {
    font-size: 0.56rem;
  }
  .card-detail .eyeline {
    font-size: 0.62rem;
  }
  .card-detail .btn {
    font-size: 0.8rem;
  }
  .dialog-actions {
    gap: 6px;
  }
  .journal li {
    font-size: 0.88rem;
  }
}
@media (max-width: 370px) {
  .hero-copy {
    padding-left: 15px;
    padding-right: 15px;
  }
  .hero {
    min-height: 375px;
  }
  .hero-actions {
    gap: 6px;
  }
  .game-tools .quiet {
    font-size: 0.72rem;
  }
  .specimen .card-top {
    font-size: 0.47rem;
  }
  .filter {
    padding-inline: 8px;
  }
  .specimen > span {
    font-size: 0.67rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.pick-option {
  width: var(--cw);
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.card-info {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #d5e3cf;
  border-radius: 50%;
  padding: 0;
}
.card-info svg {
  width: 15px;
  height: 15px;
}
.card-info:hover {
  background: #0b3232;
  color: white;
}
.pick-option .pick-face {
  width: 100%;
}
.pile-caption {
  min-height: 26px;
}
@media (max-width: 650px) {
  .pile-caption {
    gap: 2px;
  }
  .card-info {
    width: 23px;
    height: 26px;
  }
  .card-info svg {
    width: 13px;
    height: 13px;
  }
}
