:root { --cf-paper:#f4f0e5; --cf-paper-edge:#dcd3bf; --cf-ink:#283932; --cf-red:#ad463d; --cf-felt:#2b4238; --cf-gold:#edcf8e; }
:root[data-theme="light"] { --cf-paper:#fffdf5; --cf-paper-edge:#d9d2c1; --cf-felt:#466053; }
[hidden] { display:none !important; }
button { color:var(--text); font:inherit; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
button:disabled { cursor:default; }
button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.mobile-hint { display:none; }
.cf-act > span { min-width:0; }.cf-act small { max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.header-inner { min-height:66px; }.brand strong { font-size:14px; }.brand small { font-size:9px; }.brand-dot { width:26px; height:26px; flex-basis:26px; }.theme-toggle { width:36px; height:36px; }
.site-main { width:min(960px,calc(100% - 48px)); padding-block:25px 24px; min-height:0; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; }.page-heading > div:first-child { line-height:1.3; }.page-heading .eyebrow { display:block; font-size:9px; letter-spacing:.15em; }h1 { font-size:27px; font-weight:550; letter-spacing:-.04em; line-height:1.3; margin:5px 0 0; }.heading-actions { display:flex; gap:6px; }.quiet { border:0; background:transparent; font-size:12px; color:var(--muted); padding:6px 10px; min-height:44px; border-radius:6px; }.quiet:hover { color:var(--accent); background:var(--surface); }.heading-actions .quiet span { color:var(--accent); margin-left:7px; }
.cf-board { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); grid-template-rows:46px min-content min-content; grid-template-areas:"head side" "table side" "seals side"; gap:0 28px; align-items:start; }
.cf-head { grid-area:head; display:flex; justify-content:space-between; align-items:center; min-height:46px; border-top:1px solid var(--line); }.cf-head > div:first-child { display:flex; align-items:center; gap:8px; }.cf-status { color:var(--accent); font-size:11px; white-space:nowrap; }.cf-status::before { content:''; display:inline-block; width:4px; height:4px; border-radius:50%; margin:0 6px 2px 0; background:currentColor; }.cf-status[data-kind="won"] { color:var(--positive); }.cf-status[data-kind="lost"] { color:#dc9984; }.cf-seed { color:var(--muted); font-size:9px; max-width:90px; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; font-variant-numeric:tabular-nums; }.cf-counter { display:flex; gap:13px; color:var(--muted); font-size:10px; }.cf-counter b { color:var(--text); font-size:13px; font-weight:550; margin-left:3px; font-variant-numeric:tabular-nums; }.cf-counter small { font-size:10px; color:var(--muted); font-weight:400; }
.cf-table { grid-area:table; position:relative; padding:18px 18px 8px; border:1px solid #6d7e6260; border-radius:11px; background:radial-gradient(ellipse at 50% 10%,#526b4a4d,transparent 75%),var(--cf-felt); box-shadow:inset 0 0 45px #14251c30; isolation:isolate; }
.table-watermark { position:absolute; inset:0; display:grid; place-items:center; font-size:160px; color:#ece1ac06; z-index:-1; }.cf-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:repeat(3,1fr); gap:10px; height:420px; }
.cf-cell { position:relative; display:block; min-width:0; border:0; border-radius:7px; padding:0; background:transparent; text-align:left; }.cf-card { position:absolute; inset:0; border:1px solid var(--cf-paper-edge); border-radius:7px; display:block; background:linear-gradient(140deg,#ffffff40,transparent 70%),var(--cf-paper); color:var(--cf-ink); box-shadow:0 2px 3px #10251a35; transition:transform .14s,box-shadow .14s; overflow:hidden; }.cf-cell[data-suit="diamonds"] .cf-card,.cf-cell[data-suit="hearts"] .cf-card { color:var(--cf-red); }
.cf-corner { position:absolute; top:6px; left:7px; display:flex; flex-direction:column; align-items:center; font-weight:650; font-size:17px; line-height:.95; z-index:2; }.cf-corner i { font-size:12px; font-style:normal; margin-top:3px; }.cf-corner.bottom { top:auto; left:auto; bottom:6px; right:7px; transform:rotate(180deg); }.cf-face { position:absolute; inset:18% 24%; display:grid; place-items:center; font-size:37px; line-height:1; font-family:Georgia,'Times New Roman',serif; font-weight:400; }
.cf-pips { position:absolute; inset:18% 25%; }.cf-pips i { position:absolute; transform:translate(-50%,-50%); font-style:normal; font-size:20px; line-height:1; }.cf-pips i.flip { transform:translate(-50%,-50%) rotate(180deg); }.cf-court { position:absolute; inset:17% 23%; display:flex; flex-direction:column; justify-content:center; align-items:center; border-top:1px solid currentColor; border-bottom:1px solid currentColor; }.cf-court svg { width:100%; height:100%; opacity:.87; }.cf-joker .cf-card { background:repeating-linear-gradient(135deg,transparent 0 8px,#88733c09 8px 9px),var(--cf-paper); color:#8b6c35; }.cf-joker .cf-face { font-size:40px; }.cf-joker-tag { position:absolute; bottom:13px; left:0; right:0; text-align:center; font-size:7px; letter-spacing:.18em; }
.cf-cell.is-empty { border:1px dashed #b7c5a72b; background:#14291e10; }.cf-cell.is-target .cf-card { outline:2px solid var(--cf-gold); outline-offset:1px; box-shadow:0 0 0 4px #edcf8e18,0 4px 10px #0d231b66; transform:translateY(-2px); }.cf-cell.is-target::after { content:'✓'; display:grid; place-items:center; position:absolute; top:5px; right:5px; width:15px; height:15px; border-radius:50%; background:var(--cf-gold); color:#263b30; font-size:10px; z-index:3; }.cf-cell.is-pickable:hover .cf-card { box-shadow:0 0 0 2px #edcf8e80; }.cf-cell:not(.is-pickable) { cursor:default; }.cf-table-foot { display:flex; justify-content:space-between; align-items:center; min-height:25px; gap:8px; color:#d5ddc6b0; font-size:9px; }.cf-table-foot > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.cf-table-mark { font-size:7px; letter-spacing:.16em; white-space:nowrap; opacity:.5; }
.cf-seals { grid-area:seals; display:flex; justify-content:space-between; gap:5px; padding:9px 0; }.cf-seal { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:10px; line-height:1.3; }.cf-seal b { font-size:13px; font-weight:500; }.cf-seal small { font-size:9px; }.cf-seal[data-alert="1"] { color:#e3aa91; }.cf-seal[data-alert="1"] small { text-decoration:line-through; text-decoration-thickness:1px; }:root[data-theme="light"] .cf-seal[data-alert="1"] { color:#a24735; }
.cf-side { grid-area:side; padding-top:1px; min-width:0; }.section-label,.action-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; }.section-label { min-height:45px; border-top:1px solid var(--line); }.section-label strong,.action-heading strong { font-size:12px; font-weight:550; }.section-label strong span { font-weight:400; color:var(--muted); font-size:10px; margin-left:7px; }.section-label > span,.action-heading > span { font-size:10px; color:var(--muted); }
.cf-hand { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; height:100px; }.cf-hand .cf-card { background:var(--surface-2); border-color:var(--line); color:var(--text); box-shadow:none; }.cf-hand .cf-corner { font-size:18px; top:9px; left:9px; }.cf-hand .cf-corner i { font-size:11px; }.cf-hand .cf-face { inset:auto 8px 7px auto; font-size:31px; color:var(--accent); }.cf-hand .cf-cell { cursor:pointer; }.cf-hand .cf-cell.is-chosen .cf-card { border-color:var(--accent); outline:1px solid var(--accent); background:color-mix(in srgb,var(--accent) 12%,var(--surface-2)); transform:translateY(-3px); }.cf-hand .cf-cell.is-chosen::after { content:'✓'; position:absolute; top:7px; right:7px; color:var(--accent); font-size:11px; }.hand-placeholder { grid-column:1/-1; color:var(--muted); display:grid; place-items:center; border:1px dashed var(--line); border-radius:7px; font-size:12px; }
.action-heading { min-height:39px; margin-top:4px; }.action-heading > span { color:var(--accent); }.cf-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }.cf-act { display:flex; align-items:center; justify-content:space-between; gap:5px; min-height:51px; border:1px solid var(--line); border-radius:6px; background:transparent; padding:7px 10px; text-align:left; }.cf-act > span { display:flex; flex-direction:column; gap:2px; }.cf-act b { font-size:12px; font-weight:550; }.cf-act small { font-size:9px; color:var(--muted); line-height:1.3; white-space:nowrap; }.cf-act > i { font-size:15px; font-style:normal; color:var(--accent); }.cf-act:disabled { color:var(--muted); background:var(--surface); }.cf-act:disabled > i { color:var(--muted); opacity:.4; }.cf-act[data-blocked] small { color:#d69c85; }.cf-act.is-on { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 8%,transparent); }.cf-act.is-on b { color:var(--accent); }.cf-act:hover:not(:disabled) { border-color:var(--accent); }
.cf-description { display:flex; align-items:center; min-height:57px; gap:8px; font-size:11px; color:var(--muted); line-height:1.8; padding-block:8px; }.cf-description > span { flex:1; }.cf-description button { width:32px; min-height:32px; border:0; border-radius:4px; background:var(--surface-2); color:var(--muted); font-size:18px; flex-shrink:0; }
.cf-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; margin-bottom:8px; }.cf-choice { min-height:38px; border:1px solid var(--line); border-radius:5px; background:var(--surface); font-size:11px; }.cf-choice.is-on { border-color:var(--accent); color:var(--accent); background:var(--surface-2); }
.cf-pick { display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid var(--line); padding-top:13px; }.cf-pick > div { display:flex; flex-direction:column; gap:2px; min-width:0; }.cf-pick > div span { font-size:9px; color:var(--muted); }.cf-pick strong { font-size:13px; font-weight:550; }.cf-pick[data-valid="1"] strong { color:var(--accent); }.cf-pick[data-bad="1"] strong { color:#e1a38d; }.primary { min-height:46px; min-width:122px; border:0; padding:8px 15px; border-radius:6px; background:var(--accent); color:var(--on-accent); font-size:12px; font-weight:600; white-space:nowrap; }.primary span { margin-left:14px; }.primary:disabled { background:var(--surface-2); color:var(--muted); }.primary:hover:not(:disabled) { filter:brightness(1.06); }
.cf-foot { display:flex; align-items:center; gap:10px; justify-content:space-between; margin-top:6px; color:var(--muted); font-size:9px; }.cf-foot .quiet { font-size:11px; padding-left:0; }.cf-foot .quiet span { color:var(--accent); font-size:16px; }.cf-autosave { color:var(--positive); font-size:9px; }.cf-autosave::before { content:'· '; }.cf-desktop-guide { border-top:1px solid var(--line); padding-top:16px; margin-top:18px; }.cf-desktop-guide .eyebrow { font-size:8px; }.cf-desktop-guide p { color:var(--muted); font-size:12px; line-height:1.9; margin:7px 0 15px; }.cf-desktop-guide > div { display:flex; gap:18px; color:var(--muted); font-size:10px; }.cf-page-note { text-align:center; color:var(--muted); font-size:10px; margin:14px 0 0; }
.cf-result { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px; border-radius:10px; background:#24392ff2; text-align:center; color:#f4f0e5; z-index:5; }.cf-result .eyebrow { color:var(--cf-gold); font-size:9px; }.cf-result h2 { font-size:31px; font-weight:550; margin:10px 0; }.cf-result p { font-size:12px; color:#c4cfba; margin:0 0 22px; }.cf-result > div { display:flex; flex-direction:column; gap:6px; width:180px; }.cf-result .quiet { color:#e1dac6; }
dialog { width:min(470px,calc(100% - 24px)); padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--bg); color:var(--text); max-height:85svh; overscroll-behavior:contain; }dialog::backdrop { background:#0c100fc4; backdrop-filter:blur(5px); }dialog header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:17px; }dialog .eyebrow { font-size:9px; }dialog h2 { font-size:22px; font-weight:550; margin:1px 0 0; }.close-button { min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--muted); font-size:23px; }.modal-note { font-size:12px; color:var(--muted); line-height:1.9; }.rules-intro { font-size:13px; color:var(--muted); line-height:1.9; margin-bottom:17px; }.rules-intro strong { color:var(--text); }.rule-row { display:grid; grid-template-columns:52px 1fr; gap:10px; border-top:1px solid var(--line); padding:11px 0; font-size:12px; line-height:1.8; }.rule-row b { color:var(--accent); font-weight:550; }.rule-row span { color:var(--muted); }.menu-row { display:flex; justify-content:space-between; align-items:center; width:100%; min-height:58px; padding:10px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; text-align:left; font-size:13px; }.menu-row span { font-size:11px; color:var(--muted); }.modal-buttons { display:flex; gap:8px; }.modal-buttons button { flex:1; }.cf-error { color:#efb09c; border:1px solid currentColor; border-radius:7px; padding:10px; margin-bottom:12px; font-size:12px; }
@media(max-width:700px) {
  .header-inner { width:calc(100% - 24px); min-height:51px; gap:8px; }.brand { gap:8px; }.brand strong { font-size:12px; }.brand small { font-size:8px; }.brand-dot { width:20px; height:20px; flex-basis:20px; }.header-actions { gap:8px; }.theme-toggle { width:32px; height:32px; min-height:32px; }.theme-toggle svg { width:16px; height:16px; }.header-home { font-size:10px; }
  .site-main { width:calc(100% - 24px); max-width:460px; padding-top:8px; padding-bottom:calc(8px + env(safe-area-inset-bottom)); }.page-heading { margin-bottom:3px; min-height:37px; }h1 { font-size:18px; margin:0; }.page-heading .eyebrow { display:none; }.heading-actions { gap:0; }.heading-actions .quiet { min-height:36px; padding:5px 6px; font-size:10px; }.heading-actions .quiet span { margin-left:4px; }
  .cf-board { grid-template-columns:1fr; grid-template-areas:"head" "table" "seals" "side"; gap:0; }.cf-head { min-height:32px; }.cf-counter { gap:10px; font-size:9px; }.cf-counter b { font-size:12px; }.cf-counter small { font-size:9px; }.cf-seed { font-size:8px; max-width:73px; }.cf-status { font-size:9px; }.cf-head > div:first-child { gap:6px; }
  .cf-table { padding:9px 9px 3px; border-radius:8px; }.cf-grid { height:clamp(174px,calc(100svh - 470px),360px); gap:7px; }.cf-table-foot { min-height:20px; font-size:8px; }.cf-table-mark { font-size:6px; }.cf-card { border-radius:5px; }.cf-cell { border-radius:5px; }.cf-corner { font-size:15px; top:5px; left:6px; }.cf-corner i { font-size:10px; margin-top:2px; }.cf-corner.bottom { bottom:5px; right:6px; }.cf-pips i { font-size:15px; }.cf-joker .cf-face { font-size:28px; }.cf-joker-tag { font-size:6px; bottom:8px; }.cf-cell.is-target::after { top:3px; right:3px; width:13px; height:13px; font-size:8px; }.cf-seals { padding:6px 0 4px; gap:3px; }.cf-seal { font-size:9px; gap:4px; }.cf-seal b { font-size:12px; }.cf-seal small { font-size:8px; }
  .section-label { min-height:27px; border:0; }.section-label strong { font-size:10px; }.section-label strong span { font-size:8px; }.section-label > span { font-size:9px; }.cf-hand { height:62px; gap:7px; }.cf-hand .cf-corner { font-size:17px; top:7px; left:8px; }.cf-hand .cf-corner i { font-size:11px; }.cf-hand .cf-face { font-size:27px; right:8px; bottom:6px; }.cf-hand .cf-cell.is-chosen::after { font-size:9px; top:5px; right:6px; }
  .action-heading { min-height:27px; margin-top:3px; }.action-heading strong { font-size:10px; }.action-heading > span { font-size:9px; }.cf-actions { gap:5px; }.cf-act { min-height:44px; padding:5px 8px; gap:2px; }.cf-act b { font-size:11px; }.cf-act small { font-size:8px; }.cf-act > i { font-size:13px; }.cf-description { min-height:42px; padding-block:5px; font-size:9px; line-height:1.7; }.cf-description button { min-height:30px; width:30px; }.cf-pick { padding-top:8px; gap:5px; }.cf-pick > div { gap:0; }.cf-pick > div span { font-size:8px; }.cf-pick strong { font-size:11px; }.primary { min-height:44px; min-width:114px; padding:7px 11px; font-size:11px; }.primary span { margin-left:8px; }.cf-foot { margin-top:1px; gap:5px; font-size:8px; }.cf-foot .quiet { font-size:10px; min-height:37px; }.cf-autosave { font-size:8px; }.cf-desktop-guide,.cf-page-note { display:none; }.cf-choices { gap:4px; margin-bottom:6px; }.cf-choice { min-height:36px; font-size:10px; }.cf-board[data-has-choice="1"] .cf-grid { height:clamp(150px,calc(100svh - 530px),300px); }.cf-result h2 { font-size:26px; }.cf-result p { font-size:11px; margin-bottom:12px; }.cf-result .eyebrow { font-size:8px; }
}
@media(max-width:700px) {
  .mobile-hint { display:block; }.cf-board { grid-template-rows:auto; }.page-heading h1 { font-size:16px; }.heading-actions .quiet { padding-inline:5px; }.heading-actions .quiet span { margin-left:2px; }
  .cf-table-foot,.action-heading,.cf-foot { display:none; }.cf-actions { margin-top:10px; }.cf-choices { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media(max-width:700px) and (max-height:730px) { .cf-corner.bottom { display:none; }.cf-pips { inset:17% 31%; }.cf-pips i { font-size:12px; }.cf-joker-tag { display:none; }.cf-court { inset:10% 32%; }.cf-description { min-height:36px; }.cf-seals { padding-block:5px 2px; }.cf-table-mark { display:none; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; }.cf-cell.is-target .cf-card,.cf-hand .cf-cell.is-chosen .cf-card { transform:none; } }
