/* Copyright (c) 2026 Ascent. All rights reserved. PRIVATE TABLE — https://poker.ascent-web.jp/terms */
/* /hands: the ranking poster inside the v2 reading pane (same sky, tall
 * glass, only the pane scrolls — see door.css), plus the poster-only #png
 * layout that tools/make-hands-png.sh screenshots for the shareable image.
 * The card pictures come from js/hands.js via the table's own cardEl, so
 * neither view can drift from the real deck. */

/* ---- rows -------------------------------------------------------------- */

.rank-quick { margin: 18px 0; }
.rank-quick h2 { font-size: 14px; font-weight: 500; }
.rank-quick ol { margin-top: 8px; padding-left: 28px; list-style: decimal; }
.rank-quick li { padding-left: 4px; color: var(--gold); font-size: 13px; line-height: 2; }
.hands-page .art a:not(.art-back):not(.btn):not(.art-cta-btn) {
  color: var(--gold);
  text-underline-offset: 3px;
}
.hands-page [id] { scroll-margin-top: 16px; }

.poster-head { display: none; }

.hand-list { display: grid; gap: 0; margin-top: 4px; }
.hand {
  display: flex;
  gap: 12px;
  padding: 16px 0 14px;
  border-top: 1px solid var(--line-soft);
}
.hand:first-child { border-top: 0; }
.hand-no {
  flex: none;
  width: 26px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}
.hand > div { min-width: 0; }
.hand-text { display: block; }
.hand-cards { display: flex; gap: 5px; --card-w: 44px; margin-bottom: 8px; }
.hand-ja { display: inline-block; font-size: 14.5px; font-weight: 500; }
.hand-en {
  margin-left: 8px;
  color: var(--ink-4);
  font-family: var(--font-display);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .18em;
}
.hand-note {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
}
.poster-foot { display: none; }

/* ---- save / share ------------------------------------------------------ */

.hands-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.poster-hint {
  min-height: 18px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 300;
  text-align: center;
}

/* ---- inline card runs (キッカーの例) ----------------------------------- */

.pips { color: var(--ink); font-family: var(--font-card); font-weight: 700; letter-spacing: .06em; }
.pips i { font-style: normal; }
.pips .r,
.pips.r { color: #ff7c86; }

/* ---- article blocks ---------------------------------------------------- */

.art-sec2 { margin-top: 26px; }
.art-sec2 h2 { font-size: 15px; font-weight: 500; }
.art-sec2 p { margin-top: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 300; line-height: 2; }
.hand-example { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.hand-example h3 { font-size: 14px; font-weight: 500; line-height: 1.8; }
.example-row { padding: 8px 0 0; border: 0; }
.example-row .example-label { margin: 0 0 6px; font-weight: 500; }
.example-codes { margin-left: 10px; color: var(--ink-3); font-family: var(--font-card); }
.example-row .hand-cards { margin-bottom: 0; }
.hand-example .example-result { margin-top: 12px; }
.art-list { display: grid; gap: 8px; margin-top: 10px; }
.art-list li {
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.9;
  text-indent: -16px;
}
.art-list li::before { content: "・"; color: var(--gold); }

/* ---- poster-only mode (#png) ------------------------------------------ */

/* tools/make-hands-png.sh loads the page with #png and screenshots #poster
   alone at 1080px: no sky, no pane chrome, the brand line back on. */
body.png-mode { background: #05070a; }
body.png-mode .door-sky,
body.png-mode .art > :not(.poster) { display: none !important; }
body.png-mode .screen--door { position: static; display: block; padding: 0; }
body.png-mode .art.pane--scroll {
  width: 1080px;
  height: auto;
  margin: 0;
  padding: 56px 64px 40px;
  border: 0;
  border-radius: 0;
  background: #090c0a;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}
body.png-mode .poster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
body.png-mode .poster-title {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .14em;
}
body.png-mode .poster-sub { color: var(--ink-3); font-size: 15px; font-weight: 300; }
body.png-mode .hand { padding: 14px 0 12px; }
body.png-mode .hand-cards { --card-w: 76px; }
body.png-mode .hand-no { font-size: 24px; width: 40px; }
body.png-mode .hand-ja { font-size: 19px; }
body.png-mode .hand-en { font-size: 12px; }
body.png-mode .hand-note { font-size: 14.5px; }
body.png-mode .poster-foot {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-4);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .08em;
}
