/* FamiCards — Tarot & Yams premium visual pass. Scoped; no game rules changed. */
.ttarot-table{border-color:#79512d;background:radial-gradient(ellipse at 48% 40%,#358b68 0%,#176047 64%,#103d30 100%);box-shadow:inset 0 0 0 3px #c6a36a,inset 0 0 42px #052c22b8,0 12px 28px #0004}
.ttarot-center .ttrick{gap:clamp(3px,1vw,9px);align-items:flex-start}
.ttarot-center .ttrick .tcard{width:clamp(43px,6.8vw,59px);height:clamp(65px,10vw,88px);box-shadow:0 3px 9px #001b15a8;border:2px solid #f9f0d9}
.ttarot-center .ttrick .tcard strong{font-size:1.05rem}
.ttarot-center .ttrick small{font-size:.7rem;font-weight:800;text-shadow:0 1px 3px #000}
.tseat{box-shadow:0 4px 12px #001d1777;border-color:#c9b68d}
.yamsview .ytable{border:1px solid #cdbd98;border-radius:16px;overflow-x:auto;background:#fff9ea;box-shadow:0 7px 24px #0002}
.yamsview .yrow{border-bottom-color:#e9ddc4}
.yamsview .yrow>*{padding:7px 5px}
.yamsview .yrow .yname{color:#403323}
.yamsview .yhead,.yamsview .ytotal{background:#e7d8b8}
.yamsview .yscorebtn{border-color:#477b59;background:#e5f2df;box-shadow:0 2px 0 #2b6740}
.yamsview .yscorebtn:active{transform:translateY(2px);box-shadow:none}
@media(max-width:600px){
 .ttarot-table{height:340px}
 .ttarot-center{inset:25% 15%}
 .ttarot-center .ttrick{gap:3px}
 .ttarot-center .ttrick .tcard{width:clamp(34px,9.4vw,44px);height:clamp(52px,14vw,67px)}
 .ttarot-center .ttrick .tcard strong{font-size:.85rem}
 .yamsview .yrow>*{padding:6px 3px}
 .yamsview .yrow{grid-template-columns:minmax(100px,1.25fr) repeat(var(--yn),minmax(44px,1fr))}
}
@media(prefers-reduced-motion:reduce){.yamsview .yscorebtn{transition:none}}

/* Second pass: dedicated trick layout and paper-like score sheet */
.tarotview .tplay-layout{width:100%;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px}
.tarotview .tplay-status{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 12px;font-size:.82rem;color:#f6ead0;text-shadow:0 1px 3px #001e15}
.tarotview .tplay-cards{width:100%;display:flex;justify-content:center;align-items:flex-start;gap:clamp(2px,.65vw,8px)}
.tarotview .tplay-card{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;flex:0 1 66px}
.tarotview .tplay-card .tcard{width:clamp(40px,6.5vw,58px);height:clamp(62px,9.8vw,88px);min-width:0;flex:none}
.tarotview .tplay-card .tplayed-suit{font-size:.62rem;font-weight:900;color:#fff4d9;text-shadow:0 1px 3px #000;white-space:nowrap}
.tarotview .tplay-card small{font-size:.64rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.tarotview .tlast-cards{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}
.tarotview .tlast-card{display:flex;flex-direction:column;align-items:center;gap:3px}
.tarotview .tlast-card .tcard{width:52px;height:80px}
.yamsview .panel:has(.ytable){background:linear-gradient(125deg,#fff9eb,#f1e5c9);border:1px solid #bca478;box-shadow:0 8px 24px #0002}
.yamsview .ytable{font-variant-numeric:tabular-nums}
.yamsview .yrow:nth-child(odd):not(.yhead):not(.ytotal){background:#fff9ec}
.yamsview .yrow:nth-child(even):not(.yhead):not(.ytotal){background:#f6edd9}
.yamsview .yrow .yscore{font-weight:800;color:#3a3328}
.yamsview .yrow .yname{font-size:.88rem}
.yamsview .yhead{position:sticky;top:0;z-index:2}
.yamsview .yrow.ytotal{position:sticky;bottom:0;z-index:2;box-shadow:0 -2px 6px #0001}
@media(max-width:600px){
 .tarotview .tplay-layout{gap:5px}
 .tarotview .tplay-status{font-size:.7rem;gap:2px 6px}
 .tarotview .tplay-cards{gap:2px}
 .tarotview .tplay-card{flex:1 1 0}
 .tarotview .tplay-card .tcard{width:clamp(33px,9vw,42px);height:clamp(50px,13.5vw,64px)}
 .tarotview .tplay-card .tplayed-suit{font-size:.54rem}
 .tarotview .tplay-card small{font-size:.54rem}
 .yamsview .yrow .yname{font-size:.8rem}
}

/* Final responsive override — existing center rules are more specific */
.ttarot-center .tplay-layout{width:100%;max-width:100%;min-width:0}
.ttarot-center .tplay-cards{display:flex;flex-wrap:nowrap;justify-content:center;align-items:flex-start;gap:clamp(2px,.7vw,7px);min-width:0;width:100%}
.ttarot-center .tplay-card{width:auto;min-width:0;flex:1 1 0;max-width:64px}
.ttarot-center .tplay-card .tcard{width:100%;max-width:58px;height:clamp(55px,9vw,86px);opacity:1}
.ttarot-center .tplay-card small{max-width:100%}
.ymat{background:radial-gradient(ellipse at 50% 40%,#33875e,#125239 76%,#092f23);border-color:#7b4d2b;box-shadow:inset 0 0 0 3px #c7a36b,inset 0 7px 22px #0007,0 9px 20px #0003}
.ymat .ydie.held{border-color:#d4b45b;background:#fff9df;box-shadow:0 0 0 3px #f4d574,0 5px 9px #0004}
@media(max-width:600px){
 .ttarot-center .tplay-cards{gap:2px}
 .ttarot-center .tplay-card{max-width:44px}
 .ttarot-center .tplay-card .tcard{height:clamp(48px,13vw,64px)}
 .ttarot-center .tplay-card small{font-size:.54rem}
 .ttarot-center .tplay-card .tplayed-suit{font-size:.52rem}
 .ymat{padding:16px 8px;border-width:7px}
}

/* Bot turns: visible but compact on desktop and iPhone */
.yamsview .ybot-status{margin:10px auto 4px;padding:9px 14px;max-width:400px;border:1px solid #c4a46a;border-radius:12px;background:#f9edce;color:#493921;font-weight:800;font-size:.88rem}
.yamsview .ybot-last{margin:0 auto 10px;padding:7px 10px;max-width:430px;border-radius:9px;background:#e9f3e6;color:#315b3e;font-size:.82rem}
.yamsview .ybot-last b{font-variant-numeric:tabular-nums}

/* Tarot trick readability: both four and five seats.
   The table has room; previous center inset and max-width were the bottleneck. */
.tarotview .ttarot-table .ttarot-center{left:15%;right:15%;top:25%;bottom:21%;inset:25% 15% 21%;overflow:visible}
.tarotview .ttarot-table .ttarot-center .tplay-layout{width:100%;max-width:none;gap:9px}
.tarotview .ttarot-table .ttarot-center .tplay-cards{width:100%;display:flex;flex-wrap:nowrap;align-items:flex-start;justify-content:center;gap:clamp(5px,1.2vw,13px)}
.tarotview .ttarot-table .ttarot-center .tplay-card{width:clamp(62px,8vw,82px);max-width:82px;flex:0 1 auto}
.tarotview .ttarot-table .ttarot-center .tplay-card .tcard{display:block;width:clamp(62px,8vw,82px);max-width:100%;height:clamp(94px,12vw,124px);opacity:1}
.tarotview .ttarot-table .ttarot-center .tplay-card .tplayed-suit{font-size:.72rem}
.tarotview .ttarot-table .ttarot-center .tplay-card small{font-size:.7rem;max-width:100%}
@media(max-width:600px){
 .tarotview .ttarot-table .ttarot-center{inset:24% 13% 20%}
 .tarotview .ttarot-table .ttarot-center .tplay-cards{gap:4px}
 .tarotview .ttarot-table .ttarot-center .tplay-card{width:clamp(47px,13vw,62px);max-width:62px;flex:0 1 auto}
 .tarotview .ttarot-table .ttarot-center .tplay-card .tcard{width:clamp(47px,13vw,62px);height:clamp(72px,20vw,94px)}
 .tarotview .ttarot-table .ttarot-center .tplay-card .tplayed-suit{font-size:.62rem}
 .tarotview .ttarot-table .ttarot-center .tplay-card small{font-size:.62rem}
}

/* Yams: highlight the current player's entire score column. */
.yamsview .yrow > .yactive-col{background:#e0edd6!important;color:#234c32!important;box-shadow:inset 2px 0 #80a67b,inset -2px 0 #80a67b;transition:background .2s ease}
.yamsview .yrow.yhead > .yactive-col{background:#c3dfb8!important;color:#17432a!important;font-weight:900;box-shadow:inset 2px 0 #59895c,inset -2px 0 #59895c,inset 0 3px #59895c}
.yamsview .yrow.ytotal > .yactive-col{background:#c3dfb8!important;font-weight:900;box-shadow:inset 2px 0 #59895c,inset -2px 0 #59895c,inset 0 -3px #59895c}
