/* ATHRTY PARLOR BLACKLINE 3.4 — tactile game-stage materials / performance-safe CSS.
 * Presentation only. Preserve all existing hit targets, WebGL contexts, puzzle color
 * semantics and server-authoritative multiplayer logic.
 */
body.parlor-site.at-game .game-play-area .game-stage{
 position:relative;isolation:isolate;overflow:auto;
 border:1px solid #d8c08b99;border-radius:clamp(15px,2.4vw,28px);
 background:
 radial-gradient(ellipse 70% 40% at 38% 4%,#52776355,transparent 82%),
 repeating-linear-gradient(15deg,#ffffff03 0 2px,#04110a04 3px 5px),
 radial-gradient(ellipse at 45% 22%,#245a47 0%,#1c4537 58%,#123428 100%);
 box-shadow:inset 0 2px 1px #f1d8a03a,inset 0 0 0 4px #072b2355,inset 0 -28px 52px #00190f36,0 18px 49px #04201631;
}
body.parlor-site.at-game .game-stage .game-toolbar{padding:10px 12px;margin-bottom:17px;border-radius:14px;background:#071c1838;border:1px solid #edd9a72d;gap:9px}
body.parlor-site.at-game .game-stage .game-toolbar .stat{background:#0c382b;border-color:#e1ce9e57;color:#fff1c9;border-radius:10px;font:700 12px/1.5 Arial,sans-serif;letter-spacing:.015em}
body.parlor-site.at-game .game-stage :is(.small-button,.primary-button,.secondary-button){min-height:46px;border-radius:10px;font-weight:750;transition:box-shadow .16s,transform .16s}
body.parlor-site.at-game .game-stage :is(.small-button,.primary-button,.secondary-button):hover:not(:disabled){box-shadow:0 4px 11px #071c1580}
body.parlor-site.at-game .game-stage .game-notice{border-left:3px solid #d3b982;padding:9px 12px;background:#102b2340;color:#fff4d4;border-radius:0 9px 9px 0;font-weight:650;line-height:1.55}
body.parlor-site.at-game .game-stage .playing-card:not(.back){border:1px solid #c1ac85;border-radius:10px;background:linear-gradient(145deg,#fffdf5,#f6ead7 67%,#ecd7b2);box-shadow:inset 0 1px #ffffffd9,inset -1px -2px #bfab833d,0 2px 2px #04150f65,0 8px 13px #051a145c;filter:drop-shadow(0 1px 0 #03140d30)}
body.parlor-site.at-game .game-stage .playing-card.back{border:3px solid #efddaf;box-shadow:inset 0 0 0 3px #153c32,inset 0 0 0 5px #d6c29a80,0 6px 14px #021d166b;filter:none}
body.parlor-site.at-game .game-stage .playing-card.selected{box-shadow:0 0 0 3px #f8d59988,0 11px 18px #04160f8c;outline:3px solid #f5d493}
body.parlor-site.at-game .game-stage .playing-card:focus-visible{outline:3px solid #ffecad!important;outline-offset:3px;z-index:2}
body.parlor-site.at-game .game-stage .memory-card{border-radius:12px;border:2px solid #cfb58a;background:linear-gradient(140deg,#2c6652,#124233 56%,#113a2e);box-shadow:inset 0 0 0 2px #e4d2a44d,inset 0 2px 0 #e4d7bd38,0 7px 15px #04181255;transition:transform .18s,box-shadow .18s}
body.parlor-site.at-game .game-stage .memory-card.revealed,
body.parlor-site.at-game .game-stage .memory-card.matched{background:#f5e7cb;color:#234d36;box-shadow:inset 0 0 0 3px #cfb88a,0 4px 11px #04160f60}
body.parlor-site.at-game .game-stage .memory-card.matched{border-color:#f6d08e}
body.parlor-site.at-game .game-stage .studio-grid button{border:1px solid #bdc9ac;box-shadow:inset 0 2px #ffffff15,inset 0 -3px #0a201d38,0 4px 9px #031b164a;border-radius:9px;transition:transform .15s,box-shadow .15s}
body.parlor-site.at-game .game-stage .studio-grid button:not(:disabled):active{transform:translateY(1px);box-shadow:inset 0 2px 5px #001b1577}
body.parlor-site.at-game .game-stage .studio-grid button.chosen{border-color:#fee0a1;box-shadow:0 0 0 2px #ffe9ac66,inset 0 2px #fff8df55,0 6px 12px #041b1666}
body.parlor-site.at-game .game-stage :is(.sol-slot,.fc-slot){border-color:#f5dbaa78;box-shadow:inset 0 3px 6px #05190e44;border-radius:10px}
body.parlor-site.at-game .game-stage .checker{filter:drop-shadow(0 2px 2px #071b1366);transform:translateZ(0)}
body.parlor-site.at-game .game-stage .checkers-cell:focus-visible{outline:3px solid #ffedb6!important;outline-offset:-3px}
body.parlor-site.at-game .game-stage .checkers-cell.target{box-shadow:inset 0 0 0 3px #fce3a6bb}
body.parlor-site.comfort-mode .game-stage .game-toolbar :is(button,.stat){min-height:50px;font-size:clamp(13px,1.4vw,17px)}
body.parlor-site.comfort-mode .game-stage .game-notice{font-size:clamp(15px,1.5vw,18px)}
body.parlor-site.comfort-mode .game-stage .table-note{font-size:15px;line-height:1.7}
body.parlor-site.high-contrast .game-stage .game-notice{color:#fff!important;border-color:#fff;outline:1px solid #fff9}
body.parlor-site.high-contrast .game-stage :is(.studio-grid button,.memory-card,.playing-card){outline-offset:2px;border-color:#fff}
@media(max-width:700px){body.parlor-site.at-game .game-stage .game-toolbar{padding:8px;gap:6px}body.parlor-site.at-game .game-stage .game-toolbar .stat{padding:8px 11px}}
@media(prefers-reduced-motion:reduce){body.parlor-site.at-game .game-stage :is(.memory-card,.studio-grid button,.small-button,.primary-button,.secondary-button){transition:none!important;animation:none!important;transform:none!important}}
:root[data-graphics-quality=low] body.parlor-site.at-game .game-stage{box-shadow:0 2px 11px #0004;background:#214a39}
/* BLACKLINE 4.0 / Rules where the player needs them: above the board. */
body.parlor-site.at-game .parlor-rulecard{
 margin:12px 0 17px;padding:0;border:1px solid #bdad855e;border-radius:12px;
 color:#f8ead2;background:linear-gradient(112deg,#183f31,#102e25);
 box-shadow:0 10px 25px #0c26151f;overflow:visible;
}
body.parlor-site.at-game .parlor-rulecard-core{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:center;gap:17px;padding:13px clamp(15px,2.4vw,28px);
}
body.parlor-site.at-game .parlor-rulecard-copy{display:grid;gap:5px;min-width:0}
body.parlor-site.at-game .parlor-rulecard-copy>span{
 font:800 10px/1.4 Arial,sans-serif;letter-spacing:.13em;color:#e3c08e;
}
body.parlor-site.at-game .parlor-rulecard-copy>strong{
 font:500 clamp(15px,1.6vw,19px)/1.5 Arial,sans-serif;color:#f5eddf;max-width:70ch;
}
body.parlor-site.at-game .parlor-rulecard-copy>small{
 font:700 11px/1.4 Arial,sans-serif;color:#c9d8c8;
}
body.parlor-site.at-game .parlor-rulecard details{
 position:relative;align-self:start;min-width:145px;max-width:100%;
}
body.parlor-site.at-game .parlor-rulecard summary{
 display:flex;align-items:center;justify-content:center;
 min-height:46px;border:1px solid #cdb482ab;border-radius:9px;padding:11px 16px;
 background:#e1c994;color:#183d2c;cursor:pointer;list-style:none;
 font:800 12px/1.4 Arial,sans-serif;white-space:nowrap;
}
body.parlor-site.at-game .parlor-rulecard summary::-webkit-details-marker{display:none}
body.parlor-site.at-game .parlor-rulecard summary::after{content:"＋";margin-left:9px;font-size:17px}
body.parlor-site.at-game .parlor-rulecard details[open] summary::after{content:"−"}
body.parlor-site.at-game .parlor-rulecard summary:focus-visible{
 outline:3px solid #f4d493;outline-offset:3px;
}
body.parlor-site.at-game .parlor-rulecard details[open]{
 grid-column:1/-1;width:100%;min-width:0;
}
body.parlor-site.at-game .parlor-rulecard details[open] summary{
 width:max-content;max-width:100%;margin-left:auto;
}
body.parlor-site.at-game .parlor-rulecard .guide-content{
 border-top:1px solid #d1b88560;margin-top:12px;padding:12px 3px 3px;
 display:grid;gap:10px;
}
body.parlor-site.at-game .parlor-rulecard .guide-content p{
 margin:0;color:#dce6d8;font:14px/1.6 Arial,sans-serif;
}
body.parlor-site.at-game .parlor-rulecard .guide-content p strong{
 color:#efd29c;margin-right:9px;
}
body.parlor-site.at-game .game-head{margin-bottom:10px}
body.parlor-site.at-game .game-play-area{scroll-margin-top:90px}
@media(max-width:680px){
 body.parlor-site.at-game .parlor-rulecard-core{grid-template-columns:1fr;gap:11px;padding:13px 15px}
 body.parlor-site.at-game .parlor-rulecard details{width:100%;min-width:0}
 body.parlor-site.at-game .parlor-rulecard summary{width:100%;justify-content:space-between}
 body.parlor-site.at-game .parlor-rulecard details[open] summary{width:100%}
 body.parlor-site.at-game .parlor-rulecard-copy>strong{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
 body.parlor-site.at-game .parlor-rulecard *{animation:none!important;transition:none!important}
}