/* Hotelskind — steamer-trunk register
   hide #C8955C · saddle #E3C497 · lining #F5EAD6 · trim #1F4A36 · trim-deep #13301F
   brass #B8913A · brass-hi #E8CC85 · brass-lo #6E5019 · ink #2B1D12 · thread #F6E2BA · oxide #9C3B22 */

:root {
  --hide: #c8955c;
  --hide-dark: #a8743f;
  --saddle: #e3c497;
  --lining: #f5ead6;
  --lining-2: #efdfc3;
  --trim: #1f4a36;
  --trim-deep: #13301f;
  --brass: #b8913a;
  --brass-hi: #e8cc85;
  --brass-lo: #6e5019;
  --ink: #2b1d12;
  --ink-soft: #5b4431;
  --thread: #f6e2ba;
  --oxide: #9c3b22;
  --display: "Bevan", Georgia, serif;
  --body: "Sarabun", "Trebuchet MS", sans-serif;
  --wrap: 1180px;
  --gut: 22px;
  --r: 10px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25  0 0 0 0 .15  0 0 0 0 .05  0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lining) var(--grain);
  color: var(--ink);
  font: 400 17px/1.62 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--trim); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxide); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--thread); padding: 8px 12px; }

/* ---------- signature: brass corner rivets ---------- */
.rivets { position: relative; }
.rivets::before, .rivets::after,
.rivets > .rv::before, .rivets > .rv::after {
  content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff5d6 0 12%, var(--brass-hi) 24%, var(--brass) 52%, var(--brass-lo) 88%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 2px 3px rgba(43,29,18,.45), inset 0 -1px 1px rgba(0,0,0,.3);
  z-index: 2; pointer-events: none;
}
.rivets::before { top: 11px; left: 11px; }
.rivets::after { top: 11px; right: 11px; }
.rivets > .rv::before { bottom: 11px; left: 11px; }
.rivets > .rv::after { bottom: 11px; right: 11px; }
.rv { position: static; }

/* ---------- signature: luggage tag ---------- */
.tag {
  --tag-bg: var(--saddle);
  display: inline-flex; align-items: center; gap: .5em;
  position: relative;
  padding: .32em .95em .32em 1.55em;
  background: var(--tag-bg);
  color: var(--ink);
  font: 600 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  transform-origin: 0 50%;
}
.tag::before {
  content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--lining); box-shadow: inset 0 0 0 1.5px var(--brass-lo);
}
.tag--green { --tag-bg: var(--trim); color: var(--thread); }
.tag--brass { --tag-bg: var(--brass-hi); }
.tag--swing { animation: swing 5s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-4deg); } 16% { transform: rotate(2.5deg); } 24% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .tag--swing { animation: none; } }

/* ---------- signature: stitched-leather divider ---------- */
.stitch {
  height: 18px; border: 0; margin: 0;
  background:
    linear-gradient(var(--hide-dark), var(--hide-dark)) top / 100% 2px no-repeat,
    linear-gradient(var(--hide-dark), var(--hide-dark)) bottom / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--thread) 0 12px, transparent 12px 20px) center / 100% 2px no-repeat,
    var(--hide) var(--grain);
}
.stitch--green {
  background:
    repeating-linear-gradient(90deg, var(--thread) 0 12px, transparent 12px 20px) center / 100% 2px no-repeat,
    var(--trim) var(--grain);
}

/* ---------- header ---------- */
.site-head { background: var(--hide) var(--grain); border-bottom: 5px solid var(--trim); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-plate {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .02em;
  color: var(--lining); text-shadow: 0 1px 0 var(--brass-lo), 0 -1px 0 rgba(255,255,255,.25);
  background: var(--trim); padding: 6px 16px 7px; border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--trim-deep), inset 0 0 0 4px rgba(246,226,186,.35);
}
.brand-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); line-height: 1.25; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { background: rgba(31,74,54,.12); color: var(--trim-deep); }
.nav a[aria-current="page"] { background: var(--trim); color: var(--thread); }
.age-chip {
  font-weight: 700; font-size: .82rem; color: var(--thread); background: var(--oxide);
  border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 2px rgba(246,226,186,.5);
}

/* mobile nav: an always-visible strap of tags that scrolls sideways */
@media (max-width: 860px) {
  .head-row { flex-wrap: wrap; min-height: 0; padding: 14px 0 0; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--gut)); margin: 0 calc(-1 * var(--gut));
    padding: 10px var(--gut); gap: 8px; overflow-x: auto; scrollbar-width: none;
    background: var(--trim); -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: none; color: var(--ink); background: var(--saddle); border-radius: 0;
    padding: 7px 12px 7px 22px; font-size: .88rem;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  }
  .nav a[aria-current="page"] { background: var(--brass-hi); color: var(--ink); }
  .site-head { border-bottom: 0; }
  .brand-sub { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 54px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.hero-copy .lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 34em; }
