/* The illustration is the menu background; no artwork column or extra banner. */
#menu-screen{height:auto;min-height:100svh;overflow-x:hidden;overflow-y:auto;align-items:center;isolation:isolate;padding:30px max(18px,env(safe-area-inset-right)) 36px max(18px,env(safe-area-inset-left));background:linear-gradient(90deg,#10091b85 0%,#160d2340 48%,#140b1e12 100%),url('./table/lounge.webp') center/cover no-repeat}
#menu-screen .menu-shell{position:relative;z-index:1;display:block;width:min(100%,1100px);height:auto;max-height:none;margin:auto}
#menu-screen .menu-copy{display:flex;width:min(100%,470px);max-width:none;max-height:none;padding:0;text-align:start}
#menu-screen .menu-copy h1{font:500 49px/1.08 Georgia,'Times New Roman',serif;letter-spacing:-.05em;text-shadow:0 5px 24px #10071780}
#menu-screen .eyebrow{letter-spacing:.22em;color:#d9bc83;justify-content:flex-start}
#menu-screen .menu-description{max-width:390px;font-size:12px;line-height:1.7;color:#ddcee4;margin-bottom:19px}
/* Keep the main menu to its controls; difficulty remains accessible by its label. */
html #menu-screen .difficulty-title,html #menu-screen #menu-difficulty-note,html #menu-screen .menu-description,html #menu-screen .menu-foot{display:none!important}
html #menu-screen .difficulty-picker{display:block!important}
html #menu-screen .menu-panel{width:100%;min-height:0;max-height:none;overflow:visible;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html #menu-screen .menu-panel::before,html #menu-screen .menu-panel::after{display:none}
#menu-screen .menu-tab-panel{flex:none;max-height:370px;overflow-y:auto;overscroll-behavior:contain}
#play-button{border-color:#f2d79c!important;box-shadow:0 6px 0 #3d2448,0 14px 28px #09030e66,inset 0 1px #fff6dc66!important;transition:transform .16s,box-shadow .16s}
#play-button:hover{transform:translateY(-2px)}
.menu-shortcut-btn{border-color:#c0a17a66!important;box-shadow:inset 0 1px #ffe8c40a;transition:transform .16s,border-color .16s}
.menu-shortcut-btn:hover{transform:translateY(-2px);border-color:#dec08499!important}
/* Separate felt, engraving, four corner crops and repeating rails. A 320px
   square source corner displays at 2*rail; 160px rails share that same scale.
   No decorative image is stretched independently along either axis. */
#game-screen .table-surface[data-table]{--table-frame-width:16px;background:var(--chosen-table-color,#402650);border:0;border-image:none;border-radius:14px;padding:calc(var(--table-frame-width)*2 + 12px) calc(var(--table-frame-width) + 5px) calc(var(--table-frame-width)*2 + 22px);box-shadow:0 18px 44px #08020e66}
#game-screen .table-surface[data-table]::before,#game-screen .table-surface[data-table]::after{display:none}
.table-decoration{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;background:var(--table-felt) center/cover no-repeat;pointer-events:none}
.table-engraving{position:absolute;left:50%;top:50%;width:50%;height:65%;max-width:340px;max-height:420px;object-fit:contain;transform:translate(-50%,-50%);pointer-events:none}
.frame-rail,.frame-corner,.frame-crest{position:absolute;display:block;pointer-events:none}
.frame-rail-top,.frame-rail-bottom{left:calc(var(--table-frame-width)*2);right:calc(var(--table-frame-width)*2);height:var(--table-frame-width);background-size:auto 100%;background-repeat:repeat-x}
.frame-rail-top{top:0;background-image:var(--table-top)}.frame-rail-bottom{bottom:0;background-image:var(--table-bottom)}
.frame-rail-left,.frame-rail-right{top:calc(var(--table-frame-width)*2);bottom:calc(var(--table-frame-width)*2);width:var(--table-frame-width);background-size:100% auto;background-repeat:repeat-y}
.frame-rail-left{left:0;background-image:var(--table-left)}.frame-rail-right{right:0;background-image:var(--table-right)}
.frame-corner,.frame-crest{width:calc(var(--table-frame-width)*2);height:calc(var(--table-frame-width)*2);background-image:var(--chosen-table);background-size:480% 320%;background-repeat:no-repeat}
.frame-corner-top-left{top:0;left:0;background-position:left top}.frame-corner-top-right{top:0;right:0;background-position:right top}.frame-corner-bottom-left{bottom:0;left:0;background-position:left bottom}.frame-corner-bottom-right{bottom:0;right:0;background-position:right bottom}
.frame-crest{left:50%;transform:translateX(-50%)}.frame-crest-top{top:0;background-position:center top}.frame-crest-bottom{bottom:0;background-position:center bottom}
#game-screen .table-surface,#game-screen .table-surface *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#game-screen input,#game-screen textarea,#game-screen [contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#game-screen img,#game-screen svg{-webkit-user-drag:none}
.table-collection-launch{width:100%;min-height:61px;height:auto;flex:none;display:flex;align-items:center;gap:12px;margin:12px 0;padding:10px 13px;color:#f5e9cf;text-align:start;border:1px solid #dbbc7759;border-radius:14px;background:linear-gradient(115deg,#71513230,#5e39724d);cursor:pointer;box-shadow:inset 0 1px #fff1cc0d;transition:transform .18s,border-color .18s}
.table-collection-launch:hover{transform:translateY(-2px);border-color:#f0cf85}
.table-launch-swatch{width:65px;aspect-ratio:1.5;background-size:100% 100%;border:1px solid #edcf8e60;border-radius:7px;box-shadow:0 3px 8px #0005}
.table-collection-launch>span:nth-child(2){display:grid;gap:4px}.table-collection-launch strong{font:700 12px system-ui;letter-spacing:.1em}.table-collection-launch small{color:#c7b5ce;font:12px system-ui}.table-launch-arrow{margin-inline-start:auto;color:#e4c384;font-size:24px}
.deck-experience-overlay[data-kind=tables] .deck-experience-dialog{width:min(850px,100%);background:linear-gradient(150deg,#2b1b38,#130f1d);border-color:#d0ae6e66}
.table-catalog-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.table-catalog-intro p{font:13px/1.6 system-ui;color:#c8b7d1;margin:0}.table-catalog-intro strong{white-space:nowrap;color:#f2d498;font:700 14px system-ui}
.table-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:3px 2px 8px}
.table-choice{min-width:0;text-align:start;display:grid;gap:7px;padding:7px 7px 11px;background:#ffffff04;border:1px solid #bda0d12e;border-radius:12px;color:#ede2f4;cursor:pointer;transition:border-color .16s,transform .16s}
.table-choice img{width:100%;height:auto;aspect-ratio:1.5;object-fit:fill;border-radius:7px}.table-choice strong,.table-choice small{padding-inline:3px}.table-choice strong{font:600 12px/1.4 system-ui}.table-choice small{color:#dec38c;font:600 11px system-ui}.table-choice.is-selected{border-color:#e6c786;background:#d5b56e10;box-shadow:0 0 0 1px #e6c78622}.table-choice:hover{transform:translateY(-2px);border-color:#d1afd4}.table-choice:focus-visible,.table-collection-launch:focus-visible{outline:2px solid #f4d98e;outline-offset:3px}
#purchase-overlay[data-kind=table]{z-index:1760}
#purchase-overlay[data-kind=table] .win-card{width:min(560px,100%)}
#purchase-overlay[data-kind=table] .purchase-preview{margin:16px 0;padding:0}
.purchase-table-image{display:block;width:100%;height:auto;aspect-ratio:1.5;object-fit:contain;border-radius:10px;box-shadow:0 8px 24px #0005}
.loading-overlay{background:linear-gradient(90deg,#160b2390,#160b2366),url('./table/lounge.webp') center/cover no-repeat!important}.loading-card{padding:29px;width:min(100%,420px)!important;border:1px solid #dfbe7b55;border-radius:23px;background:linear-gradient(145deg,#29152cef,#100b19f2);box-shadow:0 28px 80px #0008}.loading-card h2{font-family:Georgia,serif!important;font-weight:500!important;color:#f6e1b4}.loading-emblem{width:65px!important;height:78px!important;font-size:40px!important}.loading-tip-box{min-height:80px!important;margin:20px 0!important;background:#ffffff03!important}.loading-progress{height:5px!important}.loading-subtitle{margin-bottom:21px!important}
#boot-overlay.boot-overlay{background:linear-gradient(90deg,#160b2333,#160b2377),url('./table/lounge.webp') center/cover no-repeat;overflow-y:auto}
#boot-overlay .boot-card{width:min(100%,420px);padding:30px;border:1px solid #dfbe7b55;border-radius:23px;background:linear-gradient(145deg,#29152cef,#100b19f2);box-shadow:0 28px 80px #0008}
#boot-overlay .boot-card img{width:83px;height:83px;border-radius:18px}#boot-overlay .boot-card h1{font:500 38px/1.1 Georgia,serif;letter-spacing:-.03em;margin:20px 0}#boot-overlay .boot-tip{min-height:64px;font-size:13px;line-height:1.7}
@media(min-width:761px){.loading-card,#boot-overlay .boot-card{margin-inline-start:min(40vw,620px)}}
@media(max-width:760px){
 #menu-screen{padding-top:max(16px,env(safe-area-inset-top));background-position:65% center}
 #menu-screen .menu-shell{width:min(100%,480px)}
 #menu-screen .menu-copy{width:100%}
 #menu-screen .menu-copy h1{font-size:35px!important;margin:2px 0 18px!important}
 #menu-screen .menu-description,#menu-screen .eyebrow{display:none}
 #menu-screen .menu-panel{padding:0!important}
 #menu-screen .menu-tab-panel{max-height:340px}
 #menu-screen .table-collection-launch{min-height:57px;margin:10px 0}
 #menu-screen .menu-shortcuts{margin-bottom:12px!important}
 #menu-screen .menu-shortcut-btn:not(.rewarded-ad-shortcut){height:54px;min-height:54px!important;grid-template-rows:24px auto;gap:4px}
 #menu-screen .menu-shortcut-btn:not(.rewarded-ad-shortcut)>.menu-shortcut-icon{width:24px;height:24px}
 .table-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .table-catalog-intro{align-items:flex-start}.table-catalog-intro p{font-size:12px}.loading-card{padding:22px}
}
@media(max-height:480px) and (orientation:landscape){#menu-screen .menu-shell{width:min(100%,1000px)}#menu-screen .menu-copy{width:min(100%,450px)}.loading-overlay{align-items:start;overflow:auto}.loading-card,#boot-overlay .boot-card{padding:16px}.loading-emblem,#boot-overlay .boot-card img{display:none!important}.loading-tip-box,#boot-overlay .boot-tip{min-height:0!important}}
@media(prefers-reduced-motion:reduce){.table-choice,.table-collection-launch,#play-button,.menu-shortcut-btn{transition:none!important;transform:none!important}}
