/* ゴルフの握りアプリ（2026-11-09）。屋外の日なたでも読めるように、明るい地に濃い字・大きなボタン（手袋でも押せる 44px 以上） */
/* 11/09 17:15 見た目は案A「クラブハウス」（オーナーが選んだ）：深い緑・生成り・真鍮の金。見出しは明朝、数字は Didot（どれも iPhone に入っている書体） */
:root {
  --bg: #F2EDDF;
  --card: #FBF8EF;
  --ink: #1D2A22;
  --sub: #6E6C5F;
  --line: #DCD2B9;
  --green: #173F2E;
  --green-2: #2C5A43;
  --brass: #B8954A;
  --brass-ink: #7A5B22;
  --red: #9E3B2C;
  --dia: #2F8496;
  --gold: #B8954A;
  --silver: #959DA3;
  --bronze: #9C6236;
  --iron: #4A4A44;
  --pin: #9E3B2C;
  --pon: #284E78;
  --pan: #5B3F7A;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --num: "Didot", "Bodoni 72", "Hiragino Mincho ProN", serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 17px/1.5 var(--mincho); -webkit-text-size-adjust: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; }
.loading { padding: 2em; }

/* いちばん上 */
.top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 8px) 12px 8px; background: var(--green); color: #fff; }
.top h1 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.top .back { justify-self: start; min-height: 40px; padding: 0 6px; font-weight: 600; color: #fff; }
.top.home h1 { font-size: 19px; letter-spacing: .04em; }
.sync { justify-self: end; font-size: 12px; white-space: nowrap; line-height: 1.25; text-align: right; max-width: 34vw; }
.sync::before { content: "●"; margin-right: 3px; }
.sync.ok::before { color: #8fe3a8; }
.sync.wait::before { color: #ffd166; }
.sync.off::before { color: #c9c9c9; }

/* 下のタブ */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 54px; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: none; }
.tabs a.on { color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
main { padding: 12px 12px calc(84px + var(--safe-b)); max-width: 640px; margin: 0 auto; }

/* 切りかえ */
.seg { display: flex; gap: 0; border: 2px solid var(--green); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.seg button { flex: 1; min-height: 44px; font-weight: 600; color: var(--green); background: var(--card); }
.seg button + button { border-left: 2px solid var(--green); }
.seg button.on { background: var(--green); color: #fff; }
.seg.small { margin: 0; border-radius: 10px; flex: 0 0 auto; }
.seg.small button { min-height: 44px; padding: 0 12px; font-size: 15px; white-space: nowrap; }
.groupsbar { margin: 8px 12px 0; }
.groupsbar button { min-height: 40px; }

/* ホールの番号の帯 */
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 2px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-weight: 700; color: var(--sub); position: relative; }
.strip button.done { border-color: var(--green-2); color: var(--green); }
.strip button.done::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--green-2); }
.strip button.cur { background: var(--green); border-color: var(--green); color: #fff; }
.strip button.cur::after { background: var(--card); }

/* ホール */
.hole { padding-top: 4px; }
.htitle { display: flex; align-items: baseline; gap: 6px; margin: 4px 2px 8px; font-size: 18px; }
.htitle b { font-size: 34px; line-height: 1; }
.htitle .par { margin-left: auto; font-size: 18px; font-weight: 700; color: var(--green); }
.grid { display: grid; gap: 4px; }
.grid.c1 { grid-template-columns: 60px repeat(1, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: 60px repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: 60px repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: 60px repeat(4, minmax(0, 1fr)); }
.grid.c5 { grid-template-columns: 60px repeat(5, minmax(0, 1fr)); }
.cell { min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; min-width: 0; }
.cell.lab { justify-content: flex-start; font-size: 14px; font-weight: 600; color: var(--sub); padding-left: 2px; }
.cell.name { font-size: 15px; background: none; color: var(--ink); padding: 0 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; text-align: center; line-height: 46px; }
.cell.name.me { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.sec { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.sec small { font-weight: 400; color: var(--sub); letter-spacing: 0; }
.cell.num, .cell.tap { background: var(--card); border: 2px solid var(--line); font-size: 20px; }
.cell.num.empty small { color: #b9b7ad; font-size: 18px; font-weight: 600; }
.cell.num.under { color: var(--red); }
.cell.num.over { color: var(--pon); }
.cell.tap { font-size: 15px; }
.cell:disabled { opacity: .55; }
.cell.pt { flex-direction: column; line-height: 1.1; }
.cell.pt b { font-size: 22px; }
.cell.pt small { font-size: 11px; font-weight: 600; color: var(--green); }
.cell.corner { flex-direction: row; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; column-gap: 1px; padding-left: 2px; line-height: 1.05; }
.cell.corner b { font-size: 26px; }
.cell.corner span { font-size: 13px; font-weight: 600; }
.cell.corner small { flex-basis: 100%; font-size: 12px; color: var(--green); font-weight: 700; }
.cell.num.empty { color: #c9c7bd; font-weight: 400; }
.nav2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.nav2 button { min-height: 48px; border-radius: 12px; background: var(--card); border: 2px solid var(--green); color: var(--green); font-weight: 700; font-size: 18px; }
.nav2 button:disabled { border-color: var(--line); color: #c7c5bb; }
.ronote { background: #fff7e0; border: 1px solid #ecd9a0; border-radius: 10px; padding: 8px 10px; font-size: 14px; margin: 6px 0 10px; }
.link { color: var(--green); text-decoration: underline; font-weight: 700; min-height: 32px; }

/* 数字を選ぶ */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; }
.pad { width: 100%; background: var(--card); border-radius: 18px 18px 0 0; padding: 14px 14px calc(14px + var(--safe-b)); }
.padtitle { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.padtitle small { margin-left: 8px; color: var(--green); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keys.p { grid-template-columns: repeat(3, 1fr); }
.keys button { min-height: 58px; border-radius: 12px; background: var(--bg); font-size: 24px; font-weight: 700; border: 2px solid transparent; }
.keys button.par { border-color: var(--green); color: var(--green); }
.keys button.cur { background: var(--green); color: #fff; }
.padfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.padfoot button { min-height: 50px; border-radius: 12px; border: 2px solid var(--line); font-weight: 600; }

/* 準備 */
.setup section, .sum section { background: var(--card); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
h2 { font-size: 17px; margin: 0 0 6px; }
h2 .note { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--sub); }
.prow { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.prow input.name { flex: 1; min-width: 0; min-height: 48px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 18px; background: var(--card); }
.prow .x { width: 44px; height: 44px; border-radius: 50%; color: var(--sub); font-size: 22px; flex: 0 0 auto; }
input:focus { outline: none; border-color: var(--green) !important; }
.add { width: 100%; min-height: 46px; border: 2px dashed var(--line); border-radius: 10px; color: var(--green); font-weight: 700; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 700; width: 100%; text-align: left; }
.check .box { width: 28px; height: 28px; border-radius: 7px; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex: 0 0 auto; }
.check.on .box, .game.on .check .box { background: var(--green); }
.game { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.pts { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px 38px; }
.pts label { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--sub); }
.pts input { width: 52px; min-height: 40px; border: 2px solid var(--line); border-radius: 8px; text-align: center; font-size: 17px; background: var(--card); }
.parrow { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 4px; }
.par { min-height: 50px; border-radius: 8px; background: var(--bg); font-weight: 700; font-size: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.par small { font-size: 10px; font-weight: 400; color: var(--sub); }
.par.p3 { background: #E3EADF; }
.par.p5, .par.p6, .par.p7 { background: #EDE0C4; }
.setup input.course, .setup input.date, .setup input.nine { width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 17px; margin-top: 6px; background: var(--card); }
.hint { font-size: 13px; color: var(--sub); margin: 6px 0; }
.err { color: var(--red); font-weight: 700; min-height: 1.5em; margin: 6px 2px; }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border-radius: 14px; background: var(--green); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.primary:disabled { opacity: .6; }
.ghost { display: block; width: 100%; min-height: 48px; margin-top: 10px; color: var(--sub); text-decoration: underline; }

/* はじめ */
.homep .lead { color: var(--sub); }
.join { display: flex; gap: 8px; margin-top: 12px; }
.join input { flex: 1; min-width: 0; min-height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; background: var(--card); }
.join button { min-height: 52px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--green); color: var(--green); font-weight: 700; background: var(--card); }
.homep h2 { margin-top: 20px; }
.rounds { display: grid; gap: 8px; }
.round { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; background: var(--card); border-radius: 12px; padding: 12px; text-decoration: none; min-height: 56px; }
.round span { grid-column: 1 / -1; color: var(--sub); font-size: 14px; }
.ver { color: #a8a69c; font-size: 11px; text-align: center; margin-top: 30px; }

/* 招待 */
.invite { text-align: center; }
.invite .lead { text-align: left; }
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 12px; margin: 6px auto; }
.qr svg { display: block; width: min(70vw, 280px); height: auto; }
.code { font-size: 15px; color: var(--sub); }
.code b { font-size: 28px; color: var(--ink); letter-spacing: .1em; margin-left: 6px; }

/* だれか選ぶ */
.whos h3 { font-size: 14px; color: var(--green); margin: 14px 0 4px; }
.who { display: block; width: 100%; min-height: 56px; margin: 8px 0; border-radius: 12px; background: var(--card); border: 2px solid var(--line); font-size: 19px; font-weight: 700; }

/* 表・精算 */
.t { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 6px; }
.t th { font-size: 12px; font-weight: 600; color: var(--sub); text-align: center; padding: 4px 2px; white-space: nowrap; }
.t td { text-align: center; padding: 8px 2px; border-top: 1px solid var(--line); }
.t td.nm { text-align: left; font-weight: 700; }
.t .plus { color: var(--green); }
.t .minus { color: var(--red); }
.t small { color: var(--sub); }
.tr { list-style: none; padding: 0; margin: 10px 0 0; }
.tr li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 17px; }
.scroll { overflow-x: auto; }
.holes td { padding: 6px 2px; font-size: 14px; }
.holes th { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; }
.holes .mk { font-weight: 700; letter-spacing: .02em; }
.holes .sc { display: block; font-size: 11px; }
.shot img { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }

/* 11/09 に足した9個のゲーム */
.gnote { margin: 0 0 4px 38px; font-size: 13px; color: var(--sub); }
.pts .unit { align-self: center; font-size: 13px; color: var(--sub); }
.opt { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 38px; font-size: 15px; text-align: left; }
.opt .box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex: 0 0 auto; }
.opt.on .box { background: var(--green); }
.holesel { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin: 4px 0 8px 38px; }
.holesel button { min-height: 44px; border-radius: 8px; background: var(--bg); font-weight: 700; color: var(--sub); }
.holesel button.on { background: var(--green); color: #fff; }
.warn { margin: 4px 0 6px 38px; font-size: 13px; color: var(--red); font-weight: 700; }

/* 11/09 はじめの画面でゲームを選ぶ・遊び方 */
.gsub { font-size: 13px; color: var(--green); margin: 14px 0 6px; letter-spacing: .04em; }
.gcard { display: flex; align-items: stretch; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.gcard.on { border-color: var(--brass); background: #FFFDF5; }
.gpick { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 4px 8px 12px; text-align: left; min-width: 0; }
.gpick .box { width: 28px; height: 28px; border-radius: 7px; border: 2px solid var(--green); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex: 0 0 auto; }
.gcard.on .gpick .box { background: var(--green); }
.gtxt { display: flex; flex-direction: column; min-width: 0; }
.gtxt b { font-size: 17px; }
.gtxt small { font-size: 12.5px; color: var(--sub); line-height: 1.35; }
.howto { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--green); text-decoration: none; }
.gcard .howto { border-left: 1px solid var(--line); }
.startbar { position: sticky; bottom: 0; z-index: 10; padding: 12px 0 calc(12px + var(--safe-b)); background: linear-gradient(rgba(242, 237, 223, 0), var(--bg) 35%); margin-top: 6px; }
.homep h2 { margin-top: 18px; }
.ghead { display: flex; align-items: center; justify-content: space-between; }
.ghead .check { width: auto; flex: 1; }
.ghead .howto { min-height: 40px; padding: 0 6px; }
.sec { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 4px; }
.sec .howto { margin-left: auto; min-height: 28px; padding: 0 2px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.howlist { display: flex; flex-wrap: wrap; gap: 6px; }
.howlist .howto { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 0 14px; }
.rules section { background: var(--card); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rules .rtitle { font-size: 24px; margin: 0; }
.rules .rshort { font-weight: 700; color: var(--green); margin: 4px 0; }
.rules .rmeta { font-size: 14px; color: var(--sub); margin: 0 0 6px; }
.rules h3 { font-size: 15px; margin: 14px 0 4px; border-left: 4px solid var(--green); padding-left: 8px; }
.rules ul { margin: 0; padding-left: 1.3em; }
.rules li { margin: 4px 0; line-height: 1.6; }
.rules .rex { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 0; line-height: 1.6; }
.updating { position: fixed; left: 12px; right: 12px; top: calc(var(--safe-t) + 64px); z-index: 60; background: var(--green); color: #fff; text-align: center; font-weight: 700; padding: 12px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

/* ---------- 11/09 案A「クラブハウス」の仕上げ（デザイン案/theme-A_クラブハウス.css から） ---------- */
.top { box-shadow: inset 0 -3px 0 var(--brass); }
.top h1 { font-family: var(--num); font-weight: 600; letter-spacing: .12em; }
h2, .sec, .gtxt b, .rules .rtitle { letter-spacing: .06em; }
.sec { color: var(--green); border-bottom-color: var(--brass); letter-spacing: .2em; }
.sec small { letter-spacing: .02em; }
.gsub { font-style: italic; color: var(--brass-ink); letter-spacing: .1em; font-size: 15px; }
.primary { border-radius: 6px; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px var(--brass); letter-spacing: .14em; }
.gcard { border-width: 1px; border-radius: 6px; }
.gcard.on { box-shadow: 0 0 0 1px var(--brass); }
.gpick .box, .check .box, .opt .box { border-radius: 50%; border-color: var(--brass); }
.gcard.on .gpick .box, .check.on .box, .game.on .check .box, .opt.on .box { background: var(--brass); }
.howto { color: var(--brass-ink); }
.gcard .howto { color: var(--green); }
.strip button { border: 1px solid #CFC3A3; font-family: var(--num); font-size: 18px; }
.strip button.done { border-color: var(--brass); color: var(--green); }
.strip button.cur { color: var(--bg); box-shadow: inset 0 0 0 2px var(--brass); }
.strip button.done::after { background: var(--brass); }
.htitle b, .cell.corner b, .cell.pt b, .keys button, .cell.num, .code b { font-family: var(--num); }
.cell.corner b { font-style: italic; font-size: 34px; }
.cell.corner small, .cell.pt small, .htitle .par { color: var(--brass-ink); }
.cell.num, .cell.tap { border: 1px solid var(--line); border-radius: 8px; }
.cell.name.me { text-decoration-color: var(--brass); }
.tabs { border-top: 1px solid var(--brass); }
.tabs a { letter-spacing: .08em; }
.tabs a.on { color: var(--green); box-shadow: inset 0 3px 0 var(--brass); }
.seg { border-width: 1px; }
.seg button + button { border-left-width: 1px; }
.nav2 button { border-width: 1px; border-radius: 6px; font-family: var(--num); }
.setup section, .sum section, .rules section { border: 1px solid #E4DCC6; }
.rules h3 { border-left-color: var(--brass); }
.keys button.par { border-color: var(--brass); }
.keys button.cur { box-shadow: inset 0 0 0 2px var(--brass); }
.round { border: 1px solid #E4DCC6; }
.who { border-width: 1px; }
.ver { color: #AFA78F; }

/* ---------- 11/09 動き（オーナーが選んだ 4・5・6） ---------- */
/* 4. 押すと弾む。メダルは、取るとコインがくるっと回る（どのマスを弾ませるかは app.js の fx） */
.cell, .primary, .gpick, .strip button, .nav2 button, .keys button, .seg button, .who, .round, .howto { transition: transform .12s ease; }
.cell:not(:disabled):active, .primary:not(:disabled):active, .gpick:active, .strip button:active, .nav2 button:not(:disabled):active, .keys button:active, .seg button:active, .who:active, .round:active { transform: scale(.95); }
@keyframes fx-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fx-coin { 0% { transform: perspective(300px) rotateY(0) scale(.7); } 70% { transform: perspective(300px) rotateY(340deg) scale(1.04); } 100% { transform: perspective(300px) rotateY(360deg) scale(1); } }
.fx-pop { animation: fx-pop .28s cubic-bezier(.3, 1.3, .5, 1); }
.fx-coin { animation: fx-coin .5s cubic-bezier(.25, .9, .35, 1.05); }
/* 5. 点の数がパタパタめくれる（動かすのは app.js の flipNum） */
[data-flip] { display: inline-block; transform-origin: 50% 55%; backface-visibility: hidden; }
/* 6. ホールを変えると、スコアカードを1枚めくる（app.js の turnCard。前のカードを上に重ねて飛ばす） */
.card-old, .card-new { background: var(--bg); transform-origin: 50% 0; box-shadow: 0 14px 34px rgba(23, 63, 46, .22); border-radius: 0 0 16px 16px; }
.card-old { position: fixed; z-index: 15; pointer-events: none; }
.card-new { position: relative; z-index: 16; }
@media (prefers-reduced-motion: reduce) {
  .fx-pop, .fx-coin { animation: none; }
}

/* ---------- 11/09 17:40 デザイン案1「グリーンの上のスコアカード」（オーナーが「1、4、5」で選んだ） ----------
   芝（刈り目の入った深い緑）の上に、本物の道具が置いてある：紙のスコアカード・メダルのコイン・金のハンコ。
   目立たせるのは「芝と紙のカード」。字のある所はすべて明るい紙の上（日なたでも読める）。
   芝と紙には、細かいざらつき（img/grain.png、tools/質感を作る.mjs）を重ねる */
:root { --paper: #F8F3E4; --slot: #EEE6D0; --turf: #173F2E; --turf-2: #1B4835; --night: #0F291D; --cream: #F2EDDF; }
html { min-height: 100%; background-color: var(--turf); background-image: url(/img/grain.png), repeating-linear-gradient(112deg, var(--turf) 0 70px, var(--turf-2) 70px 140px); }
body { background: transparent; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* いちばん上：芝に溶かす。下を流れるカードの字と重ならないよう、うすく透ける濃い緑 */
.top { background: rgba(20, 54, 39, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.top h1 { color: var(--cream); }
.sync.ok::before { color: #B8E3C4; }

/* ホールの番号：芝の上のティーマーカー。前半と後半のあいだを少しあける */
.strip { padding-top: 8px; }
.strip button { background: transparent; border: 1px solid rgba(242, 237, 223, .28); color: rgba(242, 237, 223, .72); }
.strip button.done { border-color: rgba(184, 149, 74, .9); color: var(--cream); }
.strip button.cur { background: var(--paper); color: var(--green); border-color: var(--paper); box-shadow: 0 0 0 2px var(--brass); }
.strip button.cur::after, .strip button.done::after { background: var(--brass); }
.groupsbar { border-color: rgba(242, 237, 223, .5); }
.groupsbar button { background: transparent; color: var(--cream); }
.groupsbar button.on { background: var(--paper); color: var(--green); }
.groupsbar button + button { border-left-color: rgba(242, 237, 223, .5); }

/* ホール＝芝に置いた1枚の紙のスコアカード。上の端はミシン目（台紙から切り取った1枚）、内側に真鍮の細い枠 */
main.hole { position: relative; width: calc(100% - 20px); max-width: 620px; margin: 12px auto calc(104px + var(--safe-b)); padding: 20px 12px 16px; background: url(/img/grain.png), var(--paper); border-radius: 2px 2px 4px 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 26px 50px -10px rgba(0, 0, 0, .5); outline: 1px solid rgba(184, 149, 74, .75); outline-offset: -7px; }
main.hole::before { content: ""; position: absolute; left: 4px; right: 4px; top: -5px; height: 10px; background: radial-gradient(circle at 7px 5px, var(--turf) 3.3px, transparent 3.8px) 0 0 / 14px 10px repeat-x; pointer-events: none; }
.card-old, .card-new { border-radius: 2px 2px 4px 4px; }
main.hole.card-old { position: fixed; z-index: 15; }
.cell.tap, .cell.num { background: var(--slot); border: 0; border-radius: 4px; }
.cell.num.empty { background: transparent; box-shadow: inset 0 -1px 0 #D6C8A2; border-radius: 0; }
.sec { border-bottom: 1px solid rgba(184, 149, 74, .6); }
.nav2 button { background: transparent; }
.ronote { background: #FFF6DA; }

/* 下のタブ：芝の上に浮かぶ濃い緑の板。いまの所は真鍮の小さな点 */
.tabs { left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); padding: 0 6px; overflow: hidden; border: 1px solid rgba(184, 149, 74, .55); border-radius: 999px; background: var(--night); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.tabs a { position: relative; color: rgba(242, 237, 223, .6); min-height: 52px; }
.tabs a.on { color: var(--cream); box-shadow: none; }
.tabs a.on::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--brass); }

/* はじめ：芝の上の紋章と名前 → ゲームは紙の札 */
.crest { text-align: center; padding: calc(var(--safe-t) + 26px) 16px 4px; color: var(--cream); }
.crest svg { display: block; width: 116px; height: 116px; margin: 0 auto 8px; }
.crest h1 { margin: 0; font: 600 30px/1.2 var(--num); letter-spacing: .06em; }
.crest p { margin: 4px 0 0; font-size: 14px; letter-spacing: .1em; color: rgba(242, 237, 223, .72); }
.homep { padding-top: 4px; }
.homep h2, .invite .lead, .invite .code, .invite .hint, .whos h2, .whos h3, .whos p { color: var(--cream); }
.homep h2 .note, .homep .hint { color: rgba(242, 237, 223, .7); }
.homep .gsub { color: #D9BE7E; }
.gcard { background: url(/img/grain.png), var(--paper); border: 0; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.gcard.on { background: url(/img/grain.png), var(--paper); box-shadow: 0 0 0 2px var(--brass), 0 10px 24px -12px rgba(0, 0, 0, .55); }
.startbar { background: linear-gradient(rgba(23, 63, 46, 0), var(--turf) 40%); }
.primary { background: var(--brass); color: #10281D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(0, 0, 0, .5); }
.join input, .join button { background: var(--paper); }
.join button { border-color: var(--brass); }
.round { background: url(/img/grain.png), var(--paper); border: 0; }
.ver { color: rgba(242, 237, 223, .45); }
.err { color: #F2B8A8; }
.setup section, .sum section, .rules section { position: relative; background: url(/img/grain.png), var(--paper); border: 0; border-radius: 3px; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .5); }
.invite .code b { color: var(--cream); }
.who { background: var(--paper); }
.ghost { color: rgba(242, 237, 223, .75); }
.setup .ghost, .sum .ghost { color: var(--sub); }

/* 4. 精算をスクラッチで見せる（18番まで入ったら、このスマホで1回だけ） */
.scratch { position: relative; }
.scratch canvas { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); border-radius: 6px; touch-action: none; cursor: grab; z-index: 2; }
.scratch.done canvas { transition: opacity .45s ease; opacity: 0; pointer-events: none; }
.scratchskip { display: block; margin: 10px auto 0; min-height: 40px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ハンコが入ってくる途中も、画面の横にはみ出さない（はみ出すと iPhone が少し縮めて表示する） */
main.sum { overflow-x: clip; }
/* 5. 18番まで終わると、金のハンコがポンと押される（このスマホで1回だけ動く。そのあとは押したまま） */
.seal { position: absolute; top: -8px; right: 2px; width: 92px; height: 92px; transform: rotate(-12deg); pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .5)) drop-shadow(0 2px 3px rgba(80, 55, 10, .35)); }
.seal svg { display: block; width: 100%; height: 100%; }
.seal.press { animation: seal-press .5s cubic-bezier(.3, 1.3, .5, 1) .25s both; }
@keyframes seal-press {
  0% { transform: translate(-44px, -34px) rotate(-4deg) scale(1.5); opacity: 0; }
  55% { transform: rotate(-12deg) scale(.92); opacity: 1; }
  78% { transform: rotate(-12deg) scale(1.02); }
  100% { transform: rotate(-12deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .seal.press { animation: none; }
}

/* ---------- 11/09 17:55 ゲームの線画（icons.js）。真鍮の線、選ぶと真鍮で塗った札に ---------- */
.gpick .badge { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass-ink); background: var(--paper); display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.gpick .badge svg { width: 30px; height: 30px; }
.gcard.on .gpick .badge { background: radial-gradient(circle at 32% 28%, #E9D08A, var(--brass) 55%, #8C6B2D); color: #10281D; }
.gcard.on .gpick .badge::after { content: "✓"; position: absolute; right: -5px; bottom: -5px; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: var(--cream); font: 700 11px/19px -apple-system, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.rtitle { display: flex; align-items: center; gap: 10px; }
.rtitle .ricon { flex: 0 0 auto; width: 44px; height: 44px; padding: 6px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass-ink); }
.howlist .howto { gap: 6px; }
.howlist .hicon { width: 20px; height: 20px; color: var(--brass-ink); }
.soundsw { margin-top: 26px; color: var(--cream); align-items: flex-start; }
.soundsw > span:last-child { display: flex; flex-direction: column; }
.soundsw small { font-size: 12.5px; font-weight: 400; color: rgba(242, 237, 223, .65); line-height: 1.5; }

/* ---------- 11/09 18:40 Claude Design の見直し（オーナーが「おすすめで」＝1・2・3・4・6・7・8・9・10。見本は デザイン案/3_ClaudeDesignの見直し/） ---------- */
:root { --slot: #ECE3CB; --hair: #CDB98A; --pos: #1F6B47; }
.cell { min-height: 48px; }

/* 1. 名前の行：下へ動かしても、いちばん上の帯のすぐ下に残る（だれの列かわかる） */
.grid.names { position: sticky; top: var(--top-h, calc(var(--safe-t) + 56px)); z-index: 4; align-items: end; margin: 0 -5px; padding: 0 5px 6px; background: url(/img/grain.png), var(--paper); box-shadow: 0 1px 0 #D9C9A0; }
.grid.names .cell { min-height: 0; }
.cell.corner { padding-left: 4px; }
.cell.corner b { font-size: 38px; font-weight: 400; }
.cell.corner span { font-size: 13px; }
.cell.corner small { margin-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.cell.name { line-height: 1.3; padding: 0 2px 10px; font-size: 16px; font-weight: 600; }
.grid.c5 .cell.name { padding-left: 0; padding-right: 0; font-size: 13px; }
.cell.name.me { color: var(--ink); text-decoration: underline 2px var(--brass); text-underline-offset: 7px; }

/* 2. 見出し（ピンポンパン・オリンピックなど）は墨の太字、下に真鍮の細い線。行の名前はうすい字のまま */
.sec { align-items: flex-end; min-height: 44px; margin: 12px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .1em; }
.sec small { font-size: 11px; font-weight: 400; color: var(--sub); letter-spacing: 0; }
.sec .howto { align-self: stretch; display: inline-flex; align-items: flex-end; min-height: 44px; margin-bottom: -6px; padding: 0 2px 8px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--brass-ink); text-decoration: underline; text-decoration-color: rgba(140, 107, 45, .5); text-underline-offset: 5px; }
.cell.lab { padding-left: 4px; white-space: nowrap; }

/* 3. 空いたマスは少しへこませる（日なたでも「押せる所」とわかる）。数字を選んでいるマスは真鍮の輪 */
.cell.tap, .cell.num, .cell.num.empty { background: var(--slot); border: 0; border-radius: 10px; box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1px rgba(140, 107, 45, .14); transition: transform .12s ease, box-shadow .15s ease; }
.cell.num { font-size: 24px; font-weight: 400; }
.cell.num.empty { color: #BFB295; }
.cell.num.sel { box-shadow: inset 0 0 0 2px var(--brass), inset 0 1px 2px rgba(80, 60, 20, .2); }
.cell.pt b { font-size: 28px; font-weight: 400; }
.cell.pt small { margin-top: 2px; font-size: 11px; }

/* 4. 取ったマスは、まん中に 40px の丸いコイン。金・銀・銅の字は濃い色（読めるように） */
.coin { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.05; letter-spacing: .02em; color: #FFF8EC; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), inset 0 -3px 4px rgba(0, 0, 0, .22), 0 2px 3px rgba(0, 0, 0, .28); }
.cell.pin .coin { background: radial-gradient(circle at 34% 28%, #CF6A57, #9E3B2C 48%, #71261B); }
.cell.pon .coin { background: radial-gradient(circle at 34% 28%, #5079A6, #284E78 48%, #193553); }
.cell.pan .coin { background: radial-gradient(circle at 34% 28%, #8467A6, #5B3F7A 48%, #3E2A55); }
.cell.gold .coin, .cell.silver .coin, .cell.bronze .coin, .cell.iron .coin, .cell.dia .coin { font-size: 16px; }
.cell.gold .coin { background: radial-gradient(circle at 34% 28%, #FBEBB5, #D8B45E 48%, #94712B); color: #3E2C0C; }
.cell.silver .coin { background: radial-gradient(circle at 34% 28%, #FFFFFF, #CDD2D7 48%, #878E96); color: #2A2F34; }
.cell.bronze .coin { background: radial-gradient(circle at 34% 28%, #F2C9A0, #B97A48 48%, #7A4522); color: #2B1708; }
.cell.iron .coin { background: radial-gradient(circle at 34% 28%, #A9A9A1, #62625B 48%, #33332F); color: #F2EDDF; }
.cell.dia .coin { background: radial-gradient(circle at 34% 28%, #D7F3F7, #58AEBF 48%, #1F5F6D); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.cell.one .coin { background: radial-gradient(circle at 34% 28%, #3F7D60, #1D4A36 48%, #0F291D); color: #F2EDDF; font-size: 11px; }
.cell.bunker .coin { background: radial-gradient(circle at 34% 28%, #F6E8C0, #D2B06A 48%, #94743A); color: #3E2C0C; font-size: 11px; }

/* 6. ホールの番号：いま＝紙の色で塗る、済み＝真鍮の輪と点、まだ＝うすい輪。9番と10番のあいだに細い線 */
.strip { padding: 10px 12px 12px; }
.strip button { display: flex; align-items: center; justify-content: center; padding: 0 0 3px; border: 1.5px solid rgba(201, 165, 88, .32); background: transparent; color: rgba(242, 237, 223, .55); font-size: 20px; font-weight: 400; box-shadow: none; transition: transform .12s ease, background .2s ease; }
.strip button.done { border-color: #C9A558; color: var(--cream); }
.strip button.done::after { bottom: 4px; background: #C9A558; }
.strip button.cur { background: var(--paper); border-color: #C9A558; color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 165, 88, .3), 0 4px 10px rgba(0, 0, 0, .3); }
.strip button.in { margin-left: 13px; }
.strip button.in::before { content: ""; position: absolute; left: -11px; top: 8px; width: 1px; height: 26px; background: rgba(201, 165, 88, .6); }

/* 7. はじめ：ゲーム選びを、ミシン目のある1枚の紙に。選んだ札だけ面を塗って真鍮の輪 */
.crest p { font-size: 15px; color: #E2DBC6; letter-spacing: .14em; }
.gsheet { position: relative; margin: 26px 0 0; padding: 28px 18px 18px; background: url(/img/grain.png), linear-gradient(#FAF6EA, #F5EFDD); border-radius: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .3), 0 2px 4px rgba(0, 0, 0, .2); }
.gsheet::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: radial-gradient(circle at 7px 0, var(--turf) 3.5px, transparent 4px) 0 0 / 14px 8px repeat-x; }
.gsheet::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(184, 149, 74, .5); border-radius: 3px; pointer-events: none; }
.homep .gsheet h2 { position: relative; margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.homep .gsheet h2 .note { margin-left: 10px; font-size: 13px; color: var(--sub); letter-spacing: .06em; }
.homep .gsheet .hint { position: relative; margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: #55534A; }
.gsub { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-size: 13px; font-weight: 600; font-style: normal; color: var(--brass-ink); letter-spacing: .12em; }
.gsub::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), rgba(205, 185, 138, 0)); }
.homep .gsheet .gsub { position: relative; color: var(--brass-ink); }
.gsheet .gcard { position: relative; z-index: 1; margin-bottom: 8px; border-radius: 14px; background: transparent; box-shadow: inset 0 0 0 1px #E4D9BC; transition: background .2s ease, box-shadow .2s ease; }
.gsheet .gcard.on { background: #F1E7CA; box-shadow: inset 0 0 0 1.5px #C9A558; }
.gsheet .gpick { gap: 12px; min-height: 76px; padding: 12px 4px 12px 12px; }
.gsheet .gpick .badge { width: 52px; height: 52px; border-color: #C9A558; background: transparent; color: #A8853D; }
.gsheet .gcard.on .gpick .badge { border-color: transparent; background: radial-gradient(circle at 34% 28%, #F7E3A6, #D2AE5C 50%, #9C7A31); color: #2B2412; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), inset 0 -3px 4px rgba(0, 0, 0, .18), 0 2px 4px rgba(80, 60, 20, .3); }
.gsheet .gcard.on .gpick .badge::after { right: -4px; bottom: -4px; width: 22px; height: 22px; font-size: 12px; line-height: 22px; box-shadow: 0 0 0 2px var(--paper); }
.gsheet .gtxt b { font-size: 18px; font-weight: 600; letter-spacing: .06em; line-height: 1.3; }
.gsheet .gtxt small { margin-top: 4px; font-size: 13px; line-height: 1.6; color: #5C5A4E; }
.gsheet .gcard .howto { min-width: 52px; padding: 0 8px; border-left: 0; font-size: 14px; font-weight: 600; color: var(--brass-ink); text-decoration: underline; text-decoration-color: rgba(140, 107, 45, .5); text-underline-offset: 5px; }
.startbar { padding: 28px 0 calc(16px + var(--safe-b)); background: linear-gradient(rgba(15, 41, 29, 0), rgba(15, 41, 29, .92) 45%); }
.primary { min-height: 58px; border-radius: 16px; background: linear-gradient(#D6B670, #B8954A 55%, #A2813B); color: var(--ink); font-weight: 600; letter-spacing: .14em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 8px 18px rgba(0, 0, 0, .35); }

/* 8. 表・精算：受け渡しを先に大きく → 名前・合計・精算の3列（ゲームごとの点は名前の下に小さく）。ハンコは見出しの横 */
.sum h2.sumhead { font-size: 22px; letter-spacing: .08em; }
.sum h2.withseal { display: flex; align-items: center; flex-wrap: wrap; min-height: 84px; padding-right: 108px; margin-bottom: 4px; }
.seal { top: -6px; right: 6px; width: 100px; height: 100px; }
.trs h3 { margin: 4px 0 2px; font-size: 13px; font-weight: 600; color: var(--brass-ink); letter-spacing: .14em; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; border-bottom: 1px dashed #D3C49C; }
.trow .pair { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 20px; font-weight: 600; }
.trow .pair i { font-style: normal; font-size: 16px; color: var(--brass-ink); }
.trow .amt { flex: 0 0 auto; display: flex; align-items: baseline; gap: 2px; font-size: 15px; font-weight: 600; }
.trow .amt b { font: 400 32px/1 var(--num); }
.stab { margin-top: 20px; }
.shead, .srow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 72px; column-gap: 8px; }
.shead { align-items: end; padding: 0 2px 8px; border-bottom: 1px solid var(--hair); font-size: 12px; font-weight: 600; color: var(--sub); letter-spacing: .08em; }
.shead span + span, .srow > span { text-align: right; }
.srow { align-items: center; padding: 10px 2px; border-bottom: 1px solid #E3D8BB; }
.snm { min-width: 0; }
.snm b { display: block; font-size: 18px; font-weight: 600; }
.snm small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--sub); }
.snm small span { white-space: nowrap; }
.stot b, .snet b { font: 400 26px/1.1 var(--num); }
.snet b { font-weight: 600; }
.snet.minus { color: var(--red); }
.snet.plus { color: var(--pos); }
.settle .hint { margin: 12px 2px 0; font-size: 13px; line-height: 1.7; color: #5C5A4E; }

/* 9. 数字は Didot。打数の表の数字は右にそろえる */
.t.score th:not(:first-child), .t.score td:not(.nm) { text-align: right; padding-right: 6px; }
.t.score td:not(.nm) { font-family: var(--num); font-size: 18px; }
.holes td:first-child, .holes .sc { font-family: var(--num); }

/* ---------- 11/10 使いやすさの直し（使いやすさの確かめ_2026-11-10.md の 1〜11。オーナー「全て直してください」） ---------- */
/* 1. 上の帯：「‹ 一覧」は折り返さない。電波の字は2行まで。帯の高さは変えない（7. 押す所は 44px） */
.top { grid-template-columns: auto minmax(0, 1fr) auto; padding: calc(var(--safe-t) + 6px) 12px 6px; }
.top h1 { max-width: none; }
.top .back { min-height: 44px; white-space: nowrap; }
.sync { max-width: 96px; white-space: pre-line; overflow: hidden; }
/* 4. 数字の板を開いている間は、カードの下に板の高さ分の余白 */
main.hole.padopen { margin-bottom: calc(340px + var(--safe-b)); }
/* 3. 「こすらずに見る」は銀の膜の上、右に */
.scratchskip { display: block; min-height: 44px; margin: 0 0 6px auto; padding: 0 4px; }
/* 6. 11px・10px の字を 12px に */
.sec small, .cell.pt small, .snm small, .holes .sc, .par small, .ver { font-size: 12px; }
.grid.c5 .cell.pt small { letter-spacing: -.02em; }
/* 7. 押す所を 44px に */
.groupsbar button, .pts input, .ghead .howto { min-height: 44px; }
.parrow { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.parrow + .parrow { margin-top: 12px; }
/* 8. ダイヤのコインの ◆ は濃い色に（金・銀と同じ） */
.cell.dia .coin { color: #0E3640; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
/* 5. 真鍮の箱のチェックは濃い緑に（白では薄い） */
.check.on .box, .game.on .check .box, .opt.on .box { color: #10281D; }
/* 9. まだのホールの番号を少し濃く */
.strip button { color: rgba(242, 237, 223, .72); border-color: rgba(201, 165, 88, .42); }
.ver { color: rgba(242, 237, 223, .6); }
/* 11. 1組に5人で狭いときは、名前を2行まで */
.grid.c5 .cell.name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; line-break: anywhere; line-height: 1.2; }
/* 5. 準備の画面：パーのボタンの上のホールの番号を濃く */
.par small { color: #4A483F; }

/* ---------- 11/10 第1弾（1 スタートホール・2 いつものメンバー・3 組の進み具合・4 写真入りの結果の画像） ---------- */
.startrow { display: flex; align-items: center; gap: 10px; }
.startrow .seg { flex: 1; margin: 6px 0; }
.startrow .glabel { flex: 0 0 auto; min-width: 2.6em; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--slot); box-shadow: inset 0 0 0 1px rgba(140, 107, 45, .25); font-size: 16px; font-weight: 600; color: var(--ink); }
.groupsbar button small { margin-left: 6px; font-size: 12px; font-weight: 400; opacity: .85; }
.prog { margin: 0 0 8px; font-size: 14px; color: var(--sub); }
.prog b { color: var(--ink); font-weight: 600; }
.photopick { margin-bottom: 10px; }
.photobtn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; border: 1.5px dashed var(--hair); border-radius: 12px; color: var(--brass-ink); font-weight: 600; cursor: pointer; }
.photobtn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photothumb { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }

/* ---------- 11/10 第2弾（5 倶楽部の成績・11 参加しない人・13 くじ・14 前に回ったコース・15 ラウンドの記録） ---------- */
.cell.na { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(140, 107, 45, .13) 6px 7px); border-radius: 10px; }
.chip.off { background: transparent; color: var(--sub); text-decoration: line-through; box-shadow: inset 0 0 0 1px rgba(140, 107, 45, .25); }
.gout { margin: 8px 0 2px 38px; }
.game .chips { margin-left: 38px; }
.lotto { margin: 6px 0 4px; padding: 10px 12px; border-radius: 10px; background: #F1E7CA; font-size: 15px; line-height: 1.7; }
.okn { color: var(--green); font-weight: 600; }
.club section h2 .note { margin-left: 8px; }
.yearbar { margin: 0 0 12px; }
.yearbar button { background: transparent; color: var(--cream); }
.yearbar button.on { background: var(--paper); color: var(--green); }
.rank { margin-top: 4px; }
.rhead, .rrow { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px 72px; column-gap: 6px; align-items: center; }
.rhead { padding: 0 2px 8px; border-bottom: 1px solid var(--hair); font-size: 12px; font-weight: 600; color: var(--sub); }
.rhead span + span, .rrow > span + span, .rrow > b { text-align: right; }
.rrow { min-height: 52px; padding: 6px 2px; border-bottom: 1px solid #E3D8BB; color: var(--ink); text-decoration: none; font-family: var(--num); font-size: 18px; }
.rrow .rn { display: flex; align-items: baseline; gap: 10px; min-width: 0; font-family: var(--mincho); font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .rn i { font-style: normal; font-family: var(--num); font-size: 15px; color: var(--brass-ink); min-width: 1.2em; }
.rrow b { font: 600 22px var(--num); }
.plus { color: var(--pos); }
.minus { color: var(--red); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.stats > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; background: var(--slot); box-shadow: inset 0 1px 2px rgba(80, 60, 20, .15); }
.stats small { font-size: 12px; color: var(--sub); }
.stats b { font: 400 28px/1.2 var(--num); }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; align-items: baseline; min-height: 48px; padding: 8px 2px; border-bottom: 1px solid #E3D8BB; }
.vrow .vn { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .vt { font-size: 13px; color: var(--sub); }
.vrow .vr b { font: 400 22px var(--num); }
.record .rec { margin: 6px 0 2px; font-size: 16px; }
/* 倶楽部の成績も、紙の上に（芝の上の字は読めない） */
.club section { position: relative; margin-bottom: 12px; padding: 14px 12px; background: url(/img/grain.png), var(--paper); border-radius: 3px; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .5); }
/* 11/10 はじめの画面の「始める」の帯：もとの場所まで動かしたら地を外す（app.js の watchStartbar。暗い帯に見えないように） */
.startend { height: 1px; }
.startbar.rest { background: transparent; }
/* 11/10 準備の画面の日付の欄：iPhone の Safari は日付の欄を自前の形で出し、枠からはみ出ることがある（オーナーの iPhone で「日付が飛び出てる」）。自前の形を外し、枠の幅に収める */
.setup input.date { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; line-height: 44px; text-align: left; }
.setup input.date::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* 11/11 前のラウンドを消す：見出しの右の「編集」を押すと、行の右に「消す」が出る（iPhone の一覧と同じ。app.js の tidy） */
.homep h2.listhead { display: flex; align-items: center; }
.listhead .tidy { margin-left: auto; min-height: 44px; padding: 0 2px 0 16px; font-family: var(--mincho); font-size: 16px; font-weight: 600; color: #D9BE7E; text-decoration: underline; text-underline-offset: 3px; }
.tidyrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.tidyrow .rdel { min-width: 68px; min-height: 56px; padding: 0 12px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.tidyrow .rdel:active { transform: scale(.95); }
.tidyrow .rdel.keep { background: var(--green); } /* 11/21 コース帳の管理の「戻す」 */
/* 準備の画面のいちばん下の文字のボタン（はじめから入れ直す・このラウンドを消す）は芝の上にあるので、生成りの字に（灰色だと読めない） */
.setup > .ghost { color: rgba(242, 237, 223, .85); }

/* ---------- 11/21 ギャンブラーモード（オーナーが OK した 1〜8。見た目は Fable 5.2） ----------
   紙のスコアカードの家族のまま、ここだけ「勝負の場」：
   ・伏せているもの（点・もう1つの組・発表の前のカード）は、どれも同じ「札の裏」＝深い緑に真鍮の細い格子と枠（--gm-back）
   ・倍（倍プッシュ・このホールの倍）は、ふちがしま模様の黒いチップ（--gm-chip）。メダルのコイン（色の面）と形で見分ける
   ・封をしたもの（優勝予想）は、真鍮の丸い「封」の印
   ふつうのラウンドには出ないクラスだけに絞ってある（前の段は変えていない） */
:root {
  --gm-back: url(/img/grain.png), repeating-linear-gradient(45deg, rgba(201, 165, 88, .17) 0 1px, transparent 1px 8px), repeating-linear-gradient(-45deg, rgba(201, 165, 88, .17) 0 1px, transparent 1px 8px), linear-gradient(160deg, #1D4B37, #0F291D);
  --gm-chip: radial-gradient(circle closest-side, #17201B 0 61%, #C9A558 61% 67%, transparent 67%), repeating-conic-gradient(from -11.25deg, #F2EDDF 0 22.5deg, #17201B 22.5deg 45deg);
  --gm-gold: #E3C987;
  --gm-seal: radial-gradient(circle at 34% 28%, #F7E3A6, #D2AE5C 50%, #9C7A31);
}

/* 1. 準備の画面：見出しの前に小さな伏せ札。入れると、札のような二重の真鍮の枠 */
.setup section.gamble { padding: 16px 16px 12px; }
.gamble h2 { display: flex; align-items: center; flex-wrap: wrap; }
.gamble h2::before { content: ""; flex: 0 0 auto; width: 15px; height: 21px; margin: 0 10px 0 2px; border-radius: 3px; background: var(--gm-back); box-shadow: inset 0 0 0 1px #0F291D, inset 0 0 0 2px rgba(201, 165, 88, .85), 0 1px 2px rgba(0, 0, 0, .3); transform: rotate(-8deg); }
.gamble h2 .note { flex-basis: 100%; margin: 3px 0 0 27px; }
.gamble .ghead .check { font-size: 16px; letter-spacing: .02em; }
.setup section.gamble.on { box-shadow: inset 0 0 0 1.5px #C9A558, inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(184, 149, 74, .5), 0 18px 36px -16px rgba(0, 0, 0, .5); }
.gamble .gmopts { margin: 6px 0 8px; border-top: 1px solid var(--hair); }
.gamble .gmopt { align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 12px 2px 11px; border-bottom: 1px dashed #D9CCA6; transition: transform .12s ease; }
.gamble .gmopt:last-child { border-bottom: 0; }
.gamble .gmopt:active { transform: scale(.98); }
.gamble .gmopt .box { width: 26px; height: 26px; margin-top: 1px; }
.gmt { display: flex; flex-direction: column; min-width: 0; }
.gmt b { font-size: 16px; font-weight: 600; letter-spacing: .06em; line-height: 1.45; }
.gmt small { margin-top: 2px; font-size: 13px; line-height: 1.65; color: #5C5A4E; }
.gamble .gmopt:not(.on) .gmt b { color: #55534A; }
.gamble > .hint { line-height: 1.7; }
/* 始めたあと：選んだ案は、真鍮の輪の小さな札（押せないので小さく） */
.gamble.locked .chips { gap: 6px; margin: 10px 0 6px; }
.gamble.locked .chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px 0 10px; border-radius: 17px; background: #F1E7CA; box-shadow: inset 0 0 0 1px #C9A558; font-size: 14px; letter-spacing: .04em; }
.gamble.locked .chip::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--gm-seal); box-shadow: 0 0 0 1px rgba(122, 91, 34, .5); }
.gamble.locked .ghost { min-height: 48px; margin-top: 6px; padding: 6px 0; font-size: 14px; line-height: 1.6; text-underline-offset: 4px; }

/* 2. ホール：伏せた点＝小さな伏せ札が並ぶ */
.cell.pt.hid { min-height: 56px; }
.cell.pt.hid b { display: flex; align-items: center; justify-content: center; width: 34px; height: 46px; border-radius: 5px; background: var(--gm-back); box-shadow: inset 0 0 0 2px #0F291D, inset 0 0 0 3px rgba(201, 165, 88, .85), 0 2px 3px rgba(0, 0, 0, .3); color: var(--gm-gold); font: 400 18px/1 var(--mincho); }

/* 倍プッシュ：空きのマスはチップを置く点線の輪、押すと黒いチップ。使い終わった人は斜線 */
.cell.tap.push:not(.hit)::after { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 1.5px dashed rgba(122, 91, 34, .55); }
.cell.tap.push:not(.hit):disabled { opacity: .5; }
.cell.push.hit:disabled { opacity: 1; }
.cell.push .coin { width: 42px; height: 42px; background: var(--gm-chip); color: #F0D999; font: 700 15px/1 var(--mincho); letter-spacing: 0; box-shadow: 0 0 0 1px rgba(15, 20, 17, .55), 0 2px 4px rgba(0, 0, 0, .35); }
.grid.c5 .cell.tap.push:not(.hit)::after { width: 28px; height: 28px; }
.grid.c5 .cell.push .coin { width: 38px; height: 38px; font-size: 14px; }
.cell.push.used { border-radius: 10px; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(140, 107, 45, .13) 6px 7px); }
.cell.push.used small { font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--sub); }

/* このホールの倍：チップと理由の札 */
.xbadge { display: flex; align-items: center; gap: 10px; width: -webkit-fit-content; width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 4px 16px 4px 4px; border-radius: 28px; background: #F1E7CA; box-shadow: inset 0 0 0 1px #C9A558, 0 3px 8px -4px rgba(80, 60, 20, .45); }
.xbadge b { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gm-chip); color: #F0D999; font: 600 16px/1 var(--num); letter-spacing: -.02em; box-shadow: 0 0 0 1px rgba(15, 20, 17, .55), 0 2px 4px rgba(0, 0, 0, .35); }
.xbadge span { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; color: var(--ink); }
.xbadge span:empty { display: none; }

/* 優勝予想：封をする札。自分の行は紙が浮いて真鍮の輪、入れたら真鍮の印 */
.pred { margin: 0 0 14px; padding: 14px 12px 12px; border: 1.5px dashed #C9A558; border-radius: 10px; background: rgba(241, 231, 202, .5); }
.pred h3, .gmline { display: flex; align-items: center; }
.pred h3 { flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: .1em; }
.pred h3::before, .gmline::before { content: "封"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--gm-seal); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 2px rgba(80, 60, 20, .4); color: #2B2412; font: 700 13px/24px var(--mincho); letter-spacing: 0; text-align: center; }
.pred h3 small { flex-basis: 100%; font-size: 13px; font-weight: 400; letter-spacing: .02em; color: var(--sub); }
.predrows { display: grid; gap: 6px; }
.predrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 10px 0 14px; border-radius: 10px; background: var(--slot); box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1px rgba(140, 107, 45, .14); text-align: left; transition: transform .12s ease; }
.predrow:active { transform: scale(.97); }
.predrow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 600; }
.predrow .nm small { margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--sub); }
.predrow .st { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 12px; border: 1px dashed #BBA978; border-radius: 15px; font-size: 13px; font-weight: 600; color: var(--sub); }
.predrow.me { background: #FFFDF5; box-shadow: inset 0 0 0 1.5px #C9A558, 0 3px 7px -3px rgba(80, 60, 20, .4); }
.predrow.me .st { border-color: #C9A558; color: var(--brass-ink); }
.predrow.has .st { border: 1px solid rgba(122, 91, 34, .45); background: linear-gradient(#EBD592, #C9A558); color: #2B2412; }
.predrow.has .st::before { content: "✓"; font: 700 12px/1 -apple-system, sans-serif; }
.pred .hint { margin: 10px 0 0; line-height: 1.7; }
.gmline { gap: 9px; margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #55534A; }

/* ハーフでのぞける知らせ：札の裏の色の帯に、真鍮のボタン */
.peekbar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--gm-back); box-shadow: inset 0 0 0 1px rgba(201, 165, 88, .75), 0 6px 12px -6px rgba(0, 0, 0, .5); color: var(--cream); }
.peekbar span { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; }
.peekbar button { flex: 0 0 auto; min-width: 68px; min-height: 44px; padding: 0 16px; border-radius: 10px; background: linear-gradient(#D6B670, #B8954A 55%, #A2813B); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .14); color: var(--ink); font-weight: 600; letter-spacing: .14em; transition: transform .12s ease; }
.peekbar button:active { transform: scale(.95); }

/* 伏せた札（もう1つの組・点を伏せている間の表）：大きな札の裏。まん中の上に「？」の丸い印 */
.gmveil { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; margin: 6px 0 14px; padding: 84px 16px 24px; border-radius: 10px; background: var(--gm-back); box-shadow: inset 0 0 0 5px #0F291D, inset 0 0 0 6px rgba(201, 165, 88, .85), 0 10px 20px -10px rgba(0, 0, 0, .6); color: var(--cream); text-align: center; }
.gmveil::before { content: "？"; position: absolute; top: 26px; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 1.5px solid #C9A558; background: #0F291D; box-shadow: 0 0 0 4px rgba(201, 165, 88, .16); color: var(--gm-gold); font: 400 21px/43px var(--mincho); text-align: center; }
.gmveil-t { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: .06em; text-wrap: balance; }
.gmveil .hint, .settle .gmveil .hint { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: rgba(242, 237, 223, .84); text-wrap: balance; }
.gmveil.big { margin: 12px 0 4px; padding-bottom: 14px; }
.gmveil.big .add { max-width: 320px; min-height: 50px; margin-top: 18px; border: 1.5px solid #C9A558; border-radius: 12px; background: rgba(201, 165, 88, .14); color: #F0D999; font-weight: 600; letter-spacing: .06em; transition: transform .12s ease; }
.gmveil.big .add:active { transform: scale(.97); }
.gmveil.big .ghost { min-height: 44px; margin-top: 2px; font-size: 14px; color: rgba(242, 237, 223, .82); text-decoration-color: rgba(242, 237, 223, .4); text-underline-offset: 5px; }
.gmveil.big .hint + .ghost, .gmveil.big .add + .ghost { margin-top: 14px; }

/* 下から出る板（予想を選ぶ・前半の順位）：打数の板と同じ家族 */
.predpad .padtitle small, .peekpad .padtitle small { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--brass-ink); }
.predpad .padfoot, .peekpad .padfoot { grid-template-columns: 1fr; }
.predkeys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.predkeys button { min-height: 58px; padding: 0 8px; border: 2px solid transparent; border-radius: 12px; background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 700; transition: transform .12s ease; }
.predkeys button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.predkeys button:active { transform: scale(.95); border-color: var(--brass); }
.predkeys button small { margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--sub); }
.ranks { list-style: none; margin: 0 0 4px; padding: 0; border-top: 1px solid var(--hair); }
.ranks li { display: flex; align-items: center; gap: 14px; min-height: 52px; border-bottom: 1px dashed #D3C49C; }
.ranks li b { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #C9A558; color: var(--brass-ink); font: 400 17px/1 var(--num); }
.ranks li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 600; }
.ranks li.lead b { border-color: transparent; background: var(--gm-seal); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), inset 0 -3px 4px rgba(0, 0, 0, .18), 0 2px 3px rgba(80, 60, 20, .3); color: #2B2412; font-weight: 600; }
.peekpad .hint { margin: 10px 0 0; line-height: 1.7; }

/* 3. 発表：伏せた札が縦に並び、下から1枚ずつ表に返る。1位は金の札
   （li の .top は、いちばん上の帯 .top と同じ名前なので、帯の指定を打ち消してある） */
.reveal { margin-top: 12px; }
.rvhead { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); font-size: 22px; font-weight: 600; letter-spacing: .3em; }
.rvhead small { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--sub); }
.rvcards { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; padding: 0; }
.reveal .rvcard { position: relative; top: auto; z-index: auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 62px; padding: 8px 16px 8px 10px; border-radius: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--gm-back); box-shadow: inset 0 0 0 3px #0F291D, inset 0 0 0 4px rgba(201, 165, 88, .8), 0 4px 8px -4px rgba(0, 0, 0, .5); color: var(--gm-gold); }
.rvrank { grid-column: 1; grid-row: 1; justify-self: center; font: 400 19px/1 var(--num); white-space: nowrap; }
.rvback { grid-column: 1 / -1; grid-row: 1; justify-self: center; font: 400 21px/1 var(--mincho); }
.reveal .rvcard.open { background: url(/img/grain.png), #FFFDF5; box-shadow: inset 0 0 0 1px #D9C9A0, 0 4px 9px -4px rgba(80, 60, 20, .45); color: var(--ink); }
.rvcard.open .rvrank { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #C9A558; color: var(--brass-ink); font-size: 16px; }
.rvname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.rvnet { font: 400 30px/1 var(--num); color: var(--ink); }
.rvnet.plus { color: var(--pos); }
.rvnet.minus { color: var(--red); }
/* 1位：伏せている間は二重の金の枠、返ると金の札 */
.reveal .rvcard.top { min-height: 86px; overflow: hidden; box-shadow: inset 0 0 0 3px #0F291D, inset 0 0 0 4.5px var(--gm-gold), inset 0 0 0 7px #0F291D, inset 0 0 0 8px rgba(201, 165, 88, .7), 0 6px 12px -5px rgba(0, 0, 0, .55); }
.rvcard.top .rvrank { font-size: 24px; }
.rvcard.top .rvback { font-size: 26px; }
.reveal .rvcard.top.open { background: linear-gradient(125deg, #FBEBB5, #DDBB68 38%, #B8954A 72%, #E6CC85); box-shadow: inset 0 0 0 1px #94712B, inset 0 0 0 4px rgba(255, 255, 255, .28), 0 12px 22px -10px rgba(120, 88, 24, .9); color: #2B2412; }
.rvcard.top.open .rvrank { width: 46px; height: 46px; border-color: transparent; background: #10281D; color: #F0D999; font-size: 17px; }
.rvcard.top.open .rvname { font-size: 26px; }
.rvcard.top.open .rvnet { font-size: 36px; font-weight: 600; color: #1D2A22; }
.reveal .gmans { margin: 4px 0 18px; }
/* カードが返る動き：前半は札の裏（::after）が向こうへ倒れ、後半は表がこちらへ起きる。1位は返ったあとに光が走る */
@media (prefers-reduced-motion: no-preference) {
  .reveal .rvcard.flipnow { animation: gm-flip .56s both; }
  .reveal .rvcard.flipnow::after { content: "？"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: inherit; background: var(--gm-back); box-shadow: inset 0 0 0 3px #0F291D, inset 0 0 0 4px rgba(201, 165, 88, .8); color: var(--gm-gold); font: 400 21px/1 var(--mincho); pointer-events: none; animation: gm-flipback .56s linear both; }
  .reveal .rvcard.top.flipnow::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); pointer-events: none; animation: gm-sheen .5s ease-out .56s both; }
}
@keyframes gm-flip {
  0% { transform: perspective(700px) rotateX(0); animation-timing-function: ease-in; }
  50% { transform: perspective(700px) rotateX(90deg); }
  50.01% { transform: perspective(700px) rotateX(-90deg); animation-timing-function: cubic-bezier(.2, .8, .3, 1.25); }
  100% { transform: perspective(700px) rotateX(0); }
}
@keyframes gm-flipback { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes gm-sheen { 0% { transform: translateX(-110%); opacity: 1; } 100% { transform: translateX(330%); opacity: 1; } }

/* ギャンブラーモードの答え：答え合わせの伝票（上の端は切り取りの波、行は点線、当たりは真鍮の印） */
.gmans { position: relative; margin: 22px 0 4px; padding: 18px 14px 6px; border-radius: 3px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #E0D3AE, 0 8px 16px -10px rgba(80, 60, 20, .5); }
.gmans::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 8px; background: radial-gradient(circle at 6px 4px, var(--paper) 3px, transparent 3.6px) 0 0 / 12px 8px repeat-x; }
.gmans h3 { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 600; letter-spacing: .18em; text-align: center; color: var(--brass-ink); }
.gmans p { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; margin: 0; padding: 11px 0; border-bottom: 1px dashed #DDD0AC; font-size: 15px; line-height: 1.6; }
.gmans p:last-child { border-bottom: 0; }
.gmans p b { font-size: 13px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; color: var(--brass-ink); }
.gmans p span { font-weight: 600; text-align: right; }
.gmans .nb { white-space: nowrap; }
.predans { list-style: none; margin: 0; padding: 2px 0 4px; }
.predans li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 4px 0 4px 8px; border-bottom: 1px dotted #E2D7B8; font-size: 15px; color: #55534A; }
.predans li:last-child { border-bottom: 0; }
.predans li.hit { color: var(--ink); font-weight: 600; }
.predans em { flex: 0 0 auto; padding: 4px 11px; border-radius: 13px; background: linear-gradient(#EBD592, #C9A558); box-shadow: inset 0 0 0 1px rgba(122, 91, 34, .4); color: #2B2412; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* ホールごとの表：番号の下の「×2」は小さな真鍮の札（組で倍がちがうときは2行に折る） */
table.holes td small.xm { display: block; width: -webkit-fit-content; width: fit-content; max-width: 4.6em; margin: 3px auto 0; padding: 1px 6px; border-radius: 9px; background: #F1E7CA; box-shadow: inset 0 0 0 1px rgba(201, 165, 88, .8); color: var(--brass-ink); font: 700 12px/1.35 var(--mincho); }

/* ---------- 11/23 使いやすさの直し（使いやすさの確かめ_2026-11-23.md の 1〜6。動きは app.js、見た目は Fable 5.2） ----------
   スタートは「2枚のティーの札」：選ぶ前は、どちらも紙が浮いて真鍮の輪（丸い印がゆっくり息をする）＝「どちらか押す」。
   選ぶと、押した札だけ深い緑に真鍮の ✓、もう1枚は静かにへこむ。ホールの画面では、同じ緑の丸（番号）と、カードの枠にのせた小さな1行で知らせる。
   新しいクラスだけに絞ってある（前の段は変えていない） */

/* 1. 準備：スタートの札（.seg の1本の枠を外して、2枚に分ける） */
.seg.startpick { gap: 10px; margin: 8px 0 6px; border: 0; border-radius: 0; overflow: visible; }
.startrow .seg.startpick { margin: 5px 0; }
.startpick button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 11px; align-items: center; align-content: center; min-height: 68px; padding: 10px 10px 10px 13px; border-radius: 12px; background: var(--slot); box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1px rgba(140, 107, 45, .14); color: #55534A; text-align: left; transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
.startpick button + button { border-left: 0; }
.startpick button::before { content: ""; grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(140, 107, 45, .55); background: var(--paper); font: 700 14px/23px -apple-system, sans-serif; text-align: center; color: #10281D; }
.startpick button b { font-size: 19px; font-weight: 600; letter-spacing: .1em; line-height: 1.3; white-space: nowrap; }
.startpick button small { font-size: 13px; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; color: #5C5A4E; }
.startpick button small i { margin-right: 1px; font: 400 18px/1 var(--num); font-style: normal; }
/* 選ぶ前：2枚とも浮かせる */
.startpick.unset button { background: #FFFDF5; box-shadow: inset 0 0 0 1.5px #C9A558, 0 4px 9px -4px rgba(80, 60, 20, .5); color: var(--ink); }
.startpick.unset button::before { border-color: var(--brass); }
/* 選んだ札 */
.startpick button.on { background: url(/img/grain.png), var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3px #C9A558, 0 5px 10px -5px rgba(15, 41, 29, .7); color: #fff; }
.startpick button.on::before { content: "✓"; border-color: transparent; background: var(--gm-seal); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .35); line-height: 24px; }
.startpick button.on small { color: #E6DFC8; }
/* 下の知らせ：札を指す小さな三角 */
.startsec h2 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.startsec h2 .note { margin-left: 0; white-space: nowrap; }
.hint.startneed::before { margin-top: 7px; }
.hint.startneed { display: flex; align-items: flex-start; gap: 7px; margin: 8px 2px 2px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--brass-ink); }
.hint.startneed::before { content: ""; flex: 0 0 auto; border: 5px solid transparent; border-top-width: 0; border-bottom: 7px solid var(--brass); }
@media (prefers-reduced-motion: no-preference) {
  .startpick.unset button::before { animation: st-wait 2.2s ease-out infinite; }
  .startpick.unset button + button::before { animation-delay: .35s; }
}
@keyframes st-wait { 0% { box-shadow: 0 0 0 0 rgba(184, 149, 74, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(184, 149, 74, 0); } }
/* 2組：左に「1組」「2組」。札は少し詰める */
.startsec .startrow .glabel { min-width: 2.4em; font-size: 15px; letter-spacing: .06em; color: var(--brass-ink); }
.startsec .glabel + .startpick button { column-gap: 8px; padding-left: 10px; padding-right: 6px; }
@media (max-width: 359px) {
  .startpick button { column-gap: 8px; padding: 10px 6px 10px 10px; }
  .startpick button b { font-size: 18px; letter-spacing: .06em; }
  .startsec .startrow { gap: 6px; }
  .startsec .startrow .glabel { min-width: 2.2em; }
  .startsec .glabel + .startpick { gap: 6px; }
  .startsec .glabel + .startpick button { column-gap: 6px; padding-left: 7px; padding-right: 4px; }
  .startsec .glabel + .startpick button::before { width: 20px; height: 20px; font-size: 11px; line-height: 17px; }
  .startsec .glabel + .startpick button.on::before { line-height: 18px; }
  .startsec .glabel + .startpick button b { font-size: 16px; letter-spacing: .02em; }
  .startsec .glabel + .startpick button small { font-size: 12px; letter-spacing: 0; }
  .startsec .glabel + .startpick button small i { font-size: 16px; }
}

/* 2. 選ばずに「始める」を押したとき：欄に赤みの枠、札の輪と知らせも同じ赤（.err の紙の上の色＝--red） */
.setup section.startsec.need { box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(158, 59, 44, .35), 0 18px 36px -16px rgba(0, 0, 0, .5); }
.startsec.need h2 { color: var(--red); }
.startsec.need h2 .note { color: var(--sub); }
.startsec.need .startpick.unset button { box-shadow: inset 0 0 0 1.5px var(--red), 0 4px 9px -4px rgba(120, 40, 25, .55); }
.startsec.need .startpick.unset button::before { border-color: var(--red); }
.startsec.need .hint.startneed { color: var(--red); font-weight: 700; }
.startsec.need .hint.startneed::before { border-bottom-color: var(--red); }
@keyframes st-wait-need { 0% { box-shadow: 0 0 0 0 rgba(158, 59, 44, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(158, 59, 44, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .startsec.need .startpick.unset button::before { animation-name: st-wait-need; }
}

/* 3. パーをたたんだ行：上下に真鍮の細い線、右に「直す」の小さな札。開いたときの見出しは、1行目に「パー」、2行目に説明 */
.parfold { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; padding: 8px 0 8px 2px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-t b { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .12em; line-height: 1.2; }
.pf-t b i { font: 400 28px/1 var(--num); font-style: normal; letter-spacing: .02em; }
.pf-t small { margin-top: 3px; font-size: 12px; line-height: 1.5; color: #5C5A4E; }
.parfold button { flex: 0 0 auto; min-width: 68px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #C9A558, 0 3px 6px -3px rgba(80, 60, 20, .45); color: var(--brass-ink); font-size: 15px; font-weight: 600; letter-spacing: .14em; transition: transform .12s ease; }
.parfold button:active { transform: scale(.95); }
.gsub.parhead { flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 20px 0 10px; font-size: 15px; white-space: nowrap; }
.gsub.parhead::after { order: 1; }
.parhead .note { order: 2; flex: 0 0 100%; font-size: 12px; font-weight: 400; line-height: 1.6; letter-spacing: .02em; white-space: normal; color: #5C5A4E; }

/* 4. ホール：スタートの知らせ
   まだ何も入っていないとき＝カードのいちばん上に、番号の丸・ひとこと・切りかえのボタン（高さ 105px くらい）。
   入れたあと＝カードの真鍮の枠の上に小さな1行をのせる（場所を取らない） */
.startflip { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; align-items: center; margin: 0 0 10px; padding: 9px 10px 10px; border-radius: 10px; background: #F1E7CA; box-shadow: inset 0 0 0 1px #C9A558, 0 3px 8px -4px rgba(80, 60, 20, .45); }
.startflip .sf-n { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 2px 2px 0; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3px #C9A558; color: var(--cream); font: italic 400 21px/1 var(--num); }
.startflip p { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.startflip p b { font-size: 15px; font-weight: 600; letter-spacing: .04em; line-height: 1.4; }
.startflip p span { font-size: 12px; line-height: 1.5; color: #55534A; }
.startflip p span span { display: inline-block; } /* 狭い画面では「ちがうときは、」のあとで折る */
.startflip button { grid-column: 1 / -1; min-height: 44px; padding: 0 10px; border-radius: 10px; background: #FFFDF5; box-shadow: inset 0 0 0 1px var(--green-2), 0 3px 6px -3px rgba(80, 60, 20, .45); color: var(--green); font-size: 15px; font-weight: 600; letter-spacing: .06em; transition: transform .12s ease; }
.startflip button:active { transform: scale(.97); }
@media (max-width: 359px) {
  .startflip { grid-template-columns: minmax(0, 1fr); row-gap: 7px; padding: 8px 8px 9px; }
  .startflip .sf-n { display: none; }
  .startflip p { padding: 0 2px; }
  .startflip p b { font-size: 15px; letter-spacing: .02em; }
  .startflip button { font-size: 14px; letter-spacing: .02em; }
}
main.hole > .startinfo { position: absolute; top: 4px; left: 50%; z-index: 1; margin: 0; padding: 0 10px; transform: translateX(-50%); background: linear-gradient(transparent 2px, var(--paper) 2px); white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 12px; letter-spacing: .14em; color: var(--brass-ink); }

/* 5. 招待：文 → 真鍮のボタン（送る）→ 紙の札（QR と番号）→ リンクをコピー → 小さな説明 */
.invite .lead { margin: 6px 2px 16px; font-size: 15px; line-height: 1.8; }
.qrcard { position: relative; width: -webkit-fit-content; width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 20px 20px 14px; border-radius: 3px; background: url(/img/grain.png), var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 18px 36px -14px rgba(0, 0, 0, .55); }
.qrcard::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(184, 149, 74, .6); border-radius: 2px; pointer-events: none; }
.qrcard .qr { display: block; width: -webkit-fit-content; width: fit-content; margin: 0 auto; padding: 8px; border-radius: 6px; }
.qrcard .qr svg { width: min(48vw, 188px); }
.invite .qrcard .code { margin: 10px 0 0; font-size: 13px; letter-spacing: .1em; color: var(--sub); white-space: nowrap; }
.invite .qrcard .code b { font-size: 26px; color: var(--ink); }
.invite .ghost { display: flex; align-items: center; justify-content: center; max-width: 300px; min-height: 48px; margin: 14px auto 0; border: 1px solid rgba(201, 165, 88, .65); border-radius: 12px; color: var(--cream); font-weight: 600; letter-spacing: .1em; text-decoration: none; transition: transform .12s ease; }
.invite .ghost:active { transform: scale(.97); }
.invite > .hint { margin: 16px 4px 0; font-size: 13px; line-height: 1.8; text-align: left; color: rgba(242, 237, 223, .84); }

/* ---------- 11/23 第3弾の見た目（いつものルール・自分で作るゲーム・見るだけのリンク。動きは app.js、見た目は Fable 5.2） ----------
   紙のスコアカードの家族のまま、3つの印で見分ける：
   ・いつものルール＝真鍮の穴のあいた「荷札」。届いたルールは、真鍮の「届」の印を押した1枚の札
   ・自分で作るゲーム＝白い（象牙の）駒。ふちが緑で ＋ ＝取る、ふちが赤い点線で － ＝払う（色のコイン＝もとのゲームと、面の色で見分ける）
   ・見るだけ＝紙ではなく、暗い板に真鍮の点線と「目」の印（入れる所＝紙・真鍮のボタンと取りちがえない）
   新しいクラスだけに絞ってある（前の段は変えていない）。色は :root の変数と、前の段で使っている色から */
:root {
  --take: var(--pos);
  --pay: var(--red);
  --tok: radial-gradient(circle at 34% 28%, #fff, #FFFDF5 52%, var(--slot));
  --lines: linear-gradient(transparent 27px, rgba(184, 149, 74, .32) 27px);
  --hole: radial-gradient(circle, var(--turf) 0 2.5px, #C9A558 3px 4.5px, transparent 5px);
}

/* ===== A. いつものルール ===== */
/* 1. 準備の画面：保存したルールは荷札（左に真鍮の穴）。押すと入る */
.rulesec h2 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.rulesec h2 .note { margin-left: 0; }
.rulesec > .hint { line-height: 1.7; }
.chips.rulechips { gap: 8px; margin: 10px 0 10px; }
.rulechips .chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 46px; padding: 6px 16px 6px 9px; border-radius: 23px 8px 8px 23px; background: #FFFDF5; box-shadow: inset 0 0 0 1.5px #C9A558, 0 4px 8px -4px rgba(80, 60, 20, .5); font-size: 16px; line-height: 1.3; letter-spacing: .04em; text-align: left; overflow-wrap: anywhere; transition: transform .12s ease; }
.rulechips .chip::before, .myrules .rulecard h2::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--hole); }
.rulechips .chip:active { transform: scale(.96); }
.rulesec .add { margin-top: 2px; }
.rulelink { display: flex; width: -webkit-fit-content; width: fit-content; min-height: 44px; margin: 4px 0 -6px auto; padding: 0 2px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: underline; text-decoration-color: rgba(140, 107, 45, .5); text-underline-offset: 5px; }

/* 2. 保存したルール：1枚ずつの札。中身は伝票のように1行ずつ、メモは罫線の紙 */
.setup section.rulecard { padding: 16px 16px 14px; }
.rulecard h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; overflow-wrap: anywhere; }
.rulesum { margin: 0; border-top: 1px solid var(--hair); text-align: left; }
.rulesum span { position: relative; display: block; padding: 8px 2px 8px 18px; border-bottom: 1px dashed #DDD0AC; font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.rulesum span::before { content: ""; position: absolute; left: 4px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.rulesum i { display: none; }
.rulememo { margin: 14px 0 0; padding: 0 12px; border-left: 2px solid rgba(158, 59, 44, .4); background: var(--lines) 0 0 / 100% 28px; white-space: pre-line; font-size: 15px; line-height: 28px; text-align: left; color: var(--ink); overflow-wrap: anywhere; }
.ruleacts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; margin-top: 16px; }
.ruleacts .primary { min-height: 52px; font-size: 17px; letter-spacing: .1em; }
.ruleacts .ghost { width: auto; min-width: 60px; min-height: 48px; margin: 0; padding: 0 12px; color: var(--red); white-space: nowrap; text-underline-offset: 4px; }
.myrules section:not(.rulecard) .hint, .getrule section:not(.rulecard) .hint { margin: 4px 2px; font-size: 15px; line-height: 1.8; color: var(--ink); }

/* 3. ルールが届きました：札の上のまん中に真鍮の「届」の印、二重の真鍮の枠。名前を大きく → 中身 → 大きなボタン */
.setup section.rulecard.arrived { margin-top: 36px; padding: 46px 18px 18px; text-align: center; box-shadow: inset 0 0 0 1.5px #C9A558, inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(184, 149, 74, .5), 0 18px 36px -16px rgba(0, 0, 0, .5); }
.rulecard.arrived::before { content: "届"; position: absolute; top: -26px; left: 50%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--gm-seal); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .32), inset 0 0 0 5px rgba(122, 91, 34, 0), inset 0 0 0 6px rgba(122, 91, 34, .45), inset 0 -4px 5px rgba(0, 0, 0, .18), 0 4px 8px rgba(0, 0, 0, .4); color: #2B2412; font: 600 24px/56px var(--mincho); text-align: center; transform: rotate(-8deg); }
.rulecard.arrived h2 { display: block; margin: 0; font-size: 26px; line-height: 1.35; letter-spacing: .1em; }
.rulecard.arrived h2::after { content: ""; display: block; width: 46px; height: 1px; margin: 12px auto 14px; background: #C9A558; box-shadow: 0 3px 0 rgba(201, 165, 88, .4); }
.rulecard.arrived .rulesum { border-top: 0; padding: 2px 10px; border-radius: 8px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #E0D3AE; }
.rulecard.arrived .rulesum span:last-of-type { border-bottom: 0; }
/* 長いメモは5行まで見せて、中で動かす（下のボタンが遠くならないように） */
.rulecard.arrived .rulememo { max-height: 140px; overflow-y: auto; -webkit-overflow-scrolling: touch; background-attachment: local; }
.rulecard.arrived .ruleacts { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.rulecard.arrived .ruleacts .primary { min-height: 60px; font-size: 18px; letter-spacing: .1em; }
.rulecard.arrived .ruleacts .add { min-height: 50px; margin: 0; padding: 6px 8px; border: 1.5px dashed #C9A558; border-radius: 12px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--green); transition: transform .12s ease; }
.rulecard.arrived .ruleacts .add:active { transform: scale(.97); }
@media (max-width: 359px) {
  .rulecard.arrived .ruleacts .primary { font-size: 17px; letter-spacing: .04em; }
}
@keyframes rule-seal { 0% { transform: translateY(-26px) rotate(6deg) scale(1.7); opacity: 0; } 60% { transform: rotate(-8deg) scale(.9); opacity: 1; } 80% { transform: rotate(-8deg) scale(1.04); } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@keyframes rule-rise { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .rulecard.arrived { animation: rule-rise .45s cubic-bezier(.2, .8, .3, 1) both; }
  .rulecard.arrived::before { animation: rule-seal .5s cubic-bezier(.3, 1.3, .5, 1) .35s both; }
}

/* ===== B. 自分で作るゲーム・ルールのメモ ===== */
/* 名前の頭の2字の印＝白い駒。取る＝緑のふち、払う＝赤いふち */
.mmark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--tok); box-shadow: inset 0 0 0 2px var(--brass), 0 1px 2px rgba(80, 60, 20, .4); overflow: hidden; white-space: nowrap; font: 700 12px/1 var(--mincho); letter-spacing: 0; color: var(--ink); }
.take .mmark { box-shadow: inset 0 0 0 2px var(--take), 0 1px 2px rgba(80, 60, 20, .4); color: var(--green); }
.pay .mmark { box-shadow: inset 0 0 0 2px var(--pay), 0 1px 2px rgba(80, 60, 20, .4); color: var(--pay); }

/* 4. 準備の画面：作ったゲームの札。チェックの丸の場所に駒（ほかのゲームの行と、名前・説明の左がそろう） */
.minesec { margin-top: 4px; }
.minesec .gsub .note { font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--sub); white-space: nowrap; }
.minesec > .hint { line-height: 1.7; }
.game.mine { padding-bottom: 8px; }
.game.mine .mname { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; font-weight: 700; }
.game.mine .macts { display: flex; flex: 0 0 auto; }
.game.mine .macts .link { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--brass-ink); text-decoration-color: rgba(140, 107, 45, .5); text-underline-offset: 5px; }
.game.mine .macts .link[data-act="cdel"] { color: var(--red); text-decoration-color: rgba(158, 59, 44, .45); }

/* 作る欄＝真鍮の点線で囲んだ「作る札」。切りかえは、へこんだ溝の上で選んだほうだけ浮く */
.game.cedit { margin: 10px 0 12px; padding: 14px 12px 12px; border: 1.5px dashed #C9A558; border-radius: 12px; background: rgba(241, 231, 202, .5); }
.cedit .clab { display: flex; align-items: center; gap: 10px; }
.cedit .clab span, .cedit .crow .glabel, .cedit .pts label { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--brass-ink); white-space: nowrap; }
.cedit .clab input { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--hair); border-radius: 10px; background: #FFFDF5; font-size: 17px; }
.cedit .clab input::placeholder, .setup textarea.memo::placeholder { color: var(--sub); opacity: 1; }
.cedit .crow { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.cedit .seg.cseg { display: flex; flex: 1 1 auto; width: 100%; gap: 3px; margin: 0; padding: 3px; border: 0; border-radius: 12px; overflow: visible; background: var(--slot); box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1px rgba(140, 107, 45, .14); }
.cedit .cseg button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; border-radius: 9px; background: transparent; color: #55534A; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .12s ease, background .2s ease, color .2s ease; }
.cedit .cseg button + button { border-left: 0; }
.cedit .cseg button.on { background: url(/img/grain.png), var(--green); box-shadow: inset 0 0 0 1.5px var(--green), inset 0 0 0 2.5px #C9A558, 0 2px 4px -1px rgba(15, 41, 29, .55); color: #fff; }
.cedit .cseg button[data-k="pay"][data-v="true"].on { background: url(/img/grain.png), var(--pay); box-shadow: inset 0 0 0 1.5px var(--pay), inset 0 0 0 2.5px #E3C987, 0 2px 4px -1px rgba(90, 30, 20, .55); }
.cedit .pts { align-items: center; gap: 8px; margin-top: 12px; padding: 0; }
.cedit .pts label { gap: 10px; }
.cedit .pts input { width: 68px; min-height: 46px; border: 1.5px solid var(--hair); border-radius: 10px; background: #FFFDF5; font: 400 22px/1 var(--num); letter-spacing: 0; color: var(--ink); }
.cedit .pts .unit { font-size: 14px; }
.cedit .hint { margin: 6px 2px 0; }
.cedit .hint.cline { position: relative; margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #E0D3AE; font-size: 14px; line-height: 1.7; color: var(--ink); }
.cedit .hint.cline::before { content: ""; position: absolute; top: -7px; left: 18px; border: 6px solid transparent; border-top-width: 0; border-bottom: 7px solid #E0D3AE; }
.cedit .err { min-height: 0; margin: 8px 2px 0; font-size: 14px; color: var(--red); }
.cedit .err:empty { display: none; }
.cedit .cbtns { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; margin-top: 12px; }
.cedit .cbtns .primary { min-height: 52px; font-size: 17px; letter-spacing: .08em; }
.cedit .cbtns .ghost { width: auto; min-height: 48px; margin: 0; padding: 0 14px; white-space: nowrap; text-underline-offset: 4px; }
@media (max-width: 359px) {
  .game.cedit { padding: 12px 9px 10px; }
  .cedit .cseg button { font-size: 13px; letter-spacing: -.02em; }
  .cedit .cbtns .primary { font-size: 16px; letter-spacing: .02em; }
}

/* ルールのメモ：罫線の入ったメモの紙 */
.setup textarea.memo { display: block; width: 100%; min-height: 98px; margin: 0; padding: 6px 12px; border: 1.5px solid var(--hair); border-radius: 10px; background: var(--lines) 0 6px / 100% 28px local, #FFFDF5; -webkit-appearance: none; appearance: none; resize: vertical; font: 16px/28px var(--mincho); color: var(--ink); }
.setup textarea.memo:focus { outline: none; border-color: var(--green); }

/* 5. ホール：見出しは2行（名前／取る・払うと点）で、ほかの見出しと同じ高さ。押したマスは白い駒 */
.sec.mine { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: end; }
.sec.mine .sn { display: flex; align-items: center; gap: 7px; min-width: 0; line-height: 1.25; white-space: nowrap; }
.sec.mine .sn::before { content: ""; flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--tok); box-shadow: inset 0 0 0 2px var(--take), 0 1px 1px rgba(80, 60, 20, .35); }
.sec.mine.pay .sn::before { box-shadow: inset 0 0 0 2px var(--pay), 0 1px 1px rgba(80, 60, 20, .35); }
.sec.mine small { grid-column: 1; grid-row: 2; min-width: 0; padding-left: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; color: var(--take); }
.sec.mine.pay small { color: var(--pay); }
.sec.mine .howto { grid-column: 2; grid-row: 1 / span 2; }
.cell.tap.mine { position: relative; }
.cell.mine .coin { position: relative; background: var(--tok); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.cell.mine.take .coin { box-shadow: inset 0 0 0 2.5px var(--take), inset 0 -3px 4px rgba(80, 60, 20, .16), 0 2px 3px rgba(0, 0, 0, .28); color: var(--green); }
.cell.mine.pay .coin { box-shadow: inset 0 0 0 2.5px var(--pay), inset 0 -3px 4px rgba(80, 60, 20, .16), 0 2px 3px rgba(0, 0, 0, .28); color: var(--pay); }
.cell.mine.pay .coin::before { content: ""; position: absolute; inset: 4.5px; border-radius: 50%; border: 1px dashed rgba(158, 59, 44, .6); }
/* 駒の右上に ＋（取る）・－（払う）の小さな印：色が見分けにくい人にも */
.cell.mine.hit::after { content: "＋"; position: absolute; top: 1px; left: calc(50% + 9px); width: 17px; height: 17px; border-radius: 50%; background: var(--take); box-shadow: 0 0 0 1.5px var(--slot); color: #fff; font: 700 12px/17px -apple-system, "Hiragino Sans", sans-serif; text-align: center; }
.cell.mine.pay.hit::after { content: "－"; background: var(--pay); }
.cell.mine.hit:disabled { opacity: 1; }
.grid.c5 .cell.mine .coin { width: 36px; height: 36px; font-size: 12px; }
.grid.c5 .cell.mine.pay .coin::before { inset: 4px; }
.grid.c5 .cell.mine.hit::after { left: calc(50% + 5px); }

/* 6. このラウンドの決まり：ホールのいちばん下の1行（高さ 54px）。真鍮の「決」の印・見出し・メモの1行目 */
.localbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 11px; align-items: center; min-height: 54px; margin: 16px 0 2px; padding: 7px 12px 7px 9px; border-radius: 10px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #C9A558, 0 3px 8px -4px rgba(80, 60, 20, .45); color: var(--ink); text-decoration: none; transition: transform .12s ease; }
.localbar:active { transform: scale(.98); }
.localbar::before { content: "決"; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--gm-seal); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(0, 0, 0, .16), 0 1px 2px rgba(80, 60, 20, .4); color: #2B2412; font: 700 15px/34px var(--mincho); text-align: center; }
.localbar b { grid-column: 2; align-self: end; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; color: var(--brass-ink); }
.localbar span { grid-column: 2; align-self: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.45; }
.localbar i { grid-column: 3; grid-row: 1 / span 2; font: 400 22px/1 var(--num); font-style: normal; color: var(--brass-ink); }

/* 「このラウンドの決まり」のページ（見るだけの画面の下にも同じものが出る） */
.local .memotext { margin: 10px 0 2px; padding: 0 12px; border-left: 2px solid rgba(158, 59, 44, .4); background: var(--lines) 0 0 / 100% 28px; font-size: 16px; line-height: 28px; overflow-wrap: anywhere; }
.local .lgame { padding: 12px 0; border-bottom: 1px dashed #D3C49C; }
.local .lgame:first-of-type { border-top: 1px solid var(--hair); margin-top: 8px; }
.local .lgame h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.local .lgame p { margin: 4px 0 0 40px; font-size: 14px; line-height: 1.7; }
.local .lgame + .hint { margin: 12px 2px 2px; line-height: 1.7; }
.rules.local > .lnote { margin: 4px 6px 0; line-height: 1.7; color: rgba(242, 237, 223, .84); }

/* ===== C. 見るだけのリンク ===== */
/* 「目」の印（見るだけの所にだけ出る）：葉の形のふち＋まん中の点 */
.sync.watching::before, .watchsec h2::before, .watchnote::before, .watchhead .note::before, .round.watchround::before { content: ""; flex: 0 0 auto; box-sizing: border-box; width: 12px; height: 12px; margin: 0; border: 1.5px solid currentColor; border-radius: 75% 15%; background: radial-gradient(circle, currentColor 0 2.1px, transparent 2.6px); transform: rotate(45deg); }
/* 真鍮のうすい札（上の帯・見出しの横・進み具合） */
.sync.watching, .watchhead .note, .watchnote .wn-p { display: inline-flex; align-items: center; gap: 7px; border-radius: 14px; background: rgba(201, 165, 88, .16); box-shadow: inset 0 0 0 1px rgba(201, 165, 88, .7); color: #F0D999; white-space: nowrap; }

/* 7. 招待の画面：仲間の招待（真鍮のボタン・紙の QR）の下に、間をあけて暗い板。ボタンは塗らずに輪だけ */
.invite .watchsec { margin: 44px 0 0; padding: 18px 16px 14px; border: 1px dashed rgba(201, 165, 88, .75); border-radius: 14px; background: rgba(15, 41, 29, .62); text-align: left; }
.watchsec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding-left: 4px; font-size: 17px; font-weight: 600; letter-spacing: .08em; color: var(--cream); }
.watchsec h2::before { width: 15px; height: 15px; color: var(--gm-gold); background: radial-gradient(circle, currentColor 0 2.7px, transparent 3.2px); }
.invite .watchsec .hint { margin: 0 0 14px; font-size: 14px; line-height: 1.75; text-align: left; color: rgba(242, 237, 223, .86); }
.watchsec .add { min-height: 50px; margin: 0; border: 1.5px solid #C9A558; border-radius: 12px; background: rgba(201, 165, 88, .14); color: #F0D999; font-weight: 600; letter-spacing: .06em; transition: transform .12s ease; }
.watchsec .add:active { transform: scale(.97); }
.invite .watchsec .ghost { display: block; max-width: none; min-height: 44px; margin: 6px 0 0; border: 0; border-radius: 0; font-size: 14px; font-weight: 400; letter-spacing: 0; color: rgba(242, 237, 223, .84); text-decoration: underline; text-decoration-color: rgba(242, 237, 223, .4); text-underline-offset: 5px; }
.invite .watchsec #watchmsg { margin: 8px 0 2px; font-weight: 600; color: #F0D999; }
.invite .watchsec #watchmsg:empty { display: none; }

/* 8. 見るだけの画面：上の帯の右に「目・見るだけ」の札。いちばん上に暗い板の知らせ（紙のカード＝点と表、とは別のもの） */
.sync.watching { max-width: none; overflow: visible; padding: 5px 11px 5px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.watchnote { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; margin: 2px 0 12px; padding: 13px 14px 13px 20px; border: 1px dashed rgba(201, 165, 88, .75); border-radius: 12px; background: rgba(15, 41, 29, .72); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .6); font-size: 14px; line-height: 1.6; color: var(--cream); }
.watchnote::before { grid-row: 1 / span 4; width: 19px; height: 19px; color: var(--gm-gold); background: radial-gradient(circle, currentColor 0 3.4px, transparent 3.9px); }
.watchnote > span { grid-column: 2; min-width: 0; }
.watchnote .wn-t { font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: .06em; }
.watchnote .wn-s { color: rgba(242, 237, 223, .86); }
.watchnote .wn-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; }
.watchnote .wn-p { gap: 6px; padding: 3px 12px; font-size: 13px; }
.watchnote .wn-p b { font-size: 15px; font-weight: 600; color: var(--cream); }
.watchnote .wtime { margin: 0; font-size: 13px; color: rgba(242, 237, 223, .8); }
.watchnote .wtime:empty { display: none; }
.watchnote .wn-why { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.6; color: #F2C9A0; }
.watch .gmveil.big { padding-bottom: 28px; }
/* 読みこみ中・開けないとき */
main.sum.watch > section:only-child { padding: 18px 16px 14px; }
main.sum.watch > section:only-child > .hint { margin: 0 0 4px; font-size: 15px; line-height: 1.8; color: var(--ink); }
main.sum.watch > section:only-child > .ghost { min-height: 48px; margin-top: 8px; text-underline-offset: 4px; }

/* 9. はじめの画面の「見ているラウンド」：紙の札（自分のラウンド）ではなく、暗い板に点線と目の印 */
.homep h2.watchhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.homep h2.watchhead .note { margin-left: 0; padding: 3px 11px 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #F0D999; }
.round.watchround { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 10px 14px 10px 18px; border: 1px dashed rgba(201, 165, 88, .75); background: rgba(15, 41, 29, .62); color: var(--cream); }
.round.watchround::before { grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--gm-gold); background: radial-gradient(circle, currentColor 0 2.9px, transparent 3.4px); }
.round.watchround b { grid-column: 2; min-width: 0; font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; }
.round.watchround span { grid-column: 2; color: rgba(242, 237, 223, .8); }
/* 「消す」が出ていないときは、札を行の幅いっぱいに */
.tidyrow > .round.watchround:only-child { grid-column: 1 / -1; }
/* 11/23 Fable の文言の提案 1：届いたルールの「押すと…」の1行（Claude が足した） */
.rulecard.arrived .rulewhat { margin: 16px 0 -6px; font-size: 14px; line-height: 1.6; }

/* ---------- 11/23 第3弾 4 の見た目（打数だけで決まる6つのゲームとハンデ。動きは app.js、見た目は Fable 5.2） ----------
   準備の札の中に、押す札が2つの形で出る。形で見分ける：
   ・外す（参加しない人）＝前からの、1枚ずつ離れた丸い札。押すと線が引かれて外れる（前の段のまま）
   ・1人を選ぶ（「1」の人・相方）＝へこんだ1本の溝に名前が並び、選んだ1人だけが白い駒になって浮く。左の丸は、選ぶ前は空の輪、選ぶと真鍮の印
     （「1」の人は真鍮のコインに「1」、相方は輪の中に真鍮の点）
   ・ハンデ＝スコアカードの欄。真鍮の「HC」の印、名前と数のあいだは点線（表の「HC 18」と同じ印）
   新しいクラスだけに絞ってある（前の段は変えていない） */

/* ===== 1人を選ぶ：.onechips（「1」の人）・.matechips（相方） ===== */
.game .chips.onechips, .game .chips.matechips { gap: 4px; margin: 4px 0 10px 38px; padding: 4px; border-radius: 16px; background: var(--slot); box-shadow: inset 0 1px 2px rgba(80, 60, 20, .22), inset 0 0 0 1px rgba(140, 107, 45, .16); }
.onechips .chip, .matechips .chip { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: flex-start; gap: 8px; max-width: 100%; min-height: 44px; padding: 5px 14px 5px 10px; border-radius: 12px; background: transparent; box-shadow: none; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; text-align: left; overflow-wrap: anywhere; color: #4E4C42; transition: transform .12s ease; }
.onechips .chip:active, .matechips .chip:active { transform: scale(.96); }
/* 左の丸：選ぶ前は空の輪 */
.onechips .chip::before, .matechips .chip::before { content: ""; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 253, 245, .6); box-shadow: inset 0 0 0 1.5px rgba(122, 91, 34, .6); }
/* 選んだ1人：白い駒が溝から浮く */
.onechips .chip.on, .matechips .chip.on { background: #FFFDF5; box-shadow: inset 0 0 0 1.5px #C9A558, 0 1px 0 rgba(255, 255, 255, .7), 0 3px 7px -2px rgba(80, 60, 20, .5); font-weight: 700; color: var(--ink); }
/* 「1」の人：真鍮のコインに「1」 */
.onechips .chip.on::before { content: "1"; background: radial-gradient(circle at 34% 28%, #F7E3A6, #D2AE5C 50%, #9C7A31); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -2px 2px rgba(0, 0, 0, .16), 0 1px 2px rgba(80, 60, 20, .4); font: 700 15px/1 var(--num); letter-spacing: 0; color: #2B2412; }
/* 相方：輪の中に真鍮の点 */
.matechips .chip.on::before { background: radial-gradient(circle, var(--brass-ink) 0 4.5px, #FFFDF5 5px); box-shadow: inset 0 0 0 1.5px #A8853D; }

/* ===== ハンデの欄：.hcbox（.hchint・.hcs・.hcrow） ===== */
.hcbox { position: relative; margin: 8px 0 10px; padding: 12px 12px 6px; border-radius: 12px; background: rgba(241, 231, 202, .5); box-shadow: inset 0 0 0 1px #E0D3AE; }
.hcbox .hchint { position: relative; min-height: 36px; margin: 0 0 8px; padding-left: 44px; font-size: 13px; line-height: 1.7; color: #5C5A4E; }
.hcbox .hchint::before { content: "HC"; position: absolute; left: 0; top: 1px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #F7E3A6, #D2AE5C 50%, #9C7A31); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(0, 0, 0, .16), 0 1px 2px rgba(80, 60, 20, .4); font: 700 13px/1 var(--num); letter-spacing: .02em; color: #2B2412; }
.hcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 0 18px; padding: 0; }
.hcrow { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 56px; border-top: 1px solid rgba(205, 185, 138, .55); font-size: 15px; font-weight: 600; color: var(--ink); }
/* 名前は2行まで（5字までは1行。長い名前は折って、入りきらない分だけ「…」） */
.hcrow span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; flex: 0 1 auto; min-width: 0; overflow: hidden; line-height: 1.3; overflow-wrap: anywhere; }
/* 名前と数のあいだの点線（すき間がなければ出ない） */
.hcrow::after { content: ""; order: 1; flex: 1 1 0; min-width: 0; height: 0; margin-top: 8px; border-bottom: 2px dotted rgba(140, 107, 45, .45); }
.hcrow input.hc { order: 2; flex: 0 0 auto; width: 60px; min-height: 44px; padding: 0 2px; border: 1.5px solid var(--hair); border-radius: 10px; background: #FFFDF5; text-align: center; font: 400 21px/1 var(--num); letter-spacing: 0; color: var(--ink); }
.hcrow input.hc::placeholder { color: #A39E8C; }

/* ===== 表・精算のスコアの表：名前の下の「HC 18」は、真鍮の細い輪の小さな札 ===== */
.t.score td.nm .hcnote { display: block; width: -webkit-fit-content; width: fit-content; margin-top: 3px; padding: 2px 8px 1px; border-radius: 10px; box-shadow: inset 0 0 0 1px #C9A558; font: 600 12px/1.4 var(--num); letter-spacing: .06em; color: var(--brass-ink); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .onechips .chip, .matechips .chip { transition: none; }
  .onechips .chip:active, .matechips .chip:active { transform: none; }
}

/* ---------- 11/24 第3弾 4（2つ目）の見た目（ホールの画面で押す3つのゲーム：ウルフ・お友達・オネストジョン。動きは app.js、見た目は Fable 5.2） ----------
   ・ウルフ＝深い緑の狼の顔の印（--wolf-mark）。見出し・名前の行・ウルフ自身のマスを、同じ深い緑でつなぐ。相方は真鍮のコイン
   ・お友達＝左は紺のコイン。2人そろうと、残りのマスに点線の輪で「右」が出る。3人以上は「払う」の赤で知らせる
   ・オネストジョン＝優勝予想（真鍮の「封」）と見分けるため、「封」の印を深い緑に。数字の板は電話の並び（3列）
   新しいクラスだけに絞ってある（前の段は変えていない） */
:root {
  --wolf-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23173F2E' d='M6 3.5L4.5 15l4.5 6 7 7 7-7 4.5-6L26 3.5l-5.5 6q-4.5-1.6-9 0z'/%3E%3Cpath fill='none' stroke='%23F2EDDF' stroke-width='2.2' stroke-linecap='round' d='M10.5 15.3l3.2 1.6M21.5 15.3l-3.2 1.6'/%3E%3Cpath fill='%23E3C987' d='M14 22.6h4L16 25.2z'/%3E%3C/svg%3E");
  --wolf-coin: radial-gradient(circle at 34% 28%, #3F7D60, #1D4A36 48%, #0F291D);
}

/* ===== 見出し：.sec.wolf・.sec.otomo（題／いまの状態の1行／右に「遊び方」。長い1行でも「遊び方」は落ちない） ===== */
.sec.wolf, .sec.otomo { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: end; }
.sec.wolf .sn, .sec.otomo .sn { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 7px; min-width: 0; line-height: 1.3; white-space: nowrap; }
.sec.wolf .sn::before { content: ""; flex: 0 0 auto; width: 19px; height: 19px; background: var(--wolf-mark) center / contain no-repeat; }
/* 状態の1行（先頭の全角の空きは、字下げで打ち消す） */
.sec.wolf small, .sec.otomo small { grid-column: 1; grid-row: 2; min-width: 0; margin-top: 3px; text-indent: -1em; font-size: 13px; line-height: 1.45; letter-spacing: .02em; color: #55534A; overflow-wrap: anywhere; }
.sec.wolf.set small, .sec.otomo.set small { font-weight: 600; color: var(--ink); }
.sec.wolf .howto, .sec.otomo .howto { grid-column: 2; grid-row: 1 / span 2; }
/* お友達のまちがい（左が3人以上）：「払う」の赤 */
.sec.otomo.bad { border-bottom-color: rgba(158, 59, 44, .55); }
.sec.otomo.bad small { text-indent: 0; font-weight: 700; color: var(--red); }
.sec.otomo.bad small::before { content: "!"; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font: 700 13px/18px -apple-system, "Hiragino Sans", sans-serif; text-align: center; vertical-align: 1px; }

/* ===== 名前の行：このホールのウルフ（名前の上に狼の印。4人でも5人の並びでも、名前の幅は変えない） ===== */
.cell.name.wolfnm { padding-top: 21px; background: var(--wolf-mark) center top / 19px 19px no-repeat; font-weight: 700; color: var(--green); }
.cell.name.wolfnm.me { color: var(--green); }

/* ===== ウルフのマス：相方（真鍮のコイン）と、ウルフ自身のマス（深い緑の輪「1人で」→ 深い緑のコイン「1人」） ===== */
.cell.wolf .coin { background: radial-gradient(circle at 34% 28%, #FBEBB5, #D8B45E 48%, #94712B); color: #3E2C0C; font-weight: 700; }
.cell.tap.wolf.lone { box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1.5px rgba(23, 63, 46, .5); }
.cell.wolf.lone small { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px dashed rgba(23, 63, 46, .7); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: -.03em; white-space: nowrap; color: var(--green); }
/* 相方を選んだあとのウルフのマス：うすくして、押せば「1人で」に替えられることだけ残す */
.cell.tap.wolf.lone.off { box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1px rgba(140, 107, 45, .14); }
.cell.wolf.lone.off small { border-color: rgba(110, 108, 95, .5); font-weight: 600; color: #5C5A4E; }
.cell.wolf.lone .coin { background: var(--wolf-coin); box-shadow: inset 0 0 0 2px #C9A558, inset 0 -3px 4px rgba(0, 0, 0, .25), 0 2px 3px rgba(0, 0, 0, .3); color: #F5E3AE; }
.grid.c5 .cell.wolf .coin, .grid.c5 .cell.left .coin { width: 36px; height: 36px; }
.grid.c5 .cell.wolf.lone small { width: 36px; height: 36px; }

/* ===== お友達のマス：左（紺のコイン）。2人そろうと、残りのマスに「右」の点線の輪 ===== */
.cell.left .coin { background: radial-gradient(circle at 34% 28%, #5A82AE, #2B4F78 48%, #1A3554); font-size: 14px; font-weight: 700; }
.sec.otomo.set ~ .cell.tap.left:not(.hit)::after { content: "右"; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed #A8996E; font-size: 13px; font-weight: 600; line-height: 1; color: #5C5A4E; }
.sec.otomo.bad ~ .cell.tap.left.hit { box-shadow: inset 0 1px 2px rgba(80, 60, 20, .2), inset 0 0 0 1.5px rgba(158, 59, 44, .75); }
.grid.c5 .sec.otomo.set ~ .cell.tap.left:not(.hit)::after { width: 32px; height: 32px; }
/* もう1つの組を見ているとき（押せない）も、置いたコインはうすくしない */
.cell.wolf.hit:disabled, .cell.left.hit:disabled { opacity: 1; }

/* ===== オネストジョンの予想：.pred.hj・.gmline.hjline（「封」の印を深い緑に。優勝予想は真鍮のまま） ===== */
.pred.hj { border-color: rgba(44, 90, 67, .6); }
.pred.hj h3::before, .gmline.hjline::before { background: var(--wolf-coin); box-shadow: inset 0 0 0 1px rgba(227, 201, 135, .8), 0 1px 2px rgba(80, 60, 20, .4); color: #F5E3AE; }
.pred.hj .predrow.me { box-shadow: inset 0 0 0 1.5px var(--green-2), 0 3px 7px -3px rgba(80, 60, 20, .4); }
.pred.hj .predrow.me .st { border-color: var(--green-2); color: var(--green); }
.pred.hj .predrow.has .st { border: 1px solid rgba(15, 41, 29, .6); background: linear-gradient(#2C5A43, #173F2E); color: #F5E3AE; }

/* ===== 数字の板：.pad.hjpad（大きな数の窓・電話の並びの3列・「決める」） ===== */
.pad.hjpad { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.hjpad .padtitle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 10px; }
.hjpad .padtitle small { margin-left: 0; font-size: 13px; font-weight: 400; color: var(--brass-ink); }
.hjshow { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-height: 78px; margin: 0 0 10px; padding: 6px 12px 4px; border-radius: 12px; background: var(--slot); box-shadow: inset 0 1px 3px rgba(80, 60, 20, .25), inset 0 0 0 1px rgba(140, 107, 45, .18); transition: box-shadow .15s ease; }
.hjshow b { text-align: center; font: 400 56px/1.2 var(--num); letter-spacing: .02em; color: var(--ink); }
.hjshow small { font-size: 16px; font-weight: 600; color: var(--brass-ink); }
/* 決められる数（18〜200）になったら、窓に真鍮の輪 */
.hjpad:has(.hjok:not(:disabled)) .hjshow { background: #FFFDF5; box-shadow: inset 0 0 0 2px var(--brass), inset 0 1px 3px rgba(80, 60, 20, .2); }
.keys.hj { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keys.hj button { min-height: 56px; font-size: 26px; }
.keys.hj .hjclear { border: 1.5px solid var(--line); background: none; font: 600 16px/1 var(--mincho); letter-spacing: .08em; color: #55534A; }
.keys.hj .hjok { border: 0; background: linear-gradient(#2C5A43, #173F2E); box-shadow: inset 0 0 0 1.5px #C9A558, 0 4px 8px -3px rgba(15, 41, 29, .7); font: 700 18px/1 var(--mincho); letter-spacing: .12em; color: #FFF8EC; }
.keys.hj .hjok:disabled { border: 1.5px dashed #BBA978; background: none; box-shadow: none; font-weight: 600; color: #6E6C5F; }
.keys.hj .hjok:disabled:active { transform: none; }
.hjpad .hint { margin: 10px 2px 0; text-align: center; text-wrap: balance; }
.hjpad .padfoot { grid-template-columns: 1fr; }
.hjpad .padfoot button { min-height: 46px; }
@media (max-height: 620px) {
  .hjshow { min-height: 62px; }
  .hjshow b { font-size: 44px; }
  .keys.hj button { min-height: 50px; }
}

/* ===== 表・精算のオネストジョンの答え：section.hjans（差がいちばん小さい人だけ、白い札と真鍮の「差」） ===== */
.hjans .predans { padding: 4px 0 6px; }
.hjans .predans li { gap: 10px; min-height: 50px; padding: 6px 8px 6px 10px; }
.hjans .predans li > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; min-width: 0; }
.hjans .hn { min-width: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; color: var(--ink); }
.hjans .hp { white-space: nowrap; font: 400 17px/1.4 var(--num); letter-spacing: .02em; color: #55534A; }
.hjans .predans em { min-width: 58px; padding: 5px 10px; background: none; box-shadow: inset 0 0 0 1px #C9B98F; text-align: center; font-weight: 600; color: #55534A; }
.hjans .predans li.hit { border-bottom-color: transparent; border-radius: 8px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #E0D3AE, 0 3px 7px -4px rgba(80, 60, 20, .45); }
.hjans .predans li.hit .hn { font-weight: 700; }
.hjans .predans li.hit .hp { color: var(--ink); }
.hjans .predans li.hit em { background: linear-gradient(#EBD592, #C9A558); box-shadow: inset 0 0 0 1px rgba(122, 91, 34, .4); font-weight: 700; color: #2B2412; }

@media (prefers-reduced-motion: reduce) {
  .hjshow { transition: none; }
}

/* ---------- 11/24 第3弾 4（3つ目）の見た目：スクランブルとドッツのひな形（見た目は Fable 5.2） ----------
   ・ひな形＝白い紙の札に点線のふち（「＋ 自分でゲームを作る」と同じ「足す」の合図）。＋は、取る＝緑・払う＝赤の丸。足したあとの札の駒の色と同じ
   ・スクランブル＝ペアの印は形と色の2つで見分ける。1つ目のペア＝深い緑の丸、2つ目のペア＝真鍮の濃い色のひし形。
     見出しのペアの名前の前と、打数のマスの上のふち（短い帯）と左上に、同じ印を出す。となりでないペアも帯の色でつながる
   新しいクラスだけに絞ってある（前の段は変えていない） */
:root {
  --pair-a: var(--green);
  --pair-b: #8A6524;
}

/* ===== 準備の画面のひな形：.ctpls（左に説明、右に「ドッツの遊び方」。説明が長くてもリンクは落ちない） ===== */
.ctpls { margin: 14px 0 12px; }
.ctpls > p.hint { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; margin: 0 0 6px; line-height: 1.5; }
.ctpls > p.hint .tl { min-width: 0; }
.ctpls > p.hint .howto { min-height: 44px; padding: 0 2px; font-size: 14px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; color: var(--brass-ink); text-decoration: underline; text-decoration-color: rgba(140, 107, 45, .5); text-underline-offset: 5px; }
.chips.ctpl { gap: 8px; margin: 0; }
.chip.tpl { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 46px; padding: 5px 12px 5px 9px; border: 1.5px dashed #C9A558; border-radius: 23px; background: #FFFDF5; box-shadow: 0 3px 7px -4px rgba(80, 60, 20, .5); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-align: left; color: var(--ink); transition: transform .12s ease; }
.chip.tpl:active { transform: scale(.96); }
.chip.tpl b { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--take); box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .16), 0 1px 2px rgba(80, 60, 20, .4); font: 700 15px/1 -apple-system, "Hiragino Sans", sans-serif; color: #fff; }
.chip.tpl.pay b { background: var(--pay); }
.chip.tpl small { flex: 0 0 auto; margin-left: 2px; padding: 3px 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(31, 107, 71, .45); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .06em; color: var(--take); }
.chip.tpl.pay small { box-shadow: inset 0 0 0 1px rgba(158, 59, 44, .45); color: var(--pay); }

/* ===== ホールの画面：スコアの見出し .sec.scr（題／ペアの1行／小さな注意／右に「遊び方」。ウルフ・お友達の見出しと同じ組み方） ===== */
.sec.scr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: end; }
.sec.scr .sn { grid-column: 1; grid-row: 1; min-width: 0; line-height: 1.3; white-space: nowrap; }
.sec.scr small { grid-column: 1; grid-row: 2; min-width: 0; margin-top: 3px; text-indent: -1em; font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: #55534A; overflow-wrap: anywhere; }
.sec.scr .howto { grid-column: 2; grid-row: 1 / span 2; }
.sec.scr .tm { padding-left: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='4.5' fill='%23173F2E'/%3E%3C/svg%3E") left center / 10px 10px no-repeat; word-break: keep-all; font-weight: 700; color: var(--ink); }
.sec.scr .tm.b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0l5 5-5 5-5-5z' fill='%238A6524'/%3E%3C/svg%3E"); }
.sec.scr .pnote { display: block; margin-top: 1px; text-indent: 0; font-size: 12px; line-height: 1.5; }

/* ===== 打数のマスのペアの印：.cell.num.pa・.pb（上のふちの短い帯＋左上の印。打数の色・選んだ輪・空のマスはそのまま） ===== */
.cell.num.pa, .cell.num.pb { position: relative; }
.cell.num.pa::after, .cell.num.pb::after { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 4px; border-radius: 0 0 4px 4px; background: var(--pair-a); }
.cell.num.pb::after { background: var(--pair-b); }
.cell.num.pa::before, .cell.num.pb::before { content: ""; position: absolute; top: 7px; left: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pair-a); }
.cell.num.pb::before { top: 8px; left: 8px; width: 7px; height: 7px; border-radius: 1px; background: var(--pair-b); transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .chip.tpl { transition: none; }
  .chip.tpl:active { transform: none; }
}

/* ---------- 11/24 第3弾 5 バーディの知らせの見た目（見た目は Fable 5.2） ----------
   ・ホールの画面の2つの札（.pushask＝受けるかを聞く、.pushhint＝iPhone の Safari のときの手順）は、
     となりの「アウト（1番）から回ります」（.startflip）と同じ紙の札。左の丸い印は、数字の代わりに鈴
   ・紙の上の「いらない」「閉じる」は、白い紙のボタン（.ghost の深い緑の地のための色は、ここでは使わない）
   ・招待の画面の .pushsec は「見るだけのリンク」と同じ深い緑の板。受けている＝灯りのついた緑の点、受けていない＝輪だけ
   新しいクラスだけに絞ってある（前の段は変えていない） */

/* ===== 紙の札：.pushask・.pushhint ===== */
.pushask, .pushhint { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 0 0 10px; padding: 10px; border-radius: 10px; background: #F1E7CA; box-shadow: inset 0 0 0 1px #C9A558, 0 3px 8px -4px rgba(80, 60, 20, .45); text-align: left; color: var(--ink); }
.pushask .pbell, .pushhint .pbell { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 38px; height: 38px; padding: 7px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3px #C9A558; color: #F0D999; }
.pushhint .pbell { grid-row: 1; }
.pushask h3, .pushhint h3 { grid-column: 2; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; color: var(--ink); }
.pushask > p { grid-column: 2; min-width: 0; margin: 1px 0 0; font-size: 13px; font-weight: 400; line-height: 1.6; color: #55534A; }
.pushask > p.err { grid-column: 1 / -1; min-height: 0; margin: 9px 0 0; padding: 8px 10px; border-radius: 8px; background: #FBEEE7; box-shadow: inset 0 0 0 1px rgba(158, 59, 44, .4); font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--red); }

/* 2つのボタン：「受ける」は真鍮、「いらない」は白い紙 */
.pushask .pushbtns { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 8px; margin: 10px 0 0; }
.pushask .pushbtns .primary { min-height: 48px; border-radius: 10px; font-size: 16px; letter-spacing: .14em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 3px 6px -3px rgba(80, 60, 20, .6); }
.pushask .pushbtns .primary:disabled { opacity: 1; background: #DCCB9C; box-shadow: inset 0 0 0 1px rgba(140, 107, 45, .45); font-size: 15px; letter-spacing: .02em; color: #4A4636; }
.pushask .pushbtns .ghost, .pushhint > .ghost { display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; min-height: 48px; margin: 0; padding: 0 6px; border: 0; border-radius: 10px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #CDB98A, 0 3px 6px -4px rgba(80, 60, 20, .45); font-size: 15px; font-weight: 600; letter-spacing: .06em; color: #4A4840; text-decoration: none; transition: transform .12s ease; }
.pushhint > .ghost { grid-column: 1 / -1; min-height: 44px; margin: 10px 0 0; }
.pushask .pushbtns .ghost:active, .pushhint > .ghost:active { transform: scale(.97); }

/* 手順：白い紙に3段。数字は真鍮の輪、「共有」「ホーム画面に追加」は iPhone のボタンの絵 */
.pushhint ol { grid-column: 1 / -1; margin: 10px 0 0; padding: 0 10px; border-radius: 8px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #E0D3AE; list-style: none; counter-reset: pstep; }
.pushhint li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 8px 0; font-size: 15px; line-height: 1.8; color: var(--ink); counter-increment: pstep; }
.pushhint li + li { border-top: 1px dashed #DCD2B9; }
.pushhint li::before { content: counter(pstep); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1.5px; padding: 0 1px 1px 0; border-radius: 50%; box-shadow: inset 0 0 0 1px #B8954A; font: italic 400 15px/1 var(--num); color: var(--brass-ink); }
.pushhint li b { font-weight: 700; }
.pushhint li .nb { white-space: nowrap; }
.pushhint .pkey { display: inline-block; width: 26px; height: 26px; margin: 0 2px 0 5px; padding: 4px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #CDB98A, 0 1px 2px rgba(80, 60, 20, .3); vertical-align: -7px; color: var(--green); }

/* ===== 招待の画面：.pushsec（深い緑の板。「見るだけのリンク」のとなり） ===== */
.invite .pushsec { margin: 32px 0 0; padding: 18px 16px 16px; border: 1px solid rgba(201, 165, 88, .6); border-radius: 14px; background: rgba(15, 41, 29, .62); text-align: left; }
.invite .pushsec + .watchsec { margin-top: 20px; }
.pushsec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding-left: 2px; font-size: 17px; font-weight: 600; letter-spacing: .08em; color: var(--cream); }
.pushsec h2 .pbell { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gm-gold); }
.invite .pushsec .hint { margin: 0 0 14px; font-size: 14px; line-height: 1.75; text-align: left; color: rgba(242, 237, 223, .86); }
/* 状態の行：左の点が灯り。受けている＝緑に灯る、受けていない＝輪だけ、許可しない＝真鍮の「！」 */
.pushsec .pushst { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; padding: 11px 12px; border-radius: 10px; background: rgba(242, 237, 223, .06); box-shadow: inset 0 0 0 1px rgba(242, 237, 223, .24); font-size: 15px; line-height: 1.6; letter-spacing: .02em; color: rgba(242, 237, 223, .88); }
.pushsec .pushst::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin: 6px 1px 0 1px; border: 1.5px solid rgba(242, 237, 223, .62); border-radius: 50%; }
.pushsec .pushst.on { background: rgba(184, 227, 196, .13); box-shadow: inset 0 0 0 1px rgba(184, 227, 196, .6); font-weight: 600; letter-spacing: .04em; color: #EDF7EE; }
.pushsec .pushst.on::before { border: 0; background: #B8E3C4; box-shadow: 0 0 0 4px rgba(184, 227, 196, .24); }
.pushsec .pushst.no { background: rgba(201, 165, 88, .12); box-shadow: inset 0 0 0 1px rgba(201, 165, 88, .6); font-size: 14px; line-height: 1.7; color: var(--cream); }
.pushsec .pushst.no::before { content: "!"; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 3px 0 0; border: 0; background: var(--gm-gold); font: 700 13px/1 -apple-system, "Hiragino Sans", sans-serif; color: #10281D; }
.pushsec .add { min-height: 50px; margin: 0; border: 1.5px solid #C9A558; border-radius: 12px; background: rgba(201, 165, 88, .14); color: #F0D999; font-weight: 600; letter-spacing: .1em; transition: transform .12s ease; }
.pushsec .add:not(:disabled):active { transform: scale(.97); }
.pushsec .add:disabled { border-style: dashed; background: none; letter-spacing: .04em; color: rgba(240, 217, 153, .85); }
.invite .pushsec > .ghost { display: block; max-width: none; min-height: 44px; margin: 0; border: 0; border-radius: 0; font-size: 14px; font-weight: 400; letter-spacing: 0; color: rgba(242, 237, 223, .84); text-decoration: underline; text-decoration-color: rgba(242, 237, 223, .4); text-underline-offset: 5px; }
.invite .pushsec > .ghost:last-child { margin-bottom: -8px; }
.pushsec .err { min-height: 0; margin: 10px 2px 0; font-size: 14px; font-weight: 600; line-height: 1.6; }
/* iPhone の Safari のとき：板の中に、同じ紙の札 */
.pushsec .pushhint { margin: 0; box-shadow: inset 0 0 0 1px #C9A558, 0 10px 20px -12px rgba(0, 0, 0, .6); }

@media (max-width: 359px) {
  .pushask, .pushhint { grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; padding: 9px 8px; }
  .pushask .pbell, .pushhint .pbell { width: 32px; height: 32px; padding: 6px; }
  .pushask .pbell { grid-row: 1; }
  .pushask h3, .pushhint h3 { letter-spacing: .02em; }
  .pushhint h3 { font-size: 14px; }
  .pushask > p { grid-column: 1 / -1; margin: 6px 2px 0; }
  .pushask .pushbtns .primary { letter-spacing: .08em; }
  .pushask .pushbtns .primary:disabled { font-size: 14px; letter-spacing: 0; }
  .pushask .pushbtns .ghost { font-size: 14px; letter-spacing: .02em; }
  .pushhint ol { padding: 0 8px; }
  .pushhint li { column-gap: 8px; font-size: 14px; line-height: 1.9; }
  .invite .pushsec { padding: 16px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pushask .pushbtns .ghost, .pushhint > .ghost, .pushsec .add { transition: none; }
  .pushask .pushbtns .ghost:active, .pushhint > .ghost:active, .pushsec .add:not(:disabled):active { transform: none; }
}

/* ---------- 11/24 スコアカードの写真の見た目（見た目は Fable 5.2） ----------
   ・置き場所は、ゴルフ場の名前の欄（候補・前に回ったコース）のすぐ下、パーの段のすぐ上（app.js の準備の画面）。
     「名前で入らないときは、カードを撮る」の順に並び、読めたあとの知らせは、開いたパーのボタンのすぐ上に出る
   ・撮るボタン .scanbtn は、白い紙に真鍮のふちの札。左に深い緑の丸とカメラ（鈴の札 .pbell と同じ家族）。主役の真鍮のボタンよりは弱い
   ・読んでいる間 .busy：真鍮の光の線が札の上を左から右へ動き（カードを読み取る光）、下のふちに進みの線が 14 秒かけて伸びる
   ・5 枚読んだ .full：点線のふち・地なし。パーがもう入っている .quiet：細い行（説明は出さない）
   ・知らせ：読めた .okn＝うすい緑の箱に ✓（下のパーのボタンを指す小さな角）、読めない .err＝うすい赤の箱に ！
   新しいクラスだけに絞ってある（前の段は変えていない） */
.scanrow { margin: 12px 0 2px; scroll-margin-top: calc(var(--safe-t) + 68px); }
.scanrow .scanbtn { position: relative; overflow: hidden; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 11px; align-items: center; width: 100%; min-height: 54px; padding: 8px 12px 8px 9px; border: 1px solid #C9A558; border-radius: 12px; background: #FFFDF5; box-shadow: 0 3px 7px -4px rgba(80, 60, 20, .5); text-align: left; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: .02em; color: var(--green); transition: transform .12s ease; }
.scanrow .scanbtn:not(:disabled):active { transform: scale(.98); }
.scanbtn > span { position: relative; z-index: 1; min-width: 0; }
.scanbtn .nb { display: inline-block; white-space: nowrap; }
.scanbtn .scanic { position: relative; z-index: 1; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3px #C9A558; color: #F0D999; }

/* 読んでいる間：札は少し沈み、光の線が動く。下のふちの線が伸びる（10 秒ほど） */
.scanrow.busy .scanbtn { background: #F6EED6; box-shadow: none; letter-spacing: .04em; color: var(--green); }
.scanrow.busy .scanbtn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 36%; background: linear-gradient(90deg, rgba(255, 253, 245, 0), rgba(255, 253, 245, .85) 46%, #C9A558 49%, #C9A558 51%, rgba(255, 253, 245, .85) 54%, rgba(255, 253, 245, 0)); transform: translateX(-110%); animation: scan-sweep 1.9s cubic-bezier(.45, 0, .55, 1) infinite; pointer-events: none; }
.scanbtn .scanbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brass); transform-origin: 0 50%; transform: scaleX(.94); animation: scan-fill 14s cubic-bezier(.15, .6, .3, 1) both; }
@keyframes scan-sweep { to { transform: translateX(290%); } }
@keyframes scan-fill { from { transform: scaleX(0); } }

/* 5 枚読んだあと：押せない札（点線のふち・地なし・影なし） */
.scanrow.full .scanbtn { border-style: dashed; border-color: #B5A374; background: none; box-shadow: none; font-weight: 400; color: #5C5A4E; }
.scanrow.full .scanic { background: none; box-shadow: inset 0 0 0 1px #B5A374; color: #6E6C5F; }

/* パーがもう入っている（コース帳・前に回ったコース・始めたあとの直し）：細い行。説明は出さない */
.scanrow.quiet { margin: 10px 0 0; }
.scanrow.quiet .scanbtn { grid-template-columns: 24px minmax(0, 1fr); column-gap: 9px; min-height: 44px; padding: 4px 12px 4px 11px; border-color: #D6C79E; background: none; box-shadow: none; font-size: 14px; letter-spacing: .02em; }
.scanrow.quiet .scanic { width: 24px; height: 24px; padding: 1px; border-radius: 0; background: none; box-shadow: none; color: var(--brass-ink); }
.scanrow.quiet .scannote { display: none; }

/* 知らせの文 */
.scanrow .scannote { scroll-margin-top: calc(var(--safe-t) + 68px); min-height: 0; margin: 7px 2px 0; font-size: 13px; font-weight: 400; line-height: 1.65; color: #5C5A4E; }
.scanrow .scannote.okn, .scanrow .scannote.err { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 9px; align-items: start; margin: 9px 0 0; padding: 9px 11px 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.65; }
.scanrow .scannote.okn::before, .scanrow .scannote.err::before { display: block; width: 20px; height: 20px; margin-top: 1.5px; border-radius: 50%; font: 700 13px/20px -apple-system, "Hiragino Sans", sans-serif; text-align: center; color: #fff; }
.scanrow .scannote.okn { margin-bottom: 16px; background: #E7EFE3; box-shadow: inset 0 0 0 1px rgba(31, 107, 71, .45); color: var(--green); }
.scanrow .scannote.okn::before { content: "✓"; background: #1F6B47; }
.scanrow .scannote.okn::after { content: ""; position: absolute; left: 14px; bottom: -6px; width: 11px; height: 11px; background: #E7EFE3; box-shadow: inset -1px -1px 0 rgba(31, 107, 71, .45); transform: rotate(45deg); }
.scanrow .scannote.err { margin-bottom: 12px; background: #FBEEE7; box-shadow: inset 0 0 0 1px rgba(158, 59, 44, .4); color: var(--red); }
.scanrow .scannote.err::before { content: "!"; background: var(--red); }

@media (max-width: 359px) {
  .scanrow .scanbtn { grid-template-columns: 32px minmax(0, 1fr); column-gap: 9px; padding: 8px 10px 8px 8px; font-size: 15px; }
  .scanbtn .scanic { width: 32px; height: 32px; padding: 6px; }
  .scanrow.quiet .scanbtn { grid-template-columns: 22px minmax(0, 1fr); padding: 4px 10px; font-size: 14px; }
  .scanrow.quiet .scanic { width: 22px; height: 22px; padding: 1px; }
  .scanrow .scannote.okn, .scanrow .scannote.err { column-gap: 8px; padding: 8px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .scanrow .scanbtn { transition: none; }
  .scanrow .scanbtn:not(:disabled):active { transform: none; }
  .scanrow.busy .scanbtn::after { display: none; animation: none; }
  .scanbtn .scanbar { transform: none; opacity: .55; animation: none; }
}

/* ---------- 11/24 上の帯と番号の帯を、本物の iPhone でくっきり（オーナー「上の方が霞んでる」。デザイン案/10_上の帯の見やすさ_2026-11-24/） ----------
   もと：iPhone の Didot は横の線が髪の毛ほど細く、深い緑の上の生成りの小さな字では線が消えて、かすれて見えた（Mac の Didot は太いので、手元の WebKit では出ない）。
   まだのホールの番号は、そのうえ字を半分すかしていた。右の「● 最新」は 12px の細い明朝で、横の線が消えていた。
   直し：暗い緑の上の小さな数字だけ、線の太い Baskerville の SemiBold に（iPhone にも Mac にも入っている。紙の上の数字は Didot のまま）。
   字はすかさない。まだ・済み・いまの区別は、輪の色と太さ・地の塗り・点でつける。 */
:root { --num-dark: "Baskerville", "Hiragino Mincho ProN", "Yu Mincho", serif; --on-turf: #FBF8EF; }

/* 1. 上の帯：題は線の太い数字で（日本語のコース名は、ヒラギノ明朝の W6 のまま）。字は紙の色で、すかさない */
.top h1 { font-family: var(--num-dark); font-size: 18px; font-weight: 600; letter-spacing: .08em; color: var(--on-turf); font-variant-numeric: lining-nums; }
.top .back { color: var(--on-turf); font-weight: 600; }
/* 右の知らせ（最新・送信中・電波なし）：小さい字は明朝だと横の線が消えるので、ここだけ角ゴシックの太め。12px → 13px */
.sync { max-width: 108px; font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; color: var(--on-turf); }
.sync::before { margin-right: 4px; }
.sync.ok::before { color: #BFEBCB; }
.sync.wait::before { color: #FFD777; }
.sync.off::before { color: #DAD6CB; }

/* 2. 番号の帯：字はどれも、すかさない生成り。
      まだ＝細い生成りの輪・地なし ／ 済み＝真鍮の太い輪・夜の緑の地・真鍮の点 ／ いま＝紙の色の丸（前のまま） */
.strip button { padding: 0 0 2px; border: 1.5px solid rgba(242, 237, 223, .5); background: transparent; color: var(--on-turf); font-family: var(--num-dark); font-size: 21px; font-weight: 600; font-variant-numeric: lining-nums; }
.strip button.done { padding-bottom: 5px; border: 2px solid #D2AE5F; background: rgba(15, 41, 29, .72); color: var(--on-turf); }
.strip button.done::after { bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; background: #D2AE5F; }
.strip button.cur { padding-bottom: 2px; border: 2px solid #C9A558; background: var(--paper); color: var(--ink); }
.strip button.cur.done { padding-bottom: 5px; }
.strip button.cur::after { background: #8C6B2D; }
.strip button.in::before { background: rgba(210, 174, 95, .85); }

/* ---------- 11/24 上の帯の字のにじみ（オーナーの iPhone で「まだなんか霞んでる」。直したあとの写真で、上の帯の字だけがにじみ、すぐ下の番号の帯はくっきり） ----------
   iPhone では、backdrop-filter（後ろをぼかす効果）をかけた帯の中の字が、にじんで描かれることがある。
   帯はもともと 94% 塗りで、ぼかしはほとんど見えないので、ぼかしをやめて、同じ色のべた塗りにする（色は rgba(20, 54, 39, .94) と同じ） */
.top { -webkit-backdrop-filter: none; backdrop-filter: none; background: #143627; }

/* ---------- 11/24 画面のいちばん上のぼかし（オーナーの iPhone で「まだなんか霞んでる」の4つ目の直し） ----------
   写真を測ると、ホーム画面のアプリでは、iPhone（iOS）が画面のいちばん上から約 97pt までを、上ほど強くぼかしている。
   上の帯のない「はじめの画面」でも、同じ所の地の模様だけがぼけていたので、ページの指定ではなく iPhone のぼかし。
   ページからこのぼかしを止める指定は見つからない（WebKit の報告 https://bugs.webkit.org/show_bug.cgi?id=301994 ・ 295843）。
   → iPhone のホーム画面のアプリのときだけ（app.js が <html> に iosapp を付ける）、帯の上をあけて、字をぼかしの下へ下げる。
   帯の字は、いままで画面の上から約 81〜99pt にあった。20px 下げて 101pt から下に置く（帯は 20px 高くなる）。
   1317 の「帯を画面に固定」は、見立て（上に貼りつく形のにじみ）がはずれたので、もとの上に貼りつく形に戻した */
.iosapp .top { padding-top: calc(var(--safe-t) + 26px); }

/* ---------- 11/24 知らせの札を1行に・番号で入る（見た目は Fable 5.2。デザイン案/11_知らせの札と番号で入る_2026-11-24/） ----------
   1. ホールの画面の1行の札 .pushhint.mini：高さ 46px の細い札。主役は下の打数の欄なので、紙の札（.startflip）より一段うすい地・細いふち・影なし。
      左＝小さな鈴の丸（開いた札と同じ家族）、右＝下向きの山形（押すと下に開く）、右はし＝点線で切り分けた ×（もう出さない）
   2. 開いた札 .pushhint.open：これまでの紙の札。上の行ぜんぶが「たたむ」ボタン（右に上向きの山形）。
      このラウンドの番号 .pnum は、白い札に等幅の太い字で1行に独り立ち（読み写しやすく。長押しで全部えらべる）
      「もう出さない」は、たたむとまちがえて押さないよう、白いボタンから下線の小さな字に下げた
   3. 招待の画面の同じ手順 .pushsec .pushhint：.phnote と .pnum を同じ形で
   4. はじめの画面の「番号で入る」.joinjump：紋の下の、真鍮の細い輪の小さなボタン（下向きの山形＝下の欄へ動く）。主役の「このゲームで始める」より弱い
   新しいクラスだけに絞ってある（前の段は変えていない） */

/* ===== 1. 1行の札 ===== */
.pushhint.mini { display: flex; align-items: stretch; min-height: 46px; padding: 0; border-radius: 10px; background: #F5EDD6; box-shadow: inset 0 0 0 1px #D9C48C; }
.pushhint.mini .pushmini { flex: 1 1 auto; display: grid; grid-template-columns: 26px minmax(0, 1fr) 18px; column-gap: 8px; align-items: center; min-width: 0; min-height: 46px; padding: 0 9px 0 10px; border-radius: 10px 0 0 10px; text-align: left; color: var(--ink); transition: background-color .15s ease; }
.pushhint.mini .pbell { grid-column: 1; grid-row: 1; align-self: center; width: 26px; height: 26px; padding: 4.5px; box-shadow: inset 0 0 0 1.5px var(--green), inset 0 0 0 2.5px #C9A558; }
.pushhint.mini .pmtxt { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; color: var(--ink); }
.pushhint .pmore { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--brass-ink); }
.pushhint .pmore svg { display: block; width: 18px; height: 18px; stroke-width: 2.4; }
.pushhint.mini .pushminix { flex: 0 0 46px; display: flex; align-items: center; justify-content: center; min-height: 46px; border-left: 1px dashed #CDB98A; border-radius: 0 10px 10px 0; color: #5C5A4E; transition: background-color .15s ease; }
.pushhint.mini .pushminix svg { display: block; width: 16px; height: 16px; stroke-width: 2.2; }
.pushhint.mini .pushmini:active, .pushhint.mini .pushminix:active { background-color: rgba(201, 165, 88, .22); }

/* ===== 2. 開いた札 ===== */
.pushhint.open { padding-top: 6px; }
.pushhint .pushfold { grid-column: 1 / -1; display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; column-gap: 10px; align-items: center; width: 100%; min-height: 46px; text-align: left; color: var(--ink); }
.pushhint .pushfold .pmore { justify-self: end; width: 30px; height: 30px; border-radius: 50%; background: #FFFDF5; box-shadow: inset 0 0 0 1px #CDB98A; transform: rotate(180deg); }
.pushhint.open ol { margin-top: 6px; }
/* このラウンドの番号：1行に独り立ち。まちがえやすい字が見分けやすい等幅の字・字の間をあける */
.pushhint .pnumrow { display: flex; align-items: center; gap: 9px; margin: 4px 0 5px; }
.pushhint .pnum { flex: 0 0 auto; display: block; padding: 5px 10px 5px 13px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px #C9A558, 0 1px 2px rgba(80, 60, 20, .3); font: 700 20px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: lining-nums slashed-zero; letter-spacing: .14em; white-space: nowrap; color: var(--green); -webkit-user-select: all; user-select: all; }
.pushhint .phnote { grid-column: 1 / -1; min-width: 0; margin: 9px 2px 0; font-size: 13px; font-weight: 400; line-height: 1.7; color: #55534A; text-wrap: pretty; }
.pushhint.open > .ghost { width: auto; min-height: 44px; margin: 2px auto -8px; padding: 0 14px; background: none; box-shadow: none; font-size: 14px; font-weight: 400; letter-spacing: .04em; color: #55534A; text-decoration: underline; text-decoration-color: rgba(85, 83, 74, .45); text-underline-offset: 5px; }

/* ===== 3. 招待の画面の同じ手順（たたむボタンなし） ===== */
.pushsec .pushhint .phnote { margin-bottom: 2px; }

/* ===== 4. はじめの画面の「番号で入る」 ===== */
.homep .joinjump { display: flex; align-items: center; justify-content: center; gap: 8px; width: -webkit-fit-content; width: fit-content; max-width: 100%; min-height: 44px; margin: 12px auto 0; padding: 0 14px 0 20px; border-radius: 22px; background: rgba(15, 41, 29, .5); box-shadow: inset 0 0 0 1px rgba(201, 165, 88, .7); font-size: 14px; line-height: 1.3; letter-spacing: .06em; color: #E2DBC6; transition: transform .12s ease; }
.homep .joinjump b { margin-left: .35em; font-weight: 600; letter-spacing: .1em; color: #F0D999; }
.homep .joinjump .jjmk { flex: 0 0 auto; width: 16px; height: 16px; stroke-width: 2.4; color: #D2AE5F; }
.homep .joinjump:active { transform: scale(.97); }
.homep .joinjump + h2 { margin-top: 22px; }

.pushhint button:focus-visible, .homep .joinjump:focus-visible { outline: 2px solid #B8954A; outline-offset: 2px; }

@media (max-width: 389px) {
  .pushhint.mini .pmtxt { font-size: 13px; letter-spacing: 0; }
}
@media (max-width: 374px) {
  .pushhint.mini .pushmini { column-gap: 7px; padding: 0 7px 0 8px; }
  .pushhint.mini .pushminix { flex-basis: 44px; }
  .pushhint .pnum { font-size: 19px; letter-spacing: .12em; }
}
@media (max-width: 359px) {
  .pushhint.mini .pushmini { grid-template-columns: minmax(0, 1fr) 18px; }
  .pushhint.mini .pbell { display: none; }
  .pushhint .pushfold { grid-template-columns: 32px minmax(0, 1fr) 26px; column-gap: 6px; }
  .pushhint .pushfold h3 { font-size: 13px; letter-spacing: 0; }
  .pushhint .pushfold .pmore { width: 26px; height: 26px; }
  .pushhint .pnum { padding: 5px 8px 5px 10px; font-size: 18px; }
  .homep .joinjump { padding: 0 12px 0 16px; font-size: 13px; letter-spacing: .03em; }
}
@media (prefers-reduced-motion: reduce) {
  .pushhint.mini .pushmini, .pushhint.mini .pushminix, .homep .joinjump { transition: none; }
  .homep .joinjump:active { transform: none; }
}

/* ---------- 11/25 引っ越しの画面（Netlify → nigiriclub.com。見た目は Fable 5.2。デザイン案/12_引っ越しの画面_2026-11-25/） ----------
   ねらい：住所が変わっても「いつもの NIGIRI倶楽部」だと一目で分かる。紋はそのまま、その下に芝の上の紙の札1枚（スコアカードと同じ紙・真鍮の細い枠）。
   1. 引っ越しの画面 main.movep
      ・.moveaddr＝新しい住所。札の主役。白い表札（真鍮の輪）に、線の太い数字の書体で大きく
      ・.moving＝移っている間。真鍮の細い線が左から右へ流れる（動きを減らす設定では止めて、まん中に置く）
      ・.movecode＝引っ越しの番号。.pnum と同じ等幅の太い字を大きく、字の間をあける（長押しで全部えらべる）
      ・.movesteps＝4つの手順。.pushhint ol と同じ見た目（真鍮の輪の番号・点線の仕切り・白いキーの形のアイコン）
      ・預けられないとき：.err は紙の上のうすい赤の箱、.movelater は下線の控えめなリンク（44px）
      ・下の .hint：芝の上なので、生成りの字（すかしを弱く）と小さな鈴
   2. 「移しました」の札 section.movednote：.pushask と同じ紙の札。左に深い緑の丸（家とチェック）、右上に 44px の ×。
      2つ目の段落は、点線で切った小さな字（主役の「このゲームで始める」より弱く）
   新しいクラスだけに絞ってある（前の段は変えていない） */

/* ===== 1. 引っ越しの画面 ===== */
main.movep { padding: 18px 14px calc(40px + var(--safe-b)); max-width: 520px; }
.movecard { position: relative; padding: 26px 18px 22px; border-radius: 3px; background: url(/img/grain.png), var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 22px 44px -14px rgba(0, 0, 0, .55); outline: 1px solid rgba(184, 149, 74, .75); outline-offset: -7px; text-align: left; color: var(--ink); }
.movecard > p { margin: 0; }

/* 新しい住所：表札 */
.movecard .moveaddr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.movecard .moveaddr span { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .3em; text-indent: .3em; color: var(--brass-ink); }
.movecard .moveaddr span::before, .movecard .moveaddr span::after { content: ""; flex: 0 1 34px; height: 1px; background: #C9A558; }
.movecard .moveaddr b { display: block; width: 100%; padding: 13px 6px 14px; border-radius: 8px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #C9A558, inset 0 0 0 4px #FFFDF5, inset 0 0 0 5px rgba(201, 165, 88, .45), 0 2px 5px -2px rgba(80, 60, 20, .4); font: 600 clamp(24px, 7.6vw, 31px)/1.2 var(--num-dark); font-variant-numeric: lining-nums; letter-spacing: .03em; overflow-wrap: anywhere; color: var(--green); }

/* 移っている間 */
.movecard .moving { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; font-size: 15px; line-height: 1.85; text-align: center; text-wrap: pretty; color: #3F3D35; }
.movecard .mvbar { position: relative; display: block; width: 100%; max-width: 220px; height: 3px; margin: 0 auto; overflow: hidden; border-radius: 2px; background: #E4D8B6; }
.movecard .mvbar::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: 2px; background: #B8954A; animation: mvslide 1.5s ease-in-out infinite; }
@keyframes mvslide { 0% { transform: translateX(-105%); } 100% { transform: translateX(270%); } }

/* 番号の画面 */
.movecard .movelead { margin-top: 20px; font-size: 15px; line-height: 1.85; text-wrap: pretty; color: #3F3D35; }
.movecard .movelead b { font-weight: 700; color: var(--ink); }
.movecard .movecode { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; padding: 14px 8px 15px; border-radius: 10px; background: #F1E7CA; box-shadow: inset 0 0 0 1px #C9A558; text-align: center; }
.movecard .movecode span { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .24em; text-indent: .24em; color: var(--brass-ink); }
.movecard .movecode b { display: block; max-width: 100%; padding: 8px 10px 8px 14px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #C9A558, 0 1px 2px rgba(80, 60, 20, .3); font: 700 clamp(21px, 6.9vw, 28px)/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-variant-numeric: lining-nums slashed-zero; letter-spacing: .14em; white-space: nowrap; color: var(--green); -webkit-user-select: all; user-select: all; }

/* 手順：.pushhint ol と同じ見た目 */
.movecard .movesteps { margin: 16px 0 0; padding: 0 12px; border-radius: 8px; background: #FFFDF5; box-shadow: inset 0 0 0 1px #E0D3AE; list-style: none; counter-reset: mvstep; }
.movecard .movesteps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 9px 0; font-size: 15px; line-height: 1.8; color: var(--ink); counter-increment: mvstep; }
.movecard .movesteps li + li { border-top: 1px dashed #DCD2B9; }
.movecard .movesteps li::before { content: counter(mvstep); display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1.5px; padding: 0 1px 1px 0; border-radius: 50%; box-shadow: inset 0 0 0 1px #B8954A; font: italic 400 15px/1 var(--num); color: var(--brass-ink); }
.movecard .movesteps li > span { min-width: 0; }
.movecard .movesteps b { font-weight: 700; }
.movecard .movesteps .mvhost { font-family: var(--num-dark); font-weight: 600; font-size: 17px; letter-spacing: .02em; overflow-wrap: anywhere; color: var(--green); }
.movecard .movesteps .nb, .movednote .nb { white-space: nowrap; }
.movecard .movesteps li > span, .movednote > p { text-wrap: pretty; }
.movecard .movesteps li:last-child { color: #55534A; }
.movecard .pkey, .movednote .pkey { display: inline-block; width: 26px; height: 26px; margin: 0 2px 0 5px; padding: 4px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #CDB98A, 0 1px 2px rgba(80, 60, 20, .3); vertical-align: -7px; color: var(--green); }

.movecard .primary.big { margin-top: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .14), 0 6px 12px -5px rgba(80, 60, 20, .6); }

/* 預けられないとき */
.movecard > p.err { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 9px; align-items: start; min-height: 0; margin: 20px 0 0; padding: 11px 12px 11px 11px; border-radius: 9px; background: #FBEEE7; box-shadow: inset 0 0 0 1px rgba(158, 59, 44, .4); font-size: 15px; font-weight: 600; line-height: 1.7; color: var(--red); }
.movecard > p.err::before { content: "!"; display: block; width: 20px; height: 20px; margin-top: 2.5px; border-radius: 50%; background: var(--red); font: 700 13px/20px -apple-system, "Hiragino Sans", sans-serif; text-align: center; color: #fff; }
.movecard .movelater { display: flex; align-items: center; justify-content: center; width: -webkit-fit-content; width: fit-content; max-width: 100%; min-height: 44px; margin: 8px auto -10px; padding: 0 10px; font-size: 14px; line-height: 1.5; letter-spacing: .02em; text-align: center; color: #55534A; text-decoration: underline; text-decoration-color: rgba(85, 83, 74, .5); text-underline-offset: 5px; }

/* 札の下の一言（芝の上） */
.movep > .hint { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; align-items: start; margin: 18px 6px 0; font-size: 14px; line-height: 1.75; color: rgba(242, 237, 223, .9); }
.movep > .hint .mvbell { width: 20px; height: 20px; margin-top: 2px; color: #D9BE7E; }

.movecard a:focus-visible, .movecard button:focus-visible { outline: 2px solid #8C6B2D; outline-offset: 2px; }

/* ===== 2. 「移しました」の札 ===== */
.movednote { display: grid; grid-template-columns: 38px minmax(0, 1fr) 44px; column-gap: 10px; align-items: start; margin: 12px 0 2px; padding: 10px 2px 11px 10px; border-radius: 10px; background: #F1E7CA; box-shadow: inset 0 0 0 1px #C9A558, 0 10px 20px -12px rgba(0, 0, 0, .6); text-align: left; color: var(--ink); }
.movednote .mvmark { grid-column: 1; grid-row: 1; width: 38px; height: 38px; margin-top: 3px; padding: 7px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 2px var(--green), inset 0 0 0 3px #C9A558; color: #F0D999; }
.movednote.ng .mvmark { background: var(--red); box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px #E9C7B8; color: #fff; }
.movednote .mvclose { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #5C5A4E; transition: background-color .15s ease; }
.movednote .mvclose .mvx { display: block; width: 17px; height: 17px; stroke-width: 2.2; }
.movednote .mvclose:active { background-color: rgba(201, 165, 88, .28); }
.movednote .mvclose:focus-visible { outline: 2px solid #8C6B2D; outline-offset: -4px; }
.movednote > p { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; padding: 3px 0 2px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; color: #3F3D35; }
.movednote > p b { font-weight: 700; color: var(--ink); }
.movednote > p:first-of-type > b:first-child { display: block; margin-bottom: 1px; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: .03em; }
.movednote > p + p { grid-column: 1 / -1; grid-row: 2; margin: 9px 8px 0 0; padding: 9px 2px 0; border-top: 1px dashed #CDB98A; font-size: 13px; line-height: 1.85; color: #55534A; text-wrap: pretty; }
.movednote .pkey { width: 22px; height: 22px; margin: 0 2px 0 4px; padding: 3.5px; vertical-align: -6px; }
.homep .movednote + .joinjump { margin-top: 14px; }

@media (max-width: 359px) {
  main.movep { padding-left: 10px; padding-right: 10px; }
  .movecard { padding: 24px 15px 20px; }
  .movecard .movelead, .movecard .moving { font-size: 14px; }
  .movecard .movecode b { padding: 7px 8px 7px 11px; letter-spacing: .1em; }
  .movecard .movesteps { padding: 0 9px; }
  .movecard .movesteps li { column-gap: 8px; font-size: 14px; line-height: 1.9; }
  .movednote { grid-template-columns: 32px minmax(0, 1fr) 44px; column-gap: 8px; padding-left: 8px; }
  .movednote .mvmark { width: 32px; height: 32px; margin-top: 5px; padding: 6px; }
  .movednote > p:first-of-type > b:first-child { font-size: 14px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .movecard .mvbar::after { left: 31%; animation: none; }
  .movednote .mvclose { transition: none; }
}