.hero-copy .tag { margin-bottom: 18px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-facts li { display: flex; gap: 12px; align-items: baseline; }
.hero-facts b { font-family: var(--display); color: var(--trim); font-weight: 400; min-width: 3.2em; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-img {
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(43, 29, 18, .22);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); padding: 13px 22px; border-radius: 8px; border: 0; cursor: pointer;
  text-decoration: none; background: var(--trim); color: var(--thread);
  box-shadow: inset 0 0 0 2px var(--trim-deep), inset 0 0 0 4px rgba(246,226,186,.28), 0 3px 0 var(--trim-deep);
}
.btn:hover { background: var(--trim-deep); color: var(--thread); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--trim-deep), 0 1px 0 var(--trim-deep); }
.btn--brass { background: var(--brass-hi); color: var(--ink); box-shadow: inset 0 0 0 2px var(--brass-lo), 0 3px 0 var(--brass-lo); }
.btn--brass:hover { background: var(--brass); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink-soft); }
.btn--ghost:hover { background: rgba(43,29,18,.07); color: var(--ink); }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-age { margin-top: 22px; font-size: .92rem; color: var(--ink-soft); border-left: 4px solid var(--oxide); padding-left: 12px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- trust strip ---------- */
.trust { background: var(--trim) var(--grain); color: var(--thread); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { padding: 26px 20px; border-left: 2px dashed rgba(246,226,186,.35); }
.trust-item:first-child { border-left: 0; }
.trust-item h3 { color: var(--brass-hi); font-size: 1.02rem; margin-bottom: .35em; }
.trust-item p { margin: 0; font-size: .93rem; opacity: .92; }
@media (max-width: 860px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 2px dashed rgba(246,226,186,.35); }
}
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; }
  .trust-item + .trust-item { border-top: 2px dashed rgba(246,226,186,.35); }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--hide { background: var(--saddle) var(--grain); }
