/* Shared Web/TWA table. Controls and reading copy take real space, never overlay. */
html[data-tarot-game=true] #tarot-table .kt-chrome{grid-template-columns:44px minmax(0,1fr) auto 44px;gap:4px}
html[data-tarot-game=true] #tarot-table .kt-brand{font-size:17px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#tarot-table .kt-new-reading{padding:10px 8px;min-height:44px;display:flex;align-items:center;color:#f2dfaa;font:13px/1.3 Arial,sans-serif;text-decoration:none;border:1px solid #9b855d66;border-radius:8px}
html[data-tarot-game=true] #tarot-table .kt-room{display:block!important;overflow:auto;overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom))}
html[data-tarot-game=true] #tarot-table .kt-arena{height:clamp(300px,64dvh,660px);width:100%;flex:none}
html[data-tarot-game=true] #tarot-table[data-stage=intro] .kt-arena{height:clamp(230px,53dvh,500px)}
html[data-tarot-game=true] #tarot-table[data-stage=reading] .kt-arena{display:none}
#tarot-table .kt-guide{min-height:0!important;padding:0!important;border:0!important}
#tarot-table .kt-guide [aria-live]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#tarot-table .kt-primary{display:none!important}
#tarot-table .kt-prompt{min-height:22px;margin:12px 16px 0;text-align:center;color:#d8cfae;font:14px/1.5 Arial,sans-serif}
#tarot-table .kt-session-focus{max-width:760px;margin:12px auto 0;padding:0 20px;color:#e4d6b3;font:14px/1.5 Arial,sans-serif;text-align:center;overflow-wrap:anywhere}
#tarot-table[data-stage=reading] .kt-prompt,#tarot-table[data-stage=reveal] .kt-prompt:empty{display:none}
#tarot-table .kt-entry,#tarot-table .kt-card-reader,#tarot-table .kt-card-history,#tarot-table .kt-review-cards{max-width:760px;margin:0 auto;padding:16px 20px}
#tarot-table .kt-entry h2{font:400 25px/1.25 Georgia,serif;margin:0 0 16px;text-align:center}
#tarot-table .kt-entry-paths,#tarot-table [data-entry-day]{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#tarot-table .kt-entry button,#tarot-table .kt-entry-choice{min-height:48px;border:1px solid #aa915d8c;border-radius:10px;padding:12px 14px;background:#192a20;color:#eee6d0;font:15px/1.4 Arial,sans-serif;text-align:center;cursor:pointer;text-decoration:none}
#tarot-table .kt-entry-paths button[aria-pressed=true]{background:#c9ad66;color:#101810}
#tarot-table [data-entry-day],#tarot-table [data-entry-question]{margin-top:14px}
#tarot-table [data-entry-day] form,#tarot-table [data-entry-day] button{width:100%;margin:0;height:100%}
#tarot-table .kt-entry-choice{display:flex;flex-direction:column;justify-content:center}
#tarot-table .kt-entry-choice small{font-size:12px;display:block;margin-top:5px;color:inherit;opacity:.85}
#tarot-table .kt-entry textarea{width:100%;min-height:70px;padding:12px;margin:8px 0 12px;border:1px solid #aa915d8c;border-radius:8px;color:#eee6d0;background:#0d1c15;font:16px/1.5 Arial,sans-serif;resize:vertical}
#tarot-table .kt-entry fieldset{padding:0;border:0;margin:0 0 12px}
#tarot-table .kt-entry legend{font-size:15px;margin-bottom:8px}
#tarot-table .kt-depth-options{display:flex;gap:10px;flex-wrap:wrap}
#tarot-table .kt-depth-options label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #aa915d66;border-radius:8px;cursor:pointer}
#tarot-table .kt-depth-options input{accent-color:#d4b76b}
#tarot-table .kt-entry-start,#tarot-table .kt-summary-action{background:#cfb36d!important;color:#111a13!important;font-weight:600!important}
#tarot-table .kt-resume{margin-top:12px;font:13px/1.5 Arial,sans-serif;color:#c7bd9e}
#tarot-table .kt-resume summary{cursor:pointer;min-height:44px;padding:10px 0}
#tarot-table .kt-resume a{display:block;padding:10px 0;min-height:44px;color:#ead19a}
#tarot-table .kt-card-reader{background:#102219;border:1px solid #9b855d55;border-radius:14px;margin-bottom:16px}
#tarot-table .kt-card-navigation{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:16px}
#tarot-table .kt-card-navigation button,#tarot-table .kt-summary-action{min-height:44px;border:1px solid #ad956366;border-radius:8px;padding:9px 12px;background:#203526;color:#f1e7ce;font:14px/1.4 Arial,sans-serif;cursor:pointer}
#tarot-table button:disabled{cursor:default}
#tarot-table .kt-card-navigation button:disabled{opacity:.45}
#tarot-table [data-card-counter]{font:13px/1.4 Arial,sans-serif;color:#d8cfae}
#tarot-table[data-card-count="1"] .kt-card-navigation{justify-content:center}
#tarot-table[data-card-count="1"] [data-card-prev],#tarot-table[data-card-count="1"] [data-card-next]{display:none}
#tarot-table .kt-card-copy h2{font:400 26px/1.2 Georgia,serif;margin:8px 0}
#tarot-table .kt-card-copy p{font:16px/1.65 Arial,sans-serif;max-width:68ch;margin:10px 0;color:#e5dfcd;overflow-wrap:anywhere}
#tarot-table .kt-card-copy .kt-card-role,#tarot-table [data-card-orientation]{font-size:13px;color:#c8bd9b}
#tarot-table .kt-card-copy .kt-card-headline{font-size:18px;color:#eee4c7}
#tarot-table .kt-card-copy summary{cursor:pointer;min-height:44px;padding:10px 0;color:#e5cb88}
#tarot-table .kt-summary-action{width:100%;margin-top:16px}
#tarot-table .kt-card-history{display:flex;gap:8px;overflow-x:auto;padding-block:10px;scrollbar-width:thin}
#tarot-table .kt-card-history button{flex:none;min-width:44px;min-height:44px;border:1px solid #9b855d66;border-radius:8px;background:#13271c;color:#eee6d0;padding:6px 10px;font:14px/1.4 Arial,sans-serif}
#tarot-table .kt-card-history button[aria-current=true]{border-color:#e3c378;background:#385034}
#tarot-table:is([data-card-count="5"],[data-card-count="8"]) .kt-card-name{display:none!important}
#tarot-table:is([data-card-count="5"],[data-card-count="8"]) .kt-slot[data-current=true]{outline:2px solid #efd28a;outline-offset:3px}
#tarot-table[data-spread-layout="2+1"] .kt-card-name{display:none!important}
#tarot-table[data-spread-layout="2+1"] .kt-slot[data-current=true]{outline:2px solid #efd28a;outline-offset:3px}
#tarot-table .kt-review-cards{display:block;color:#ead19a;min-height:44px;text-decoration:none}
#tarot-table .kt-result{padding-top:12px}
#tarot-table .kt-result #reading-view-title{font:400 clamp(25px,3vw,34px)/1.25 Georgia,serif}
#tarot-table .kt-result .mini-app-reading__prose p{font-size:16px;line-height:1.7;max-width:68ch}
#tarot-table .kt-result .tarot-continuous-result__header,#tarot-table .kt-result .tarot-long-result__header,#tarot-table .kt-result .studio-reading-nav,#tarot-table .kt-result #studio-cards,#tarot-table .kt-result .studio-position-list,#tarot-table .kt-result .tradition-panel{display:none}
@media(min-width:1000px){html[data-tarot-game=true] #tarot-table .kt-room{display:block!important}#tarot-table .kt-entry{padding-top:24px}}
@media(max-width:400px){#tarot-table .kt-entry,#tarot-table .kt-card-reader{padding:14px}#tarot-table .kt-entry-paths button{font-size:14px;padding:10px 8px}#tarot-table .kt-new-reading{font-size:12px}}
