﻿/* Grand Line — Hunt & Voyage. Presentation layer only. */
:root {
  --navy: #071923;
  --deep: #030e18;
  --panel: #102c38;
  --gold: #edc886;
  --gold-aged: #ac814b;
  --cream: #f8ecd4;
  --red: #c26148;
  --aqua: #90dbcf;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --paper: #ecdbb8;
}
body {
  background: var(--deep);
}
body:before {
  background:
    radial-gradient(ellipse at 78% 18%, #234f5459, transparent 55%),
    linear-gradient(115deg, #071824, #091d26 55%, #10262b);
}
.atlas {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: url("/art/nautical-chart.svg") center top / max(1440px, 100vw)
    auto no-repeat;
}
.ambient-glow {
  position: absolute;
  width: 70vw;
  height: 70vh;
  top: 5%;
  right: -10%;
  background: radial-gradient(ellipse, #c8a66312, transparent 65%);
  animation: atmosphere 18s ease-in-out infinite alternate;
}
.sea {
  position: absolute;
  inset: auto -10% -7%;
  height: 43vh;
  opacity: 0.65;
  z-index: auto;
  animation: sea-drift 22s ease-in-out infinite alternate;
}
.embers {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 15% 27%, #e9c78b 0 1px, transparent 2px),
    radial-gradient(circle at 78% 60%, #e9c78b 0 1px, transparent 2px),
    radial-gradient(circle at 52% 82%, #e9c78b 0 1px, transparent 2px),
    radial-gradient(circle at 88% 19%, #9fe0cf 0 1px, transparent 2px);
  animation: dust-drift 24s ease-in-out infinite alternate;
}
header {
  position: relative;
  border-bottom-color: #d8b77926;
  padding-top: 22px;
  padding-bottom: 22px;
}
header:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 8px;
  height: 4px;
  background: var(--gold-aged);
  transform: translateX(-50%);
}
.brand {
  position: relative;
  padding-left: 58px;
  font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 #0008;
}
.brand:before {
  content: "";
  width: 47px;
  height: 47px;
  background: url("/art/hunt-emblem.svg") center / contain no-repeat;
  position: absolute;
  left: 0;
  top: -5px;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover:before {
  transform: rotate(-8deg);
}
.brand span {
  padding-left: 0;
  letter-spacing: 5px;
  font-size: 9px;
}
.tools .quiet {
  position: relative;
}
.tools .quiet:after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.tools .quiet:hover:after,
.tools .quiet:focus-visible:after {
  transform: scaleX(1);
}
#connection {
  border: 1px solid #90dbcf24;
  background: #90dbcf08;
  border-radius: 30px;
  padding: 5px 11px;
  font-size: 10px;
}
main {
  padding-top: 42px;
  max-width: 1400px;
}
.hero {
  grid-template-columns: 1.1fr 1fr;
  gap: 34px;
  min-height: 610px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-copy > .eyebrow {
  font-size: 10px;
  letter-spacing: 2.6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-copy > .eyebrow:before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--red);
}
.game-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px -4px;
}
.game-logo img {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px #0006);
}
.game-logo-type {
  display: block;
}
.game-logo-title {
  display: block;
  font:
    900 clamp(43px, 5.3vw, 76px)/1 Impact,
    "Arial Narrow",
    Georgia,
    serif;
  letter-spacing: -1px;
  color: var(--cream);
  text-shadow:
    0 2px 0 #82603c,
    0 5px 0 #0005,
    0 15px 30px #0007;
  white-space: nowrap;
}
.game-logo-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font:
    700 11px/1.3 system-ui,
    sans-serif;
  letter-spacing: 7px;
  color: var(--gold);
}
.game-logo-subtitle:before,
.game-logo-subtitle:after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-aged));
}
.game-logo-subtitle:after {
  transform: rotate(180deg);
}
.hero h1 {
  font-size: clamp(32px, 3.4vw, 47px);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero .intro {
  max-width: 470px;
  font-size: 15px;
  color: #c4d0cd;
  line-height: 1.8;
}
.hero-actions {
  margin: 28px 0 24px;
}
button {
  position: relative;
  border-radius: 4px;
  border-color: #d5b78265;
  background: linear-gradient(145deg, #ffffff05, #ffffff00);
  box-shadow:
    inset 0 1px 0 #ffffff08,
    0 3px 0 #0003;
  transition:
    transform 0.24s var(--ease-out),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
button.primary {
  background: linear-gradient(115deg, #edc886, #f7dc9f 55%, #dbb071);
  border-color: #ffe0a5;
  box-shadow:
    inset 0 1px 0 #fff8,
    0 3px 0 #8b6237,
    0 10px 28px #0004;
  color: #262016;
  overflow: hidden;
}
button.primary:before {
  content: "";
  position: absolute;
  inset: -50% auto -50% -50%;
  width: 28%;
  background: linear-gradient(90deg, transparent, #fff8, transparent);
  transform: skewX(-20deg) translateX(-200%);
  transition: transform 0.65s var(--ease-out);
  pointer-events: none;
}
button.primary:hover:not(:disabled):before,
button.primary:focus-visible:before {
  transform: skewX(-20deg) translateX(800%);
}
button.primary:hover:not(:disabled) {
  background: linear-gradient(115deg, #f9da9c, #ffe7b6 55%, #edc886);
  box-shadow:
    inset 0 1px 0 #fff9,
    0 4px 0 #8b6237,
    0 12px 30px #c99a3822;
  transform: translateY(-2px);
}
button:active:not(:disabled),
button.primary:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    inset 0 1px 0 #ffffff10,
    0 1px 0 #0005;
}
button.quiet {
  box-shadow: none;
  background: transparent;
}
button:hover:not(:disabled) {
  border-color: #e9c78b;
}
button:disabled {
  box-shadow: none;
}
:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 5px;
}
.chips {
  gap: 10px;
}
.chips span {
  border: 1px solid #e9c78b1c;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 10px;
  background: #07131b55;
}
.route {
  position: relative;
  gap: 16px;
  margin-top: 30px;
}
.route > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-bottom: 1px solid #d5b78235;
  padding: 8px 0;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.route > span:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.route i {
  color: var(--gold);
  opacity: 0.6;
}
.hero-art {
  height: 510px;
  perspective: 1100px;
  transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0);
  transition: transform 0.6s var(--ease-out);
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 10% -7% 0;
  background: radial-gradient(ellipse, #e2ba6e12, transparent 65%);
  pointer-events: none;
}
.hero-art .compass {
  color: transparent;
  background: url("/art/hunt-emblem.svg") center / 75% no-repeat;
  width: 430px;
  height: 430px;
  left: 10px;
  top: 0;
  opacity: 0.16;
  border: 1px dashed #d7b77888;
  transform: rotate(-12deg);
  animation: compass-breathe 8s ease-in-out infinite;
}
.hero-art .compass:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #d7b77866;
  border-radius: 50%;
}
.art-caption {
  position: absolute;
  left: 12px;
  top: -5px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
  border-left: 2px solid var(--red);
  padding-left: 12px;
  opacity: 0.85;
}
.art-caption small {
  display: block;
  letter-spacing: 1.5px;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}
.poster {
  top: 112px;
  width: 190px;
  filter: drop-shadow(0 20px 18px #000a);
}
.p1 {
  left: -5px;
  transform: rotate(-17deg);
}
.p2 {
  left: 132px;
  top: 60px;
  transform: rotate(4deg);
}
.p3 {
  left: 260px;
  top: 130px;
  transform: rotate(17deg);
}
.poster .wanted {
  padding: 10px;
  box-shadow:
    0 0 0 1px #edd8a5,
    inset 0 0 24px #78512d22;
  animation: poster-float 7s ease-in-out infinite;
}
.p1 .wanted {
  animation-delay: -2s;
}
.p3 .wanted {
  animation-delay: -4s;
}
.poster .wanted img {
  height: 202px;
}
.poster .wanted-label {
  font-size: 26px;
}
.poster .card-name {
  font-size: 16px;
}
.poster .card-foot {
  font-size: 8px;
}
.stamp {
  right: -16px;
  bottom: 45px;
  border: 4px double #e18a68;
  background: #8f392bef;
  box-shadow: 0 8px 25px #0005;
  padding: 17px 21px;
  border-radius: 48%;
  transform: rotate(-13deg);
}
.stamp:after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed #f1b39588;
  border-radius: inherit;
  pointer-events: none;
}
.voyage-ship {
  position: absolute;
  width: 145px;
  height: 100px;
  bottom: -3px;
  left: -30px;
  opacity: 0.36;
  pointer-events: none;
}
.coordinates {
  bottom: -20px;
  left: 130px;
  letter-spacing: 2px;
  font-size: 9px;
}
.home-bottom {
  position: relative;
  border-top-style: dashed;
  border-top-color: #cba66a50;
  padding-top: 28px;
  margin-top: 24px;
}
.home-bottom:before {
  content: "✦";
  color: var(--gold-aged);
  position: absolute;
  left: 50%;
  top: -14px;
  padding: 0 12px;
  background: #0a1e27;
}
.home-bottom .eyebrow {
  color: var(--red);
}
footer {
  border-top-color: #cba66a26;
}
.panel {
  position: relative;
  border: 1px solid #d8b77935;
  border-radius: 5px;
  background: linear-gradient(130deg, #153440ed, #0b202cef);
  box-shadow:
    inset 0 1px 0 #fff8d015,
    0 12px 35px #0002;
}
.panel:after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #d8b77910;
  border-radius: 2px;
  pointer-events: none;
}
.lobby > .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lobby > .eyebrow:before {
  content: "";
  background: url("/art/hunt-emblem.svg") center / contain no-repeat;
  width: 34px;
  height: 34px;
}
.lobby-grid .panel:first-child {
  border-top: 3px solid var(--gold-aged);
}
.lobby-grid .panel:last-child {
  border-top: 3px solid var(--red);
}
.crew-person {
  padding: 10px 12px;
  background: linear-gradient(90deg, #edc88608, transparent);
  border-left: 1px solid #e9c78b44;
  border-radius: 2px;
}
.crew-person.empty {
  border-left-style: dashed;
  background: transparent;
}
.avatar {
  border: 3px double #c5a26c;
  background: radial-gradient(circle, #b48b3e22, #071923);
  box-shadow: 0 0 0 4px #d5b78208;
}
.invitation {
  border-top: 1px dashed #cba66a50;
}
.invitation strong {
  color: var(--cream);
  font:
    700 40px Georgia,
    serif;
  letter-spacing: 8px;
  padding: 10px 0;
  text-shadow: 0 3px 0 #0005;
}
.invitation input {
  border-style: dashed;
  border-color: #cba66a66;
  color: var(--gold);
  font-size: 12px;
}
input,
select {
  border-radius: 3px;
  background: #061720bb;
  border-color: #cba66a50;
  box-shadow: inset 0 3px 8px #0003;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px #90dbcf0c;
}
.game-heading h1 {
  text-shadow: 0 3px 0 #0004;
}
.game > .crew {
  gap: 24px;
  border-bottom: none;
}
.game > .crew .crew-person {
  border: 1px solid #cba66a2a;
  background: #122b34aa;
  padding: 12px 18px;
}
.turn-banner {
  position: relative;
  border: 1px solid #90dbcf35;
  border-left: 4px solid var(--aqua);
  border-radius: 2px;
  background: linear-gradient(100deg, #265c5838, #0d2931bb);
  box-shadow: 0 4px 20px #0002;
  padding-right: 44px;
}
.turn-banner:after {
  content: "✦";
  position: absolute;
  right: 18px;
  color: var(--aqua);
  top: 50%;
  transform: translateY(-50%);
}
[data-visual-turn="mine"] .turn-banner {
  border-color: #edc88666;
  border-left-color: var(--gold);
  background: linear-gradient(100deg, #a17c352f, #172b2c);
  color: #ffdfaa;
}
[data-visual-turn="mine"] .turn-banner:after {
  color: var(--gold);
}
[data-visual-scene="selection"] .board {
  padding: 17px;
  border: 1px dashed #cba66a40;
  background: #00000018;
  border-radius: 4px;
}
[data-visual-scene="selection"] .action-panel {
  border-top: 3px solid var(--red);
}
.board {
  gap: 17px;
  perspective: 1000px;
}
.wanted {
  background:
    radial-gradient(ellipse at 30% 0, #fff3d9, transparent 65%),
    repeating-linear-gradient(0deg, #74532e05 0 1px, transparent 1px 4px),
    linear-gradient(115deg, #e2cda5, #f1e2c0 48%, #d9bf92);
  border: 1px solid #d5b57e;
  border-radius: 2px;
  box-shadow:
    inset 0 0 13px #63431f15,
    0 3px 0 #7e603a,
    0 7px 13px #0006;
  padding: 8px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.25s,
    box-shadow 0.25s;
}
.wanted-label {
  font-family: Georgia, serif;
  font-weight: 900;
  letter-spacing: 1.7px;
  color: #372b1c;
  text-shadow: 0 1px 0 #fff6;
}
.wanted img {
  border: 1px solid #785f3b;
  box-shadow: 0 0 0 2px #6c4d2420;
}
.card-name {
  color: #342919;
  text-align: center;
  padding: 4px 0;
}
.card-foot {
  color: #51412c;
  border-top: 1px solid #78582b45;
  padding-top: 5px;
  width: 100%;
  text-align: center;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
button.wanted:hover:not(:disabled) {
  background: radial-gradient(ellipse at top, #fff4d9, #e7cfa5);
  transform: perspective(800px) translateY(-5px) rotateX(3deg) rotateZ(-1deg);
  box-shadow:
    inset 0 0 15px #fff2,
    0 3px 0 #987744,
    0 13px 20px #0007;
  border-color: #ffe1a6;
}
.wanted.picked {
  outline: 2px solid var(--aqua);
  outline-offset: 5px;
  box-shadow:
    0 3px 0 #5d877c,
    0 0 24px #90dbcf33;
  transform: translateY(-6px);
}
.wanted.discarded {
  opacity: 0.53;
  filter: grayscale(0.9);
  transform: perspective(700px) rotateX(5deg) scale(0.94);
  box-shadow:
    0 1px 0 #534c40,
    inset 0 0 30px #21180f44;
}
.wanted.discarded:after {
  content: "✕";
  top: 29%;
  font-size: 48px;
  color: #fff4de;
  text-shadow: 0 2px 4px #21170c;
  transform: rotate(-9deg);
}
.wanted.discarded .wanted-label {
  text-decoration: line-through;
}
.board-toolbar strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 16px;
}
.board-toolbar [data-action="guess-mode"] {
  border-color: #c2614877;
}
.board-toolbar [data-action="guess-mode"].active {
  background: #a44a3533;
  border-color: #ee9d75;
}
.question {
  background: #04172255;
  border-color: #d0b38035;
  border-left-width: 2px;
}
.question:hover:not(:disabled) {
  border-left-color: var(--gold);
  background: #ecc9860d;
}
.secret-mini {
  border-bottom: 1px dashed #d8b77935;
  padding-bottom: 15px;
}
.secret-mini img {
  border: 1px solid #e9c78b;
  box-shadow: 0 3px 12px #0006;
  border-radius: 2px;
}
.history li {
  position: relative;
  border-bottom-style: dashed;
  border-bottom-color: #d8b77926;
  padding-left: 12px;
  border-left: 1px solid #d8b77944;
}
.history li:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold-aged);
  border-radius: 50%;
  position: absolute;
  top: 21px;
  left: -3px;
}
.history b {
  color: var(--cream);
  background: #90dbcf12;
  border: 1px solid #90dbcf33;
  border-radius: 2px;
  font-size: 11px;
}
.result {
  position: relative;
  padding: 10px 0 30px;
  animation: none;
  isolation: isolate;
}
.result:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px -5% 0;
  background: radial-gradient(ellipse at 50% 15%, #d6a84e20, transparent 55%);
  pointer-events: none;
}
.victory-seal {
  width: 105px;
  height: 105px;
  margin: 0 auto 26px;
  border: 4px double var(--gold-aged);
  border-radius: 50%;
  background: #c69b4712;
  display: grid;
  place-items: center;
  font-size: 55px;
  box-shadow: 0 0 0 8px #d6ad6410;
}
.result h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  text-shadow: 0 3px 0 #0005;
}
.reveal {
  gap: 48px;
}
.reveal > div:first-child .wanted {
  transform: rotate(-4deg);
}
.reveal > div:last-child .wanted {
  transform: rotate(4deg);
}
.reveal > div p {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.6px;
}
.result .eyebrow {
  border-bottom: 1px dashed #cba66a44;
  padding-bottom: 18px;
  max-width: 430px;
  margin: 0 auto 24px;
}
.result[data-outcome="defeat"]:before {
  background: radial-gradient(ellipse at 50% 15%, #b94f3b24, transparent 55%);
}
.result[data-outcome="defeat"] .victory-seal {
  border-color: var(--red);
  color: #ecaf91;
}
dialog {
  border: 1px solid #d8b77977;
  border-top: 3px solid var(--gold-aged);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 100% 0, #c8a66312, transparent 70%),
    linear-gradient(145deg, #16313e, #081d29);
  box-shadow:
    0 20px 120px #000b,
    inset 0 0 0 6px #0000001a;
  padding-top: 43px;
}
dialog:before {
  content: "";
  position: absolute;
  top: 12px;
  left: 25px;
  width: 33px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--red) 0 30%,
    transparent 30% 40%,
    var(--gold-aged) 40% 70%,
    transparent 70% 80%,
    var(--gold-aged) 80%
  );
}
dialog::backdrop {
  background: #020b13c9;
  backdrop-filter: blur(7px);
}
#notice {
  border-color: #cba66a66;
  border-left: 3px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(115deg, #1b3540f7, #0c2531f7);
  color: var(--cream);
  box-shadow: 0 6px 30px #0006;
}
@keyframes sea-drift {
  from {
    transform: translate3d(-1%, 0, 0);
  }
  to {
    transform: translate3d(1%, -12px, 0);
  }
}
@keyframes atmosphere {
  from {
    opacity: 0.4;
    transform: translate3d(-3%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(3%, 4%, 0);
  }
}
@keyframes dust-drift {
  from {
    transform: translate3d(0, 6px, 0);
    opacity: 0.25;
  }
  to {
    transform: translate3d(0, -12px, 0);
    opacity: 0.5;
  }
}
@keyframes poster-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(0);
  }
  50% {
    transform: translateY(-8px) rotateZ(0.8deg);
  }
}
@keyframes compass-breathe {
  0%,
  100% {
    opacity: 0.14;
  }
  50% {
    opacity: 0.22;
  }
}
@media (hover: none) {
  button.wanted:hover:not(:disabled) {
    transform: none;
  }
}

@media (max-width: 700px) {
  header {
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
    padding-left: 42px;
    white-space: nowrap;
  }
  .brand:before {
    width: 35px;
    height: 35px;
    top: 0;
  }
  .brand span {
    letter-spacing: 3px;
    font-size: 8px;
  }
  .tools {
    max-width: 170px;
  }
  .tools button {
    font-size: 10px;
    padding: 8px 5px;
  }
  #connection {
    border: none;
    background: none;
    padding: 0 5px;
    font-size: 9px;
  }
  main {
    padding-top: 26px;
  }
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    gap: 8px;
    margin-bottom: 24px;
  }
  .game-logo {
    gap: 8px;
    margin-bottom: 22px;
  }
  .game-logo img {
    width: 58px;
    height: 58px;
  }
  .game-logo-title {
    font-size: clamp(38px, 9.8vw, 60px);
    letter-spacing: -1px;
  }
  .game-logo-subtitle {
    font-size: 9px;
    letter-spacing: 4px;
    gap: 8px;
    margin-top: 8px;
  }
  .game-logo-subtitle:before,
  .game-logo-subtitle:after {
    width: 20px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero .intro {
    font-size: 14px;
  }
  .hero-actions {
    gap: 9px;
  }
  .hero .hero-actions button {
    padding: 15px 16px;
    font-size: 13px;
  }
  .hero-actions button span {
    margin-left: 14px;
  }
  .chips {
    gap: 6px;
  }
  .chips span {
    font-size: 9px;
    padding: 4px 6px;
  }
  .route {
    margin-top: 22px;
    font-size: 11px;
    gap: 16px;
  }
  .hero-art {
    height: 355px;
    width: 320px;
    margin: 25px auto 0;
    transform: none;
  }
  .art-caption {
    left: 0;
    top: -3px;
    font-size: 8px;
  }
  .art-caption small {
    font-size: 7px;
  }
  .hero-art .compass {
    width: 300px;
    height: 300px;
    left: 0;
    top: 10px;
  }
  .poster {
    width: 134px;
    top: 100px;
  }
  .p1 {
    left: 3px;
  }
  .p2 {
    left: 89px;
    top: 57px;
  }
  .p3 {
    left: 169px;
    top: 110px;
  }
  .poster .wanted {
    padding: 7px;
  }
  .poster .wanted img {
    height: 138px;
  }
  .poster .wanted-label {
    font-size: 20px;
  }
  .poster .card-name {
    font-size: 13px;
  }
  .poster .card-foot {
    font-size: 6px;
  }
  .stamp {
    right: 0;
    bottom: 14px;
    padding: 12px 17px;
    font-size: 9px;
  }
  .stamp b {
    font-size: 15px;
  }
  .voyage-ship {
    width: 100px;
    height: 70px;
    bottom: 0;
    left: -2px;
  }
  .coordinates {
    left: 107px;
    bottom: -24px;
    font-size: 7px;
    letter-spacing: 1.4px;
  }
  .home-bottom {
    margin-top: 38px;
  }
  .home-bottom h2 {
    font-size: 24px;
  }
  .lobby h1 {
    font-size: 40px;
  }
  .game > .crew {
    gap: 10px;
  }
  .game > .crew .crew-person {
    padding: 9px;
    min-width: 125px;
    gap: 9px;
  }
  .game > .crew .avatar {
    width: 31px;
    height: 31px;
    font-size: 15px;
    border-width: 1px;
  }
  .crew-person small {
    font-size: 10px;
  }
  .turn-banner {
    font-size: 12px;
    padding: 12px 31px 12px 13px;
  }
  .turn-banner:after {
    right: 11px;
  }
  .board {
    gap: 12px;
  }
  [data-visual-scene="selection"] .board {
    padding: 10px;
    gap: 10px;
  }
  .wanted {
    padding: 6px;
  }
  .wanted-label {
    font-size: 17px;
  }
  .wanted img {
    height: 109px;
  }
  .card-name {
    font-size: 12px;
  }
  .card-foot {
    font-size: 6px;
    letter-spacing: 0.2px;
  }
  .board-toolbar strong {
    font-size: 14px;
  }
  .board-toolbar button {
    padding: 10px 7px;
    font-size: 10px;
  }
  .secret-mini {
    padding-bottom: 10px;
  }
  .action-panel.compact {
    padding: 15px;
  }
  .reveal {
    gap: 22px;
  }
  .reveal > div {
    width: min(40vw, 160px);
  }
  .reveal .wanted img {
    height: 140px;
  }
  .result h1 {
    font-size: 36px;
  }
  .result .intro {
    font-size: 14px;
  }
  .victory-seal {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }
  dialog {
    padding: 40px 22px 26px;
  }
}
@media (max-width: 370px) {
  .brand {
    font-size: 14px;
    padding-left: 35px;
  }
  .brand:before {
    width: 30px;
    height: 30px;
  }
  .brand span {
    font-size: 7px;
  }
  .tools {
    max-width: 146px;
  }
  .hero-art {
    width: 290px;
  }
  .poster {
    width: 124px;
  }
  .p2 {
    left: 80px;
  }
  .p3 {
    left: 157px;
  }
  .poster .wanted img {
    height: 125px;
  }
  .game-logo img {
    width: 48px;
    height: 48px;
  }
  .game-logo-title {
    font-size: 38px;
  }
  .board-toolbar {
    gap: 8px;
  }
  .board-toolbar button {
    font-size: 9px;
    padding: 10px 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .hero-art {
    transform: none !important;
  }
}
@media (prefers-contrast: more) {
  .panel,
  button,
  .crew-person,
  .turn-banner {
    border-color: var(--gold);
  }
  .muted,
  .intro,
  .crew-person small {
    color: var(--cream);
  }
}
.victory-sparks {
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 115px;
  z-index: -1;
}
.victory-sparks i {
  position: absolute;
  width: 4px;
  height: 12px;
  background: var(--gold);
  opacity: 0;
  animation: reward-spark 0.85s 0.1s ease-out both;
}
@keyframes reward-spark {
  0% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(-45px) scale(0.2);
  }
  25% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--spark-angle)) translateY(-190px) scale(0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .victory-sparks {
    display: none;
  }
}
/* Keep chart contrast below the content layer. */
.atlas {
  background: none;
}
.atlas:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/art/nautical-chart.svg") center top / max(1440px, 100vw)
    auto no-repeat;
  opacity: 0.55;
}
/* Real tablet dimensions: framing must also work with motion disabled. */
@media (max-width: 1150px) and (min-width: 701px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hero-art {
    width: 320px;
    max-width: 100%;
    height: 430px;
    margin-right: 0;
    transform: none;
  }
  .hero-art .compass {
    width: 310px;
    height: 310px;
    top: 35px;
    left: 0;
  }
  .poster {
    width: 140px;
    top: 120px;
  }
  .p1 {
    left: 0;
  }
  .p2 {
    left: 90px;
    top: 75px;
  }
  .p3 {
    left: 175px;
    top: 135px;
  }
  .poster .wanted {
    padding: 7px;
  }
  .poster .wanted img {
    height: 155px;
  }
  .poster .wanted-label {
    font-size: 22px;
  }
  .poster .card-name {
    font-size: 14px;
  }
  .poster .card-foot {
    font-size: 6px;
  }
  .stamp {
    right: 0;
    bottom: 30px;
    padding: 13px 18px;
  }
  .coordinates {
    left: 90px;
    font-size: 7px;
  }
  .voyage-ship {
    width: 110px;
    left: -5px;
  }
  .art-caption {
    font-size: 8px;
  }
}
@media (max-width: 370px) {
  .p3 {
    left: 143px;
  }
}
@media (max-width: 1150px) and (min-width: 701px) {
  .p3 {
    left: 155px;
  }
}
.hero-art .compass {
  font-size: 0;
}
@media (max-width: 700px) {
  .hero-art .compass {
    width: 260px;
    height: 260px;
    left: 15px;
    top: 35px;
  }
}
.hero-art:before {
  inset: 10% 0 0;
}
@media (max-width: 1150px) and (min-width: 701px) {
  .hero {
    gap: 12px;
  }
}

/* Bounty edition: ragged parchment, engraved rules, ornamental portrait frame. */
.wanted {
  background: #eed5ac url("/art/wanted-paper.svg") center / 100% 100% no-repeat;
  border: 0;
  padding: 15px 10px 13px;
  clip-path: polygon(
    2% 1%,
    12% 0.5%,
    13% 2%,
    15% 0.5%,
    41% 0.7%,
    42% 1.8%,
    44% 0.5%,
    70% 0.8%,
    71% 2%,
    73% 0.7%,
    98% 1%,
    99% 10%,
    97% 11%,
    99% 12%,
    98.5% 35%,
    97% 36%,
    99% 37%,
    98.8% 65%,
    97% 66%,
    99% 67%,
    98% 99%,
    81% 99.5%,
    80% 98%,
    78% 99.5%,
    53% 99%,
    52% 98%,
    50% 99.5%,
    23% 99%,
    22% 98%,
    20% 99.5%,
    1% 99%,
    0.5% 88%,
    2% 87%,
    0.5% 86%,
    1% 60%,
    2.5% 59%,
    0.5% 58%,
    1% 31%,
    2.5% 30%,
    0.5% 29%
  );
  box-shadow: inset 0 0 18px #71401725;
  gap: 5px;
}
.wanted-label {
  position: relative;
  width: 100%;
  padding-top: 6px;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: #352315;
}
.wanted img {
  width: calc(100% - 10px);
  border: 3px double #62432b;
  border-radius: 12px 2px 12px 2px;
  outline: 1px solid #62432b;
  outline-offset: 2px;
  margin: 4px 5px;
  box-shadow: inset 0 0 10px #513b27;
}
.card-name {
  position: relative;
  width: calc(100% - 10px);
  margin: 3px 5px 0;
  padding: 7px 0 5px;
  border-top: 1px solid #70503480;
  font-size: 14px;
  min-height: 39px;
  text-transform: uppercase;
  letter-spacing: -0.15px;
  line-height: 1.15;
}
.card-name:before {
  content: "✦";
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  padding: 0 5px;
  background: #efd7ac;
  font:
    11px Georgia,
    serif;
  color: #67462b;
}
.card-foot {
  border-top: 0;
  font-size: 0 !important;
  padding-top: 2px;
  min-height: 12px;
}
.card-foot:after {
  content: none;
  font:
    700 7px/1.2 Georgia,
    serif;
  color: #513b27;
  letter-spacing: 1px;
}
.wanted.discarded .card-foot:after {
  content: "DESCARTADO";
  letter-spacing: 0.7px;
}
button.wanted:hover:not(:disabled) {
  background: #f6dfb9 url("/art/wanted-paper.svg") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 18px #71401718;
}
.wanted.picked {
  outline: none;
  box-shadow:
    inset 0 0 0 4px #90dbcf,
    inset 0 0 20px #90dbcf88;
}
.wanted.picked img {
  outline-color: #367f76;
}
.poster .wanted {
  padding: 19px 12px 15px;
  box-shadow: inset 0 0 22px #71401725;
}
.poster .wanted-label {
  font-size: 30px;
}
.poster .card-name {
  font-size: 15px;
  min-height: 40px;
}
.poster .card-foot:after {
  font-size: 7px;
}
.wanted:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 4px var(--aqua);
}
@media (max-width: 1150px) and (min-width: 701px) {
  .poster .wanted {
    padding: 16px 8px 13px;
  }
  .poster .wanted-label {
    font-size: 24px;
  }
  .poster .card-name {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .wanted {
    padding: 13px 6px 12px;
  }
  .wanted-label {
    font-size: 19px;
    padding-top: 3px;
  }
  .wanted img {
    width: calc(100% - 8px);
    margin: 3px 4px;
    border-width: 2px;
    border-radius: 9px 1px 9px 1px;
  }
  .card-name {
    font-size: 11px;
    padding-top: 6px;
    min-height: 37px;
  }
  .card-foot:after {
    font-size: 5.5px;
    letter-spacing: 0.45px;
  }
  .poster .wanted {
    padding: 16px 8px 13px;
  }
  .poster .wanted-label {
    font-size: 24px;
  }
  .poster .card-name {
    font-size: 12px;
  }
  .poster .card-foot:after {
    font-size: 6px;
  }
}
@media (prefers-contrast: more) {
  .wanted:focus-visible,
  .wanted.picked {
    box-shadow: inset 0 0 0 5px #13695e;
  }
}
/* A lit ember and two light wisps; motion remains decorative. */
.emblem-portrait {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.emblem-smoke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.emblem-smoke .smoke-wisp {
  fill: none;
  stroke: #e0e8e0;
  stroke-width: 2.1px;
  stroke-linecap: round;
  opacity: 0;
  animation: cigarette-wisp 3.6s ease-out infinite;
}
.emblem-smoke .smoke-wisp-second {
  stroke-width: 1.5px;
  animation-delay: -1.8s;
}
.brand > .brand-smoke {
  width: 47px;
  height: 47px;
  left: 0;
  top: -5px;
}
@keyframes cigarette-wisp {
  0% {
    opacity: 0;
    transform: translate(0, 3px) scale(1);
  }
  25% {
    opacity: 0.65;
  }
  65% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: translate(3px, -10px) scale(1.02);
  }
}
@media (max-width: 700px) {
  .brand > .brand-smoke {
    width: 35px;
    height: 35px;
    top: 0;
  }
}
@media (max-width: 370px) {
  .brand > .brand-smoke {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .emblem-smoke {
    display: none;
  }
}

/* Two ways to duel, one crew and one board. */
.mode-picker {
  padding: 0;
  margin: 20px 0;
  border: 0;
  min-width: 0;
}
.mode-picker legend {
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}
.mode-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #d8b77935;
  border-radius: 4px;
  background: #06172088;
  cursor: pointer;
  margin: 9px 0;
}
.mode-option input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--gold);
  box-shadow: none;
}
.mode-option strong {
  display: inline;
  font-size: 14px;
}
.mode-option small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.mode-option .recommended {
  display: inline-block;
  margin: 0 0 0 7px;
  color: var(--aqua);
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 700;
}
.mode-option:has(input:checked) {
  border-color: var(--gold);
  background: #edc8860c;
}
.mode-option:focus-within {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #90dbcf35;
  border-left: 3px solid var(--aqua);
  background: #90dbcf08;
  border-radius: 4px;
  margin: 20px 0;
}
.callout > span {
  font-size: 25px;
  flex-shrink: 0;
}
.callout strong {
  font-family: Georgia, serif;
  font-size: 17px;
}
.callout p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.callout[hidden] {
  display: none;
}
dialog .callout {
  padding: 12px;
}
dialog .callout strong {
  font-size: 14px;
}
dialog .callout p {
  font-size: 11px;
}
.mode-badge {
  display: inline-block;
  width: fit-content;
  border: 1px solid #d5b78244;
  background: #edc8860a;
  border-radius: 3px;
  padding: 4px 10px;
  color: var(--gold);
  font:
    650 11px/1.5 system-ui,
    sans-serif;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}
.game-heading .mode-badge {
  margin: 0 0 0 12px;
  font-size: 9px;
  vertical-align: middle;
}
.crew-person.is-active {
  border-color: #edc88688 !important;
  background: linear-gradient(90deg, #edc88618, #122b34aa) !important;
}
.captain-turn {
  display: block;
  width: fit-content;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 750;
}
.turn-banner strong {
  font-size: 14px;
}
.turn-banner > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.voice-layout {
  grid-template-columns: minmax(0, 1fr) 230px;
}
.voice-companion {
  padding: 20px;
}
.voice-companion .voice-coaching h2 {
  font-size: 24px;
  line-height: 1.2;
}
.voice-coaching p {
  color: var(--muted);
  font-size: 13px;
}
.voice-reminder {
  color: var(--gold);
  font-size: 11px;
}
.board-controls {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.voice-toolbar {
  padding: 12px;
  border: 1px solid #d8b77935;
  background: #0b202def;
  border-radius: 4px;
}
.voice-toolbar > strong {
  font-size: 13px;
}
.voice-toolbar button {
  font-size: 11px;
}
.turn-cinematic {
  position: fixed;
  top: min(26vh, 210px);
  left: 50%;
  width: min(530px, calc(100vw - 32px));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 28px;
  border: 1px solid #edc88699;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  color: var(--cream);
  background: linear-gradient(115deg, #102934f5, #071721f7);
  box-shadow:
    0 12px 70px #0009,
    0 0 60px #edc88618;
  pointer-events: none;
  animation: initiative-arrive 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
  overflow: hidden;
}
.turn-cinematic:after {
  content: "";
  position: absolute;
  inset: -50% auto -50% -50%;
  width: 30%;
  background: linear-gradient(90deg, transparent, #edc88625, transparent);
  transform: skewX(-18deg);
  animation: initiative-flash 0.8s 0.05s ease-out both;
  pointer-events: none;
}
.turn-cinematic img {
  flex-shrink: 0;
  animation: initiative-seal 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.turn-cinematic small {
  display: block;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.turn-cinematic strong {
  display: block;
  font:
    700 clamp(17px, 2.1vw, 25px)/1.15 Georgia,
    serif;
  color: #ffe1a5;
}
.turn-cinematic span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
  margin-top: 8px;
  animation: initiative-caption 0.3s 0.3s both;
}
.turn-cinematic.initiative-rival {
  border-color: #c2614888;
  border-left-color: var(--red);
}
.turn-cinematic.initiative-rival strong {
  color: #f0bca3;
}
@keyframes initiative-arrive {
  0% {
    opacity: 0;
    translate: 0 12px;
    scale: 0.97;
  }
  18%,
  75% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  100% {
    opacity: 0;
    translate: 0 -8px;
    scale: 1;
  }
}
@keyframes initiative-flash {
  from {
    translate: -100% 0;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    translate: 650% 0;
    opacity: 0;
  }
}
@keyframes initiative-seal {
  from {
    transform: rotate(-15deg) scale(1.3);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}
@keyframes initiative-caption {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .voice-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
  }
}
@media (max-width: 700px) {
  .mode-option .recommended {
    display: block;
    margin: 3px 0 0;
  }
  .callout {
    padding: 13px;
    gap: 10px;
  }
  .callout strong {
    font-size: 15px;
  }
  .callout p {
    font-size: 11px;
  }
  .game-heading .eyebrow {
    line-height: 2;
  }
  .game-heading .mode-badge {
    display: block;
    margin: 4px 0 0;
    width: fit-content;
    font-size: 8px;
  }
  .turn-banner strong {
    font-size: 12px;
  }
  .turn-banner > span {
    font-size: 11px;
  }
  .voice-companion {
    padding: 14px 16px;
  }
  .voice-companion > .eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }
  .voice-companion .secret-mini {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .voice-companion .voice-coaching {
    display: none;
  }
  .voice-toolbar {
    position: sticky;
    top: 8px;
    z-index: 6;
    backdrop-filter: blur(8px);
    padding: 10px;
  }
  .voice-toolbar > strong {
    font-size: 12px;
  }
  .voice-toolbar .board-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .voice-toolbar .board-controls [data-action="end-turn"] {
    grid-column: 1/-1;
    font-size: 13px;
    padding: 12px;
  }
  .turn-cinematic {
    padding: 17px 18px;
    gap: 12px;
    top: 22vh;
  }
  .turn-cinematic img {
    width: 48px;
    height: 48px;
  }
  .turn-cinematic small {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .turn-cinematic span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .captain-turn {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .turn-cinematic {
    display: none;
    animation: none;
  }
}
.win-fireworks {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}
.win-fireworks i {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  color: #ecc986;
}
footer .developer-credit {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--gold);
  text-decoration: none;
  text-underline-offset: 4px;
}
footer .developer-credit:hover {
  text-decoration: underline;
}
footer .developer-credit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