.section-head { max-width: 40em; margin-bottom: 30px; }
.section-head .tag { margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--lining); border-radius: var(--r); padding: 36px 30px 30px;
  box-shadow: 0 0 0 1px rgba(110,80,25,.25), 0 10px 22px -14px rgba(43,29,18,.55);
}
.card--hide { background: var(--hide) var(--grain); color: var(--ink); }
.card--green { background: var(--trim) var(--grain); color: var(--thread); }
.card--green h3 { color: var(--brass-hi); }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* Page title band */
.page-top { padding: 52px 0 40px; background: var(--saddle) var(--grain); }
.page-top p { max-width: 40em; font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.page-top .tag { margin-bottom: 16px; }

/* Prose pages */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose .note {
  background: var(--lining-2); border-left: 5px solid var(--trim); padding: 16px 20px; border-radius: 0 8px 8px 0;
}

.faq { display: grid; gap: 16px; max-width: 52em; }
.faq-item { background: var(--lining); border-radius: var(--r); padding: 24px 26px; box-shadow: 0 0 0 1px rgba(110,80,25,.25); }
.faq-item h3 { font-family: var(--body); font-weight: 700; font-size: 1.08rem; color: var(--trim-deep); }
.faq-item p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--trim-deep) var(--grain); color: var(--thread); padding: 50px 0 26px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-foot a { color: var(--brass-hi); }
.site-foot a:hover { color: #fff; }
.foot-grid h2 { font-size: 1.05rem; color: var(--brass-hi); margin-bottom: .7em; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-age { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.foot-age .age-chip { width: 46px; height: 46px; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 2px dashed rgba(246,226,186,.3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .86rem; opacity: .85; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   THE STOWAWAY HAND — blackjack table inside an open trunk
   =================================================================== */
.trunk {
  background: var(--hide) var(--grain);
  border-radius: 14px; padding: 16px;
  box-shadow: inset 0 0 0 3px var(--hide-dark), 0 18px 34px -18px rgba(43,29,18,.7);
}
.trunk-lid {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 6px 30px 14px;
}
.trunk-title { font-family: var(--display); font-size: 1.3rem; color: var(--ink); margin: 0; }
.trunk-lining {
  background: radial-gradient(ellipse at 50% 35%, #2a5c45, var(--trim) 55%, var(--trim-deep)) ;
  border-radius: 10px; padding: 26px 22px 22px; color: var(--thread);
  box-shadow: inset 0 0 0 2px var(--trim-deep), inset 0 0 0 7px var(--trim), inset 0 0 0 9px transparent;
  outline: 2px dashed rgba(246,226,186,.4); outline-offset: -8px;
}
.seat { min-height: 172px; }
.seat + .seat { margin-top: 12px; }
.seat-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.seat-label .tag { font-size: .7rem; }
.score { font-family: var(--display); font-size: 1.05rem; color: var(--brass-hi); min-width: 2.5em; }
.hand { display: flex; flex-wrap: wrap; gap: 8px; min-height: 124px; }

.pcard { width: 84px; height: 120px; perspective: 700px; flex: none; }
.pcard-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.3,.6,.25,1.15);
}
.pcard.is-down .pcard-inner { transform: rotateY(180deg); }
.pcard.is-dealt { animation: slide-in .38s ease-out both; }
@keyframes slide-in { from { opacity: 0; transform: translate(-26px, -34px) rotate(-7deg); } to { opacity: 1; transform: none; } }
.pface, .pback {
  position: absolute; inset: 0; border-radius: 7px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pface {
  background: #fffaf0; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(43,29,18,.3), 0 4px 8px rgba(0,0,0,.35);
  padding: 6px 7px; display: flex; flex-direction: column; justify-content: space-between;
}
.pface.red { color: var(--oxide); }
.pc-corner { font: 700 1.05rem/1 var(--body); display: flex; flex-direction: column; align-items: flex-start; }
.pc-corner small { font-size: .95rem; line-height: 1; margin-top: 2px; }
.pc-corner.bottom { align-self: flex-end; transform: rotate(180deg); }
.pc-pip { text-align: center; font-size: 2.1rem; line-height: 1; }
.pback {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(246,226,186,.1) 0 6px, transparent 6px 12px),
    var(--hide-dark) var(--grain);
  box-shadow: 0 0 0 1px rgba(43,29,18,.4), inset 0 0 0 4px var(--hide), inset 0 0 0 5px var(--brass-lo), 0 4px 8px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
/* the brass clasp on the hole card, which unlatches on reveal */
.clasp {
  width: 30px; height: 40px; border-radius: 6px 6px 12px 12px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  box-shadow: inset 0 0 0 2px rgba(110,80,25,.6), 0 2px 3px rgba(0,0,0,.4);
  position: relative; transform-origin: 50% 0;
}
.clasp::after { content: ""; position: absolute; left: 50%; top: 58%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--brass-lo); }
.pcard.unlatching .clasp { animation: unlatch .32s ease-in forwards; }
@keyframes unlatch { to { transform: rotateX(70deg) translateY(-6px); opacity: .2; } }

.callout {
  min-height: 56px; margin: 14px 0 4px; display: flex; align-items: center; justify-content: center;
  text-align: center; font-family: var(--display); font-size: 1.2rem; color: var(--thread);
  border-top: 2px dashed rgba(246,226,186,.35); border-bottom: 2px dashed rgba(246,226,186,.35); padding: 8px;
}
.callout.win { color: var(--brass-hi); }
.callout.natural { color: #1b120a; background: linear-gradient(90deg, transparent, var(--brass-hi) 15%, var(--brass-hi) 85%, transparent); }
.callout.lose { color: #f0b3a0; }
.callout.push { color: var(--saddle); }
.callout.pop { animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

.trunk-controls { padding: 16px 12px 6px; }
.ledger { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ledger-cell {
  flex: 1 1 120px; background: var(--lining); border-radius: 8px; padding: 8px 14px;
  box-shadow: inset 0 0 0 1px rgba(110,80,25,.35);
}
.ledger-cell span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ledger-cell b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--trim-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chip {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  font: 700 .9rem/1 var(--body); color: var(--ink);
  background: radial-gradient(circle, var(--lining) 0 44%, transparent 45%), repeating-conic-gradient(var(--brass-hi) 0 20deg, var(--brass) 20deg 40deg);
  box-shadow: 0 0 0 2px var(--brass-lo), 0 3px 0 var(--brass-lo);
}
.chip:hover { filter: brightness(1.07); }
.chip:active { transform: translateY(2px); box-shadow: 0 0 0 2px var(--brass-lo), 0 1px 0 var(--brass-lo); }
.chip[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.chips .btn { padding: 10px 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 110px; }
.status-line { font-size: .92rem; color: var(--ink); margin: 12px 0 0; min-height: 1.5em; }
.status-line.warn { color: var(--oxide); font-weight: 600; }
.trunk-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; padding: 10px 12px 2px; color: var(--ink); }
.trunk-foot button { background: none; border: 0; padding: 0; font: 600 .86rem var(--body); color: var(--trim-deep); text-decoration: underline; cursor: pointer; }

@media (max-width: 560px) {
  .trunk { padding: 10px; }
  .trunk-lid { padding: 4px 26px 10px; }
  .trunk-lining { padding: 20px 12px 16px; }
  .pcard { width: 62px; height: 90px; }
  .pc-pip { font-size: 1.5rem; }
  .pc-corner { font-size: .9rem; }
  .hand { min-height: 94px; gap: 6px; }
  .seat { min-height: 136px; }
  .clasp { width: 22px; height: 30px; }
  .chip { width: 46px; height: 46px; }
}

/* rules panel */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rules .card h3 { color: var(--trim-deep); }
.rules dl { margin: 0; }
.rules dt { font-weight: 700; }
.rules dd { margin: 0 0 .6em; }
@media (max-width: 860px) { .rules { grid-template-columns: 1fr; } }
