.experience-settings{position:fixed;z-index:90;right:1rem;bottom:1rem;min-height:46px;border:1px solid #ffc329;border-radius:999px;padding:.7rem 1rem;color:#fff;background:#020714ee;box-shadow:0 12px 40px #0008;font:800 .78rem/1 system-ui;letter-spacing:.08em;text-transform:uppercase}
.experience-dialog{width:min(92vw,34rem);border:1px solid #ffc32988;border-radius:1.2rem;padding:0;color:#eaf5ff;background:linear-gradient(150deg,#0b1c36,#020714);box-shadow:0 30px 100px #000}
.experience-dialog::backdrop{background:#00030cd1;backdrop-filter:blur(7px)}
.experience-dialog form{display:grid;gap:1.15rem;padding:2rem}.experience-dialog h2{margin:0;color:#fff;font-size:clamp(1.7rem,6vw,3rem)}
.experience-dialog label,.experience-dialog fieldset{display:grid;gap:.5rem;border:0;padding:0;font-weight:800}.experience-dialog select{min-height:48px;border:1px solid #39506e;border-radius:.55rem;padding:0 .8rem;color:#fff;background:#07162d;font:inherit}
.dialog-close{position:absolute;inset:.8rem .8rem auto auto;width:44px;height:44px;border:0;border-radius:50%;color:#fff;background:#172945;font-size:1.5rem}
.name-options,.dialog-actions{display:flex;flex-wrap:wrap;gap:.65rem}.name-options button{min-height:46px;border:1px solid #3d5878;border-radius:.6rem;padding:.65rem 1rem;color:#fff;background:#0b1b32;font:800 .9rem/1 system-ui}.name-options button[aria-pressed=true]{border-color:#ffc329;color:#ffc329;box-shadow:inset 0 0 0 1px #ffc329}.nsfw-dialog h2{max-width:20ch;line-height:1.08}
.release-strip,.app-release-strip{display:flex;align-items:center;justify-content:center;gap:clamp(.7rem,3vw,2rem);min-height:50px;padding:.65rem 1rem;color:#dceeff;background:linear-gradient(90deg,#07162d,#0a3040 50%,#07162d);border-block:1px solid #00b8f038;font:800 .7rem/1.2 system-ui;letter-spacing:.12em;text-transform:uppercase}.release-strip strong,.app-release-strip strong{color:#ffc329;font-variant-numeric:tabular-nums;letter-spacing:.14em}
.palace-play-page .page-hero{display:none}.palace-play-page main{background:#040a17}.palace-play-page main>.section{padding:0;background:transparent}.palace-play-page main>.section>.shell{width:100%;max-width:none;padding:0}.tutorial-stage{min-height:calc(100svh - 74px);border:0;background:#040a17}
.mini-match-chrome{width:min(100%,1500px);min-height:calc(100svh - 74px);margin:0 auto;display:grid;grid-template-rows:auto auto 1fr auto;overflow:hidden;border-inline:1px solid #00b8f029;background:#030915}
.mini-match-chrome>header{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem clamp(1rem,4vw,3rem);border-bottom:1px solid #21334d;background:#020714f7}.mini-match-chrome>header>div:first-child{display:flex;align-items:center;gap:.7rem}.mini-match-chrome>header img{width:54px;height:44px;object-fit:contain}.mini-match-chrome>header b{display:block;color:#fff;font:900 1.15rem/1 system-ui;letter-spacing:.04em}.mini-match-chrome>header small{color:#00b8f0;font:800 .58rem/1 system-ui;letter-spacing:.18em}
.match-progress{width:min(30vw,15rem);display:grid;grid-template-columns:1fr auto;align-items:center;gap:.7rem;color:#a9bad1;font:800 .7rem/1 system-ui}.match-progress:before{content:"";grid-column:1;height:4px;border-radius:9px;background:#1d2b3f}.match-progress span{grid-column:1;grid-row:1;width:var(--progress);height:4px;border-radius:9px;background:linear-gradient(90deg,#00b8f0,#ffc329);transition:width .4s}.match-progress b{grid-column:2;grid-row:1}
.palace-app-table{position:relative;isolation:isolate;min-height:600px;display:grid;grid-template-rows:1fr 1.2fr 1fr;justify-items:center;align-items:center;overflow:hidden;padding:clamp(1rem,2.5vh,2rem) clamp(.75rem,3vw,3rem);background:radial-gradient(ellipse 55% 44% at 50% 49%,#00b8f02e,transparent 72%),radial-gradient(ellipse 90% 62% at 50% 50%,#084151 0 28%,#062c3a 55%,#041521 78%,#030915 100%)}.palace-app-table:before{content:"";position:absolute;z-index:-1;width:min(84vw,1100px);height:67%;border:1px solid #6bdbff38;border-radius:50%;box-shadow:inset 0 0 80px #00b8f014}.castle-silhouette{position:absolute;z-index:-1;inset:2% 0 auto;display:flex;justify-content:center;align-items:end;gap:1rem;opacity:.07;color:#54d9ff;font-size:clamp(7rem,18vw,18rem)}
.seat{display:grid;justify-items:center;gap:.55rem}.seat label,.central-pile label{color:#62ddff;font:900 .63rem/1 system-ui;letter-spacing:.18em;text-transform:uppercase}.card-row,.pile-cards{display:flex;justify-content:center;align-items:center}.card-row .match-card+.match-card{margin-inline-start:clamp(-1rem,-2vw,-.45rem)}
.match-card{position:relative;width:clamp(66px,7.2vw,104px);aspect-ratio:.7;display:grid;place-items:center;border:1px solid #cfdae6;border-radius:clamp(.45rem,1vw,.8rem);padding:0;color:#081326;background:linear-gradient(135deg,#fff,#edf4fb);box-shadow:0 11px 22px #0006;font:inherit;transition:transform .18s,box-shadow .18s,opacity .18s}button.match-card{cursor:pointer}button.match-card:hover,button.match-card:focus-visible{z-index:5;transform:translateY(-10px);box-shadow:0 16px 28px #0008,0 0 0 3px #ffc329;outline:0}.match-card strong{font:500 clamp(2.15rem,5vw,4.25rem)/1 Georgia}.match-card.red{color:#d21232}.card-corner{position:absolute;inset:.38rem auto auto .45rem;display:grid;font:800 clamp(.72rem,1.4vw,1rem)/.8 Georgia}.card-corner i{font-style:normal;font-size:.75em}.card-suit{position:absolute;inset:auto .45rem .35rem auto;font-size:1.15rem}
.card-back{border:2px solid #ffc329;color:#ffc329;background:radial-gradient(circle at 50% 55%,#0f3b76,#071a3c 70%)}.card-back:after{content:"";position:absolute;inset:8px;border:1px solid #ffc32988;border-radius:.4rem}.card-back strong{color:#ffc329;font-size:clamp(1.8rem,4vw,3rem);text-shadow:0 0 20px #ffb000}.power-card{box-shadow:0 11px 22px #0006,0 0 0 2px #ffc329cc}
.central-pile{position:relative;display:grid;justify-items:center;align-self:center;gap:.55rem}.pile-cards .match-card+.match-card{position:absolute;transform:rotate(4deg) translate(8px,-3px)}.pile-cards .match-card:nth-child(3){transform:rotate(-5deg) translate(-6px,5px)}.table-callout{color:#ffc329;font:1000 clamp(.82rem,1.8vw,1.2rem)/1 system-ui;letter-spacing:.08em;text-shadow:0 4px 18px #000}
.mini-match-chrome>footer{min-height:72px;display:flex;align-items:center;justify-content:center;gap:1rem;padding:.8rem 1rem;text-align:center;border-top:1px solid #21334d;background:#020714}.mini-match-chrome>footer p{margin:0;color:#c8d7eb;font-size:clamp(.9rem,1.5vw,1.08rem)}.mini-match-chrome>footer p.good{color:#6fffb2;font-weight:800}.match-action{min-height:46px;border:1px solid #ffc329;border-radius:.4rem;padding:.7rem 1rem;color:#101421;background:#ffc329;font:900 .8rem/1 system-ui;letter-spacing:.08em}
.match-card.illegal{animation:card-no .3s linear 2}.match-card.played{transform:translateY(-80px) scale(.7);opacity:0}.central-pile.burning{animation:burn-pile .55s ease both}.rival-seat.receiving{animation:receive-pile .7s ease both}.match-card.discovered{box-shadow:0 0 0 4px #6fffb2,0 0 24px #6fffb28c;transform:translateY(-8px)}
.palace-level-deck{position:absolute;left:clamp(1rem,5vw,5rem);bottom:clamp(5rem,15vh,10rem);display:grid}.level-row{grid-area:1/1;display:flex}.level-row .match-card{width:clamp(43px,4.6vw,70px)}.level-row.visible-row{transform:translateY(-22px)}.level-row.hidden-row{transform:translateY(8px)}.palace-level-deck[data-layer="1"] .visible-row{filter:drop-shadow(0 0 16px #ffc329)}.palace-level-deck[data-layer="2"] .visible-row{opacity:.2}
.match-victory{position:relative;min-height:600px;display:grid;place-items:center;align-content:center;gap:1rem;padding:2rem;text-align:center;background:radial-gradient(circle,#00b8f033,transparent 55%)}.match-victory img{position:absolute;width:min(80vw,620px);height:min(80vw,620px);object-fit:contain;opacity:.18}.match-victory>*:not(img){position:relative}.match-victory h2{margin:0;max-width:13ch;color:#fff;font-size:clamp(2.2rem,7vw,6rem);line-height:.92}.match-victory p{max-width:54ch}.victory-crown{color:#ffc329;font-size:5rem;filter:drop-shadow(0 0 18px #ff9b00)}.victory-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.7rem}
.founder-story-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(2rem,7vw,7rem);align-items:center}.founder-story-grid img{width:min(100%,480px);filter:drop-shadow(0 25px 45px #0007)}.founder-notes{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;margin-top:1.5rem}.founder-note{border:1px solid #283b55;border-radius:.8rem;padding:1rem;background:#0a1729}.founder-note b{display:block;color:#ffc329;font-size:1.4rem}
[dir=rtl] .card-corner{inset:.38rem .45rem auto auto}[dir=rtl] .card-suit{inset:auto auto .35rem .45rem}[dir=rtl] .palace-level-deck{left:auto;right:clamp(1rem,5vw,5rem)}
@keyframes card-no{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes burn-pile{50%{filter:brightness(2.5) drop-shadow(0 0 26px #ff8717);transform:scale(1.12)}100%{opacity:0;transform:scale(.3)}}@keyframes receive-pile{50%{transform:scale(1.06);filter:drop-shadow(0 0 18px #62ddff)}}
@media(max-width:700px){.experience-settings{right:.65rem;bottom:.65rem}.mini-match-chrome{min-height:calc(100svh - 62px)}.mini-match-chrome>header{min-height:58px;padding:.35rem .75rem}.mini-match-chrome>header img{width:45px;height:36px}.mini-match-chrome>header b{font-size:.95rem}.app-release-strip{min-height:42px;font-size:.58rem;gap:.55rem}.palace-app-table{min-height:calc(100svh - 230px);padding:.55rem .35rem}.palace-app-table:before{width:110vw;height:60%}.match-card{width:clamp(56px,19vw,76px)}.player-hand .match-card+.match-card{margin-inline-start:-1rem}.rival-seat .match-card{width:48px}.central-pile .match-card{width:64px}.palace-level-deck{left:.5rem;bottom:4.7rem}[dir=rtl] .palace-level-deck{right:.5rem;left:auto}.palace-level-deck .level-row .match-card{width:34px}.mini-match-chrome>footer{min-height:65px;padding:.55rem;flex-direction:column;gap:.35rem}.mini-match-chrome>footer p{font-size:.78rem}.founder-story-grid{grid-template-columns:1fr}.founder-notes{grid-template-columns:1fr}}
@media(max-height:650px) and (orientation:landscape){.mini-match-chrome>header{min-height:48px}.app-release-strip{min-height:34px;padding:.3rem}.palace-app-table{min-height:390px;grid-template-rows:.8fr 1fr .8fr}.match-card{width:62px}.mini-match-chrome>footer{min-height:52px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
