/* ORINE Games v12 — responsive CSS grid. No fixed minimum width / horizontal scroller. */
body.og12-game .og12-game-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin:0 0 18px}
body.og12-game .og12-title-group{min-width:0}
body.og12-game .og12-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
body.og12-game .og12-game-panel{border:1px solid #e0e9f6;background:#fff;border-radius:23px;box-shadow:var(--og12-shadow);padding:clamp(9px,1.7vw,22px);overflow:hidden;min-width:0}
body.og12-game .orine-games{font:inherit;isolation:isolate;min-width:0;width:100%;max-width:none;padding:0;margin:0;color:inherit}
body.og12-game .orine-games *,body.og12-game .orine-games *::before,body.og12-game .orine-games *::after{box-sizing:border-box}
body.og12-game .orine-games .og-game-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 10px}
body.og12-game .orine-games .og-stats{display:flex;flex-wrap:wrap;gap:8px}
body.og12-game .orine-games .og-stats span{display:flex;gap:9px;align-items:center;background:#f1f6ff;border:1px solid #e2ebfa;color:#58708d;border-radius:12px;padding:8px 13px;font-size:12px;font-weight:640}
body.og12-game .orine-games .og-stats b{font-size:18px;font-weight:850;color:#1d467e;font-variant-numeric:tabular-nums}
body.og12-game .orine-games .og-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
body.og12-game .orine-games .og-controls button{background:#fff;border:1px solid #dce5f2;color:#325276;border-radius:11px;padding:9px 11px;font-size:12px;font-weight:780;min-height:38px;box-shadow:0 2px 6px #133c7309;transition:background .17s,transform .17s}
body.og12-game .orine-games .og-controls button:hover:not(:disabled){background:#f1f6ff;transform:translateY(-1px)}
body.og12-game .orine-games .og-controls button:disabled{opacity:.4;cursor:default}
body.og12-game .orine-games .og-controls button[data-og-new]{background:linear-gradient(105deg,#246adc,#1556b7);color:#fff;border-color:#1e5bbc;box-shadow:0 8px 18px #2462c12a}
body.og12-game .orine-games .og-controls button[data-og-auto]{background:#fff0e9;color:#a74e36;border-color:#ffe0cf}
body.og12-game .orine-games .og-status{margin:0 0 10px;min-height:20px;font-size:12px;color:#53708c;line-height:1.5}
body.og12-game .og12-table-options{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 12px}
body.og12-game .og12-table-label{display:flex;align-items:center;gap:8px;color:#7b8ca2;font-size:12px;font-weight:690}
body.og12-game .og12-table-picker{display:flex;align-items:center;gap:5px}
body.og12-game .og12-table-picker button{height:29px;width:29px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #d6e0ee;position:relative}
body.og12-game .og12-table-picker button[aria-pressed=true]{box-shadow:0 0 0 2px #2864bf,0 0 0 4px #fff}
body.og12-game .og12-table-picker button[data-og-felt=green]{background:#166e4a}
body.og12-game .og12-table-picker button[data-og-felt=blue]{background:#245784}
body.og12-game .og12-table-picker button[data-og-felt=plum]{background:#6e385b}
body.og12-game .og12-table-scroll{display:contents}
body.og12-game .orine-games .og-table-scroll{position:relative;padding:clamp(7px,2vw,26px)!important;background:radial-gradient(ellipse at 45% 10%,#27835a 0%,#176c4a 48%,#0d4936 100%)!important;border:1px solid #13543e!important;border-radius:19px!important;box-shadow:inset 0 1px 0 #a8ecd547,inset 0 0 0 7px #ffffff08,inset 0 -28px 75px #032d2d42,0 12px 31px #0a523423!important;overflow:hidden!important;min-width:0!important;width:100%!important;min-height:0!important}
body.og12-game .orine-games .og-table-scroll::before{content:'';position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)' opacity='.26'/%3E%3C/svg%3E");opacity:.26;mix-blend-mode:soft-light;pointer-events:none;border-radius:inherit}
body.og12-game[data-og-felt=blue] .orine-games .og-table-scroll{background:radial-gradient(ellipse at 45% 10%,#3474ac 0%,#1d527f 50%,#143756 100%)!important;border-color:#18476b!important}
body.og12-game[data-og-felt=plum] .orine-games .og-table-scroll{background:radial-gradient(ellipse at 45% 10%,#9c5a82 0%,#683553 50%,#48233c 100%)!important;border-color:#69364e!important}
/* Core of fluid layout: both rows are seven equally flexible columns. */
body.og12-game .orine-games .og-board{--og-gap:clamp(3px,1.25vw,14px);--og-step:24px;--og-tableau-height:380px;width:100%!important;min-width:0!important;max-width:1070px!important;margin:0 auto;position:relative}
body.og12-game .orine-games .og-top-row,body.og12-game .orine-games .og-tableau-row{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:var(--og-gap)!important;justify-content:initial!important;min-width:0!important}
body.og12-game .orine-games .og-top-row{margin-bottom:clamp(11px,2.2vw,24px)!important}
body.og12-game .orine-games .og-top-spacer{width:100%;min-width:0;flex:none!important}
body.og12-game .orine-games .og-pile{position:relative!important;min-width:0!important;width:100%!important;height:auto!important;aspect-ratio:5/7;border:1.5px dashed #d5f8e56b;border-radius:clamp(4px,.8vw,11px);background:#04291c19;flex:none!important;box-shadow:inset 0 2px 12px #082c2520}
body.og12-game .orine-games .og-pile.og-tableau{aspect-ratio:auto;height:var(--og-tableau-height)!important;border-color:transparent!important;background:transparent;box-shadow:none}
body.og12-game .orine-games .og-card-position{position:absolute;left:0!important;right:0!important;width:100%;height:auto;line-height:0}
body.og12-game .orine-games .og-card{position:relative!important;display:flex;width:100%!important;height:auto!important;aspect-ratio:5/7;padding:0!important;border:0!important;border-radius:clamp(3px,.7vw,11px)!important;overflow:hidden;background-color:#fff!important;background-repeat:no-repeat!important;background-position:center!important;background-size:100% 100%!important;box-shadow:0 2px 4px #0a2a2370,0 0 0 1px #d9e4db!important;cursor:pointer;user-select:none;touch-action:manipulation;line-height:1}
body.og12-game .orine-games .og-card>span{display:none!important}
body.og12-game .orine-games .og-card.og-back{background-image:url('/orine-play/cards/back.webp');box-shadow:0 2px 5px #0d301e75,0 0 0 1px #eff5f2!important}
body.og12-game .orine-games .og-card.og-selected{outline:3px solid #ffce52!important;outline-offset:2px;z-index:15;filter:brightness(1.04)}
body.og12-game .orine-games .og-pile.og-hint{outline:3px dashed #ffe8a1;outline-offset:2px}
body.og12-game .orine-games .og-placeholder{height:100%;min-height:0;display:grid;place-items:center;font-size:clamp(16px,3vw,43px);font-weight:650;color:#fff9;line-height:1}
body.og12-game .og12-game-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#788ca5;font-size:12px;padding:14px 2px}
body.og12-game .og12-learn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
body.og12-game .og12-learn-item{background:#fff;border:1px solid var(--og12-line);padding:18px 18px 17px;border-radius:17px;box-shadow:0 5px 18px #1f5b9b09}
body.og12-game .og12-learn-item strong{display:block;margin:6px 0;color:#233f68;font-size:14px}
body.og12-game .og12-learn-item p{color:#637791;font-size:12px;margin:0}
body.og12-game .og12-learn-icon{font-size:23px}
body.og12-game .og12-rule-box{border:1px solid #dce6f3;background:#fff;border-radius:17px;margin:16px 0;overflow:hidden}
body.og12-game .og12-rule-box summary{list-style:none;cursor:pointer;padding:16px 20px;font-weight:780;color:#234777;display:flex;justify-content:space-between}
body.og12-game .og12-rule-box summary::-webkit-details-marker{display:none}
body.og12-game .og12-rule-box summary::after{content:'⌄';font-size:19px;color:#4776b4}
body.og12-game .og12-rule-box[open] summary::after{content:'⌃'}
body.og12-game .og12-rule-body{padding:0 20px 19px;color:#627892;font-size:13px;max-width:850px}
body.og12-game .og12-rule-body p{margin:7px 0}
body.og12-game .og12-game-panel:fullscreen{background:#f4f7ff;width:100vw;height:100vh;overflow:auto;padding:clamp(8px,2.4vw,26px)}
body.og12-game .og12-game-panel:fullscreen .og-table-scroll{padding:clamp(9px,2vw,25px)!important}
@media(max-width:1050px){body.og12-game .og12-game-title{align-items:flex-start}body.og12-game .og12-heading-actions{gap:5px}}
@media(max-width:750px){body.og12-game .og12-game-title{display:block}body.og12-game .og12-heading-actions{justify-content:flex-start;margin-top:13px}body.og12-game .og12-learn-grid{grid-template-columns:1fr}body.og12-game .orine-games .og-controls{width:100%}body.og12-game .orine-games .og-controls button{flex:1 1 auto}body.og12-game .og12-learn-item{padding:12px 15px}body.og12-game .og12-rule-box{margin:10px 0}}
@media(max-width:460px){body.og12-game .og12-game-panel{border-radius:16px;padding:7px}body.og12-game .orine-games .og-table-scroll{padding:6px!important;border-radius:13px!important}body.og12-game .orine-games .og-board{--og-gap:3px}body.og12-game .orine-games .og-stats{width:100%;justify-content:space-between;gap:4px}body.og12-game .orine-games .og-stats span{padding:6px 7px;gap:5px;font-size:11px}body.og12-game .orine-games .og-stats b{font-size:15px}body.og12-game .orine-games .og-controls{gap:4px}body.og12-game .orine-games .og-controls button{font-size:11px;padding:8px 6px;min-height:34px}body.og12-game .og12-table-label{font-size:11px}body.og12-game .orine-games .og-placeholder{font-size:16px}body.og12-game .og12-game-bottom{font-size:11px}}

body.og12-game .og12-table-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.og12-game .og12-table-tools .og12-action{padding:7px 11px;font-size:12px}
@media(max-width:600px){
 body.og12-game .og12-title-group .og12-kicker,body.og12-game .og12-title-group .og12-lead{display:none}
 body.og12-game .og12-h1{margin:1px 0 0;font-size:29px}
 body.og12-game .og12-game-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}
 body.og12-game .og12-heading-actions{margin-top:0}
 body.og12-game .og12-heading-actions .og12-action{padding:8px 10px;font-size:12px}
 body.og12-game .og12-table-tools .og12-pill{display:none}
 body.og12-game .og12-table-options{margin-bottom:8px}
 body.og12-game .orine-games .og-status{margin-bottom:7px}
}


/* ОРИНЭ v13 · компактный игровой стол, без горизонтальной прокрутки */
body.og12-game .og12-game-title{max-width:1100px;margin:0 auto 9px;align-items:center}
body.og12-game .og12-title-group .og12-kicker{font-size:10px;letter-spacing:.1em}
body.og12-game .og12-h1{font-size:clamp(27px,2.25vw,36px);margin:2px 0 3px;line-height:1.13}
body.og12-game .og12-lead{font-size:12px;max-width:640px;line-height:1.45}
body.og12-game .og12-game-panel{max-width:1100px;margin-inline:auto;background:#fff;border:1px solid #e4d9e9;border-radius:18px;padding:clamp(8px,1.1vw,15px);box-shadow:0 13px 35px rgba(72,4,119,.08)}
body.og12-game .og12-table-options{margin-bottom:7px}
body.og12-game .og12-table-label{color:#480477}
body.og12-game .og12-table-picker button[aria-pressed=true]{box-shadow:0 0 0 2px #480477,0 0 0 4px #fff}
body.og12-game .og12-table-picker button[data-og-felt=green]{background:#339901}
body.og12-game .og12-table-picker button[data-og-felt=blue]{background:#480477}
body.og12-game .og12-table-picker button[data-og-felt=plum]{background:#77448d}
body.og12-game .orine-games .og-game-toolbar{margin-bottom:4px;gap:6px}
body.og12-game .orine-games .og-stats{gap:5px}
body.og12-game .orine-games .og-stats span{background:#f5f1f7;border:1px solid #e9ddec;color:#6b5973;border-radius:9px;padding:6px 10px;font-size:11px;gap:7px}
body.og12-game .orine-games .og-stats b{color:#480477;font-size:16px}
body.og12-game .orine-games .og-controls{gap:5px}
body.og12-game .orine-games .og-controls button{background:#fff;border-color:#e2d7e7;color:#480477;border-radius:9px;padding:7px 10px;min-height:34px;font-size:11px;box-shadow:none}
body.og12-game .orine-games .og-controls button:hover:not(:disabled){background:#f7f1fa}
body.og12-game .orine-games .og-controls button[data-og-new]{background:#339901;color:#fff;border-color:#339901;box-shadow:0 5px 12px rgba(51,153,1,.15)}
body.og12-game .orine-games .og-controls button[data-og-auto]{background:#f4eaf8;color:#480477;border-color:#dfcbe9}
body.og12-game .orine-games .og-status{margin:0 0 5px;color:#6b5c73;min-height:17px;line-height:1.3;font-size:11px}
/* The whole table, not just cards, is restrained by the viewport height. */
body.og12-game .orine-games .og-table-scroll{
 width:100%!important;
 max-width:min(100%,clamp(620px,calc((100dvh - 160px) * 1.55),990px))!important;
 margin:5px auto 2px!important;
 padding:clamp(6px,0.9vw,12px)!important;
 border:1px solid rgba(43,97,5,.45)!important;
 border-radius:17px!important;
 background:radial-gradient(ellipse at 43% 13%,#4daa24 0%,#339901 42%,#277900 81%,#1c5900 100%)!important;
 box-shadow:inset 0 1px 0 #ffffff4b,inset 0 0 24px rgba(0,0,0,.10),0 7px 19px rgba(51,153,1,.10)!important;
 overflow:hidden!important;
}
body.og12-game .orine-games .og-table-scroll::before{opacity:.14}
body.og12-game .orine-games .og-board{
 --og-gap:clamp(3px,.55vw,8px);
 --og-step:17px;
 --og-tableau-height:260px;
 max-width:960px!important;
 min-width:0!important;
 width:100%!important;
}
body.og12-game .orine-games .og-top-row{margin-bottom:clamp(6px,.7vw,11px)!important}
body.og12-game .orine-games .og-pile{border-color:#e3ffd088;background:#10470020}
body.og12-game .orine-games .og-pile.og-tableau{background:transparent}
body.og12-game .orine-games .og-placeholder{color:#f4ffeda3}
body.og12-game[data-og-felt=blue] .orine-games .og-table-scroll{background:radial-gradient(ellipse at 43% 13%,#844fb3 0%,#480477 53%,#350052 100%)!important;border-color:#480477!important;box-shadow:inset 0 1px 0 #ffffff4b,inset 0 0 24px #17002533,0 7px 19px #48047720!important}
body.og12-game[data-og-felt=plum] .orine-games .og-table-scroll{background:radial-gradient(ellipse at 43% 13%,#9c6cac 0%,#663478 52%,#480477 100%)!important;border-color:#480477!important;box-shadow:inset 0 1px 0 #ffffff4b,inset 0 0 24px #17002533,0 7px 19px #48047720!important}
body.og12-game .og12-game-bottom{padding:6px 2px;color:#796881;font-size:11px}
body.og12-game .og12-learn-item,body.og12-game .og12-rule-box{border-color:#e6dce9;box-shadow:0 4px 17px rgba(72,4,119,.045)}
body.og12-game .og12-learn-item strong,body.og12-game .og12-rule-box summary{color:#480477}
body.og12-game .og12-learn-item p,body.og12-game .og12-rule-body{color:#75687a}
body.og12-game .og12-learn-grid{max-width:1100px;margin:13px auto;gap:10px}
body.og12-game .og12-rule-box{max-width:1100px;margin:13px auto}
body.og12-game .og12-learn-item{padding:12px 15px}
body.og12-game .og12-rule-box summary{padding:12px 16px}
body.og12-game .og12-rule-box summary::after{color:#480477}
body.og12-game .og12-game-panel:fullscreen{background:#f1f1f1;padding:10px}
body.og12-game .og12-game-panel:fullscreen .og-table-scroll{max-width:min(100%,clamp(360px,calc((100dvh - 190px)*1.35),910px))!important}
@media(max-height:840px) and (min-width:750px){
 body.og12-game .og12-lead{display:none}
 body.og12-game .og12-game-title{margin-bottom:7px}
 body.og12-game .og12-container{padding-top:8px}
 body.og12-game .og12-crumbs{margin-bottom:5px}
}
@media(max-width:600px){
 body.og12-game .orine-games .og-table-scroll{max-width:100%!important;margin:4px auto!important;padding:5px!important}
 body.og12-game .orine-games .og-board{--og-gap:3px}
 body.og12-game .og12-game-title{max-width:100%}
 body.og12-game .og12-game-panel{padding:7px}
 body.og12-game .orine-games .og-controls button{font-size:11px;padding:7px 6px}
 body.og12-game .og12-rule-box{margin:10px 0}
}

/* v14: comfortable intermediate card size, between initial v12 and tiny v13. */
@media (min-width: 601px) and (max-height: 790px) {
 body.og12-game .orine-games .og-table-scroll{max-width:min(100%,clamp(620px,calc((100dvh - 145px)*1.55),960px))!important;}
}
@media (max-width:600px){body.og12-game .orine-games .og-table-scroll{max-width:100%!important}}

body.og12-game .orine-games .og-table-scroll{max-width:990px!important;margin:0 auto!important} body.og12-game .orine-games .og-board{max-width:960px!important}

/* v22 — real visual draw-three: three cards in waste, rightmost card playable */
body.og12-game .orine-games .og-pile.og-waste{overflow:visible!important}
body.og12-game .orine-games .og-pile.og-waste .og-card-position{left:calc(var(--og-waste-idx,0) * var(--og-waste-shift))!important;right:auto!important;top:0!important;width:90%!important;--og-waste-shift:clamp(9px,2.1vw,30px);z-index:var(--og-waste-idx,0)}
body.og12-game .orine-games .og-pile.og-waste .og-card-position:not(:last-child){pointer-events:none}
body.og12-game .orine-games .og-pile.og-waste .og-card-position .og-card{box-shadow:0 2px 5px #0004!important}

body.og12-game .og-draw3-note{margin:4px 0 10px;font-size:14px;font-weight:650;line-height:1.4;color:#4e3363}
