/* Tarot is the entire app viewport; the rest of the site keeps its own shell. */
html[data-tarot-game='true'],html[data-tarot-game='true'] body{margin:0;overflow:hidden;overscroll-behavior:none;background:#0b1310}
html[data-tarot-game='true'] [data-site-header],html[data-tarot-game='true'] [data-practice-nav],html[data-tarot-game='true'] .reader-footer,html[data-tarot-game='true'] .mobile-nav{display:none!important}
html[data-tarot-game='true'] .reader-shell,html[data-tarot-game='true'] .reader-main{width:100%;max-width:none;margin:0;padding:0;min-height:0}
html[data-tarot-game='true'] #tarot-table{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;height:100dvh;height:var(--kt-game-height,100dvh);border:0;border-radius:0}
html[data-tarot-game='true'] #tarot-table .kt-chrome{flex:none;display:grid;grid-template-columns:44px 1fr 44px;gap:8px;padding:max(4px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 4px max(8px,env(safe-area-inset-left));min-height:52px}
html[data-tarot-game='true'] #tarot-table .kt-brand{margin:0;text-align:center;font-size:19px;line-height:1.2}
html[data-tarot-game='true'] #tarot-table .kt-game-exit,html[data-tarot-game='true'] #tarot-table .kt-game-menu{display:grid;place-items:center;min-width:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--kt-line);border-radius:50%;background:transparent;color:var(--kt-text);text-decoration:none;font-size:26px;line-height:1}
html[data-tarot-game='true'] #tarot-table .kt-room{flex:1;min-height:0;display:flex;flex-direction:column;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
html[data-tarot-game='true'] #tarot-table .kt-arena{position:relative;flex:1 1 0;min-height:0;overflow:hidden}
html[data-tarot-game='true'] #tarot-table .kt-surface{max-width:none;margin-top:0;margin-bottom:0}
html[data-tarot-game='true'] #tarot-table .kt-guide{flex:none;min-height:0;padding:12px 20px max(18px,env(safe-area-inset-bottom));margin:0;border-top:1px solid var(--kt-line);background:#0c1b15}
html[data-tarot-game='true'] #tarot-table .kt-guide h2{font-size:21px;line-height:1.2;margin:0 0 6px}
html[data-tarot-game='true'] #tarot-table .kt-guide p{font-size:14px;line-height:1.45;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html[data-tarot-game='true'] #tarot-table .kt-guide p.kt-hint-split{display:block;overflow:visible}
html[data-tarot-game='true'] #tarot-table .kt-insight{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html[data-tarot-game='true'] #tarot-table .kt-next{display:block;margin-top:6px}
html[data-tarot-game='true'] #tarot-table .kt-slot-label,html[data-tarot-game='true'] #tarot-table .kt-card-name{font-size:calc(12px / var(--kt-stage-scale,1));line-height:1.2}
html[data-tarot-game='true'] #tarot-table .kt-slot-label,html[data-tarot-game='true'] #tarot-table .kt-slot[data-revealed='true'] .kt-card-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html[data-tarot-game='true'] #tarot-table .kt-primary{margin-top:10px;max-width:100%;padding:10px 8px;white-space:normal}
html[data-tarot-game='true'] #tarot-table[data-stage='reading'] .kt-room{display:block;overflow:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
html[data-tarot-game='true'] #tarot-table[data-stage='reading'] .kt-arena{height:min(40dvh,300px)}
html[data-tarot-game='true'] #tarot-table[data-stage='reading'] .kt-pile-main{display:none}
html[data-tarot-game='true'] #tarot-table .kt-result{padding:12px max(16px,env(safe-area-inset-right)) 30px max(16px,env(safe-area-inset-left))}
html[data-tarot-game='true'] #tarot-table .kt-error{flex:none;margin:8px 16px;padding-bottom:env(safe-area-inset-bottom)}
#tarot-table .kt-game-dialog{width:min(440px,calc(100% - 32px));max-height:calc(var(--kt-game-height,100dvh) - 32px);overflow:auto;overscroll-behavior:contain;padding:20px;border:1px solid var(--kt-line);border-radius:16px;background:#10231b;color:var(--kt-text);box-shadow:0 20px 100px #0009}
#tarot-table .kt-game-dialog[open]{position:fixed;top:max(16px,env(safe-area-inset-top));bottom:auto;margin:0 auto}
#tarot-table .kt-game-dialog::backdrop{background:#020906ba}
#tarot-table .kt-game-dialog header{display:flex;gap:12px;align-items:center;justify-content:space-between}
#tarot-table .kt-game-dialog h2{font:400 25px/1.25 Georgia,serif;margin:0}
#tarot-table .kt-game-dialog button{border:1px solid var(--kt-line);border-radius:6px;background:#253d2b;padding:9px 14px;font-size:14px;cursor:pointer}
#tarot-table .kt-game-dialog [data-game-close]{font-size:25px;min-width:44px;padding:0}
#tarot-table .kt-game-dialog form{display:grid;gap:16px;margin:22px 0}
#tarot-table .kt-game-field{display:grid;gap:8px}
#tarot-table .kt-game-dialog label{display:grid;gap:8px;font-size:14px}
#tarot-table .kt-game-dialog select,#tarot-table .kt-game-dialog textarea{width:100%;max-width:100%;min-height:44px;background:#091910;border:1px solid #9d8b5d80;border-radius:5px;padding:10px;color:var(--kt-text);font:400 16px/1.4 Arial,sans-serif}
#tarot-table .kt-game-dialog textarea{resize:vertical}
#tarot-table .kt-game-dialog a{display:block;min-height:44px;padding:10px 0;color:var(--kt-gold);font-size:14px}
#tarot-table .kt-game-options{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}
#tarot-table .kt-game-status{font-size:13px;color:var(--kt-muted)}
html[data-tarot-game='true'] #tarot-table[data-stage='error'] .kt-room{display:block;overflow:auto}
html[data-tarot-game='true'] #tarot-table[data-stage='error'] .kt-arena,html[data-tarot-game='true'] #tarot-table[data-stage='error'] .kt-guide{display:none}
html[data-tarot-game='true'] #tarot-table .kt-error a{display:table;min-height:44px;margin-top:16px;padding:10px 14px;border:1px solid var(--kt-gold);border-radius:5px}
@media(orientation:landscape) and (max-height:519px){
 html[data-tarot-game='true'] #tarot-table .kt-room{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,28%)}
 html[data-tarot-game='true'] #tarot-table .kt-arena{height:100%}
 html[data-tarot-game='true'] #tarot-table .kt-guide{align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) 12px;border-top:0;border-left:1px solid var(--kt-line)}
 html[data-tarot-game='true'] #tarot-table .kt-guide h2{font-size:19px}
 html[data-tarot-game='true'] #tarot-table .kt-guide p{-webkit-line-clamp:6}
 html[data-tarot-game='true'] #tarot-table .kt-pile{top:70px}
 html[data-tarot-game='true'] #tarot-table[data-stage='reading'] .kt-arena{height:230px}
}
