/* Beginner guide (/table/learn/). Shared look in /table/css/table.css.
   An illustrated article: readable measure, every tile figure laid out on a strip of felt, every Chinese word a
   small lit tag you can tap to hear. */
.learn { font-size:17px; }
.learn article { max-width:720px; margin:0 auto; }
.learn h1 { font-size:clamp(26px,6.6vw,42px); }
.learn p, .learn li, .learn dd { line-height:1.65; }
.learn section > p, .learn section > ul, .learn .suit p { max-width:68ch; }
.lede { font-size:18px; margin:8px 0 12px; }
.small { font-size:14px; }
.learn section { margin-top:44px; scroll-margin-top:72px; }
.learn h2 { font-size:clamp(24px,6vw,32px); }
.learn i { font-style:normal; color:#ffd9a3; }
.learn b { color:#fff; }

.learn-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:4px 0 6px; }
.learn-mute { width:44px; padding:0; font-size:20px; }

/* Contents: a lit directory board */
.toc { --frame:var(--c-amber); padding:16px 18px 14px; margin-top:18px; }
.toc ol { margin:0; padding:0; list-style:none; counter-reset:toc; columns:2 210px; column-gap:24px; }
.toc li { counter-increment:toc; break-inside:avoid; }
.toc a { display:flex; align-items:center; gap:10px; min-height:40px; padding:3px 0; color:var(--ink); text-decoration:none; font-size:15px; }
.toc a::before { content:counter(toc, decimal-leading-zero); flex:none; width:28px; font-family:var(--f-display); font-weight:800; font-size:15px; color:#ffe1b0;
  text-shadow:0 0 8px rgb(var(--c-amber) / .8); }
.toc a:hover { color:#fff; }

/* A spoken term: inline in the text, a small lit tag with a hit area bigger than it looks. */
.say { position:relative; display:inline; border:0; background:rgb(var(--c-amber) / .1); color:#fff6ea; font:inherit; padding:1px 6px; border-radius:5px; cursor:pointer;
  box-shadow:inset 0 -1.5px 0 rgb(var(--c-amber) / .8), 0 3px 8px -4px rgb(var(--c-amber) / .6); -webkit-tap-highlight-color:transparent; white-space:nowrap; }
.say::after { content:""; position:absolute; inset:-11px -3px; }
.say:hover { background:rgb(var(--c-amber) / .2); }
.say:active { background:rgb(var(--c-amber) / .32); }
.say .han { font-size:1.1em; color:#fff; }

/* Tile figures: each row of tiles laid on a strip of felt. Groups stay together, groups wrap. */
.hand { --tile-w:32px; display:flex; flex-wrap:wrap; gap:12px 12px; margin:14px 0 6px; }
.learn section > .hand, .suit > .hand, .hands .h > .hand, .check .hand { width:fit-content; max-width:100%; padding:12px 12px 10px; border:4px solid transparent; border-radius:10px;
  background:
    radial-gradient(110% 80% at 50% -10%, rgba(255,226,170,.22), transparent 62%) padding-box,
    radial-gradient(130% 120% at 50% 30%, #15603f, #0b3a29 60%, #052016) padding-box,
    linear-gradient(155deg, #7a4422, #3b1c0c 38%, #63331a 62%, #2a1307) border-box;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.55), 0 0 0 1px rgb(var(--acc) / .4), 0 0 22px -10px rgb(var(--acc) / .7), 0 14px 26px -14px #000; }
.hand .grp { display:inline-flex; flex-wrap:wrap; gap:6px 3px; padding-bottom:5px; max-width:100%; }
.big-hand { --tile-w:34px; }
.suit { margin-top:10px; }
.suit .hand .grp { gap:2px; }
.suit p { margin-top:6px; }
.caption { font-size:14px; margin-top:6px; font-style:italic; }
.sets { padding-left:20px; }
.sets li { margin:8px 0; }
.sets li::marker { color:rgb(var(--c-amber)); }

.calls { margin:18px 0; }
.calls dt { margin-top:18px; font-family:var(--f-display); font-weight:700; font-size:22px; letter-spacing:.02em; }
.calls dt .say { margin-right:8px; font-family:var(--f-body); font-size:19px; padding:4px 10px; }
.calls dt .say .han { font-size:1.35em; }
.calls dd { margin:6px 0 0 0; padding-left:14px; border-left:2px solid rgb(var(--c-amber) / .55); box-shadow:-4px 0 10px -6px rgb(var(--c-amber) / .7); }

/* The seats: a small table seen from above */
.compass { display:grid; grid-template-columns:repeat(3,96px); grid-template-rows:repeat(3,auto); justify-content:center; align-items:center; justify-items:center; gap:6px; margin:18px 0; }
.compass > span { display:flex; flex-direction:column; align-items:center; gap:5px; font-size:13px; color:var(--dim); }
.compass .n { grid-area:1 / 2; } .compass .w { grid-area:2 / 1; }
.compass .mid { grid-area:2 / 2; width:88px; height:64px; border:4px solid transparent; border-radius:10px; justify-content:center; font-size:12px; color:#e8f1ec; letter-spacing:.12em; text-transform:uppercase;
  background:radial-gradient(130% 120% at 50% 30%, #15603f, #0b3a29 60%, #052016) padding-box, linear-gradient(155deg, #7a4422, #3b1c0c 50%, #2a1307) border-box;
  box-shadow:0 0 0 1px rgb(var(--acc) / .4), 0 0 20px -6px rgb(var(--acc) / .6); }
.compass .e { grid-area:2 / 3; } .compass .s { grid-area:3 / 2; }
.compass .s .lbl::after { content:" · dealer"; color:#ffb3c1; }

.hands { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
.hands .h { padding-top:6px; }
.hands .hand { --tile-w:26px; gap:8px; }
.hands .hand .grp { gap:2px; }
.hands p { margin:6px 0 12px; font-size:16px; }

.check { --frame:var(--c-amber); margin-top:44px; }
.check .hand { --tile-w:30px; gap:2px; }
.check .hand .grp { gap:2px; flex-wrap:wrap; }
.check .hand.grouped { gap:10px; }
.quiz-btns { margin-top:12px; }
.quiz-btns .btn { min-width:130px; }
.quiz-why { min-height:24px; }
.quiz-score { font-family:var(--f-display); font-weight:800; font-size:20px; margin-right:6px; color:#fff1d8; text-shadow:0 0 8px rgb(var(--c-amber)); }

.tips { padding-left:20px; }
.tips li { margin:10px 0; }
.tips li::marker { color:rgb(var(--c-amber)); }

.words { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.say.word { display:flex; flex-direction:column; align-items:flex-start; gap:2px; white-space:normal; text-align:left; padding:12px 14px; min-height:44px; border-radius:6px;
  background:linear-gradient(180deg, rgba(20,15,30,.95), rgba(9,7,15,.95)); border:1px solid rgb(var(--c-amber) / .45); box-shadow:0 0 14px -8px rgb(var(--c-amber) / .8); }
.say.word:hover { border-color:rgb(var(--c-amber)); box-shadow:0 0 16px -4px rgb(var(--c-amber) / .8); }
.say.word::after { display:none; }
.say.word .han { font-size:28px; text-shadow:0 0 10px rgb(var(--c-amber) / .6); }
.say.word .en { color:var(--dim); font-size:14px; }

.faq { margin-top:44px; }
.faq p { color:#ddd6e8; }
.next { margin-top:28px; }

@media (min-width:560px) { .hand { --tile-w:38px; } .hands .hand { --tile-w:30px; } .check .hand { --tile-w:36px; } }
