@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&family=Pridi:wght@400;500;600;700&display=swap');
:root{color-scheme:dark;--gold:#e6bb68;--gold-light:#ffe6a7;--ink:#141320;--paper:#f9eddb;--muted:#aaa4b1;--line:#c89a4a33;font-family:'Noto Sans Thai',sans-serif;color:var(--paper);background:var(--ink)}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #80d7d0;outline-offset:5px}button{border:0}h1,h2,h3,p{margin:0}button, a{transition:filter .18s,background .18s,transform .18s}button:not(:disabled):hover,a:hover{filter:brightness(1.12)}.topbar{height:104px;display:flex;align-items:center;gap:44px;padding:0 5%;border-bottom:1px solid #fff1;position:relative;z-index:5;background:linear-gradient(#141320a3,#14132022)}.brand{display:flex;align-items:center;gap:12px;color:var(--gold-light);font-family:Georgia,serif;font-weight:bold;font-size:22px;letter-spacing:1px;white-space:nowrap}.brand-light{font-weight:normal}.brand-mark{font-size:32px;filter:sepia(1) saturate(2)}.brand small{font-family:'Noto Sans Thai',sans-serif;display:block;font-size:8px;letter-spacing:3.5px;color:#ded0b2a3;margin-top:4px}.topbar nav{display:flex;gap:34px;align-items:center;margin-left:auto;font-size:14px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.text-button{background:transparent;color:#d7c8ac;padding:8px 0;font-size:13px}.profile-button{border:1px solid var(--line);border-radius:30px;background:#14132066;padding:5px 14px 5px 5px;display:flex;align-items:center;gap:12px;font-size:13px}.avatar{width:46px;height:46px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-size:27px;background:radial-gradient(circle at 35% 30%,#b47d4c,#402d44);border:2px solid #e3b773;box-shadow:0 0 0 4px #1c1823}.a1{background:radial-gradient(circle at 35% 30%,#d6ad92,#684450)}.a2{background:radial-gradient(circle at 35% 30%,#91c3bd,#31575e)}.a3{background:radial-gradient(circle at 35% 30%,#a995c2,#49415d)}.profile-button .avatar{width:31px;height:31px;font-size:19px;border-width:1px;box-shadow:none}.profile-chevron{color:var(--gold)}.eyebrow{font-family:'Noto Sans Thai',sans-serif;font-size:10px;letter-spacing:3px;font-weight:600;color:var(--gold);display:block}.home-screen{height:100svh;min-height:640px;position:relative;overflow:hidden;background:#221c28 url('assets/home.jpg') center 58%/cover no-repeat}.home-screen:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#12121c70 0%,#17131c12 45%,#14121ad9 100%)}.home-vignette{position:absolute;inset:0;background:radial-gradient(ellipse at center,transparent 28%,#11101a55 100%);pointer-events:none}.home-title{position:absolute;z-index:1;top:17%;left:0;right:0;text-align:center;text-shadow:0 3px 26px #160e10}.home-title .eyebrow{font-size:9px;color:#ffe3ac;letter-spacing:4px}.home-title .eyebrow span{display:inline-block;width:25px;height:1px;background:var(--gold);margin-right:12px;vertical-align:middle}.home-title h1{font:600 clamp(44px,5.2vw,80px)/1.18 'Pridi',serif;margin:16px 0 10px;letter-spacing:-2px}.home-title h1 span{color:#ffdd97;margin-left:14px}.home-title p{font-size:14px;color:#f3e5d7}.main-play{position:absolute;left:50%;bottom:17%;transform:translateX(-50%);width:350px;display:flex;align-items:center;gap:22px;padding:20px 25px;border:1px solid #ffe5a6;border-radius:12px;background:linear-gradient(120deg,#ffe0a4,#e1ab53 60%,#f1c473);box-shadow:0 0 0 5px #b1782933,0 16px 45px #17101cc0,inset 0 2px #fff6;color:#3c2518}.main-play:hover{transform:translateX(-50%) translateY(-4px)}.main-play>span:nth-child(2){font-size:25px;font-weight:700}.main-play small{display:block;font-size:7px;letter-spacing:1.6px;margin-top:3px;color:#734a28}.play-triangle{font-size:20px}.button-arrow{font-size:27px;margin-left:auto}.home-footer{position:absolute;bottom:0;left:5%;right:5%;height:77px;border-top:1px solid #e6bb682b;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#d0c2b2}.home-footer>.text-button{font-size:11px}.home-footer>span:last-child{letter-spacing:2px;font-size:9px}.footer-year{color:#897f78;letter-spacing:0;margin-left:10px}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8ed7ba;margin-right:8px;box-shadow:0 0 12px #8ed7ba55}.library-screen{min-height:100svh;background:radial-gradient(ellipse at 80% 25%,#32273670,transparent 50%),#151420}.library-content{max-width:1280px;padding:45px 50px 25px;margin:auto}.section-heading{display:flex;justify-content:space-between;align-items:flex-end}.breadcrumb{display:block;color:#a39a9f;font-size:11px;margin-bottom:34px}.breadcrumb span{padding:0 12px;color:#665568}.section-heading h1{font:500 clamp(32px,3.7vw,50px)/1.4 'Pridi',serif;margin-top:12px}.section-heading h1>span{color:var(--gold)}.section-heading p{font-size:13px;color:var(--muted);margin-top:8px}.collection-note{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted);padding-bottom:10px}.collection-note>span{font:400 42px Georgia,serif;color:var(--gold)}.library-filter{display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--line);margin-top:35px;padding-bottom:17px;font-size:12px;color:#a59baa}.filter-active{color:var(--gold-light)}.filter-active b{font-size:9px;background:#e6bb681a;border-radius:3px;padding:2px 6px;margin-left:5px}.filter-line{flex:1}.library-filter small{font-size:10px;color:#786e81}.game-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(230px,.8fr);gap:40px;margin-top:27px}.featured-game{overflow:hidden;border:1px solid #e6bb6845;border-radius:15px;background:#201c29;box-shadow:0 16px 50px #0003}.game-cover{height:300px;position:relative;overflow:hidden}.game-cover>img{width:100%;height:100%;object-fit:cover;transition:transform .5s}.featured-game:hover .game-cover>img{transform:scale(1.035)}.game-cover:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 20%,#16121f 100%)}.cover-badge{position:absolute;top:20px;left:22px;font-size:10px;background:#171522c9;border:1px solid #edcb7b42;padding:6px 12px;border-radius:20px;z-index:1}.cover-caption{position:absolute;bottom:23px;left:28px;z-index:1}.cover-caption>span{font-size:9px;letter-spacing:3px;color:var(--gold)}.cover-caption h2{font:500 35px 'Pridi',serif;margin:4px 0}.cover-caption p{font-size:11px;color:#c8becb}.game-card-bottom{padding:19px 25px 22px}.game-meta{display:flex;gap:23px;font-size:10px;color:#bfb3c1;padding-bottom:18px;border-bottom:1px solid #e6bb681f}.game-card-actions{display:flex;align-items:center;justify-content:space-between;padding-top:18px;gap:15px}.gold-button{background:linear-gradient(125deg,#ffe4a6,#dfb15c 70%,#ecc276);color:#382718;border:1px solid #f4d38f;border-radius:8px;padding:12px 24px;font-weight:700;font-size:14px;box-shadow:inset 0 1px #fff8,0 4px 14px #0002;display:inline-flex;align-items:center;justify-content:center;gap:26px;min-height:46px}.gold-button:not(:disabled):hover{transform:translateY(-2px)}.outline-button{background:#211d2b;border:1px solid #c99d565e;color:var(--gold-light);border-radius:8px;padding:12px 20px;font-size:12px}.library-aside{padding:25px 5px 10px 18px}.aside-icon{color:var(--gold);font:40px Georgia;display:block;margin-bottom:20px}.library-aside h2{font:400 35px/1.5 'Pridi',serif;margin:14px 0}.library-aside p{color:var(--muted);font-size:12px;line-height:2}.aside-rule{width:36px;height:1px;background:var(--gold);margin:24px 0}.library-aside .development-note{font-size:11px;color:#8f8599}.library-aside .outline-button{margin-top:20px}.library-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:40px;padding-top:22px;color:#857b8c;font-size:9px;letter-spacing:.5px}.library-bottom>span:last-child{letter-spacing:2px;font-size:8px}.icon-btn{width:37px;height:37px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6ac6166;background:#201a28d9;color:var(--gold-light);font-size:19px}.game-screen{height:100svh;min-height:650px;position:relative;overflow:hidden;background:#141221 url('assets/room.jpg') center/cover no-repeat}.game-screen .topbar{height:70px;padding:0 2.5%;gap:20px}.game-screen .brand{font-size:16px;letter-spacing:.5px}.game-screen .brand small{display:none}.game-screen .brand-mark{font-size:25px}.bar-divider{height:22px;width:1px;background:var(--line)}.game-label{font:500 20px 'Pridi',serif;color:var(--gold-light)}.mode-badge{font-size:10px;color:#cec2d5;margin-right:10px}.game-shade{position:absolute;inset:0;background:linear-gradient(180deg,#12121e70,#13122238 25%,#13101ed9 100%);pointer-events:none}.game-top-info{position:absolute;left:2.5%;right:2.5%;top:83px;display:flex;justify-content:space-between;align-items:center;z-index:2;color:#c5b4bc;font-size:10px}.game-top-info .text-button{font-size:11px}.game-top-info b{color:var(--gold);padding:0 5px}.felt-table{position:absolute;left:5%;right:5%;top:24%;height:49%;border:3px solid #b9853f;border-radius:50%;background:radial-gradient(ellipse,#393050e6,#211f37f7 70%);box-shadow:0 0 0 5px #372439,0 0 0 7px #e5bb6866,0 16px 40px #0008,inset 0 0 65px #151120}.table-inner-ring{position:absolute;inset:12px;border:1px solid #e6bb682b;border-radius:50%}.felt-paw{position:absolute;top:45%;font-size:48px;filter:grayscale(1);opacity:.06}.felt-paw.left{left:27%;transform:rotate(-30deg)}.felt-paw.right{right:27%;transform:rotate(30deg)}.opponent{position:absolute;z-index:2}.opponent-profile{display:flex;gap:12px;align-items:center;position:relative;background:#181522b8;border:1px solid #d9ad6040;border-radius:35px;padding:6px 17px 6px 6px;min-width:145px}.opponent-profile strong{font-size:13px;display:block}.opponent-profile small{font-size:10px;color:#b6a6be;display:block;margin-top:2px}.opponent-profile .avatar{width:40px;height:40px;font-size:25px;box-shadow:none}.opponent.active .opponent-profile{border-color:#f2d18c;box-shadow:0 0 24px #e3b76733}.seat-active-dot{position:absolute;width:7px;height:7px;background:#8ed7ba;border-radius:50%;right:12px;top:12px}.north{left:50%;top:11.5%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center}.opponent-cards{height:102px;width:200px;position:relative;margin-top:8px}.opponent-cards img{position:absolute;left:calc(50% + (var(--fan) - (var(--total) - 1)/2)*25px);width:62px;height:93px;border-radius:5px;box-shadow:0 2px 6px #0007;transform:translateX(-50%) rotate(calc((var(--fan) - (var(--total) - 1)/2)*5deg))}.west,.east{top:39%;display:flex;align-items:center;gap:12px}.west{left:2.7%}.east{right:2.7%;flex-direction:row-reverse}.west .opponent-profile,.east .opponent-profile{flex-direction:column;padding:9px 14px;min-width:87px;border-radius:22px;text-align:center;gap:7px}.west .opponent-cards,.east .opponent-cards{width:83px;height:160px;margin:0}.west .opponent-cards img,.east .opponent-cards img{left:50%;top:calc(50% + (var(--fan) - (var(--total) - 1)/2)*18px);width:61px;height:91px;transform:translate(-50%,-50%) rotate(90deg)}.east .opponent-cards img{transform:translate(-50%,-50%) rotate(-90deg)}.eliminated{opacity:.5}.out-stamp{font-size:35px;display:flex;align-items:center;justify-content:center;height:100%}.table-center{position:absolute;left:50%;top:32%;transform:translateX(-50%);z-index:2;text-align:center}.turn-indicator{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7ac6666;background:#191422e8;padding:7px 20px;border-radius:25px;font-size:12px;gap:0;white-space:nowrap;color:#c9bdd1;min-width:140px}.turn-indicator .live-dot{background:#a296b0}.turn-indicator.my-turn{color:var(--gold-light);box-shadow:0 0 22px #e6bb681c;border-color:#e1ba6f}.my-turn .live-dot{background:#8ed7ba}.owed{font-size:10px;padding-left:12px;margin-left:12px;border-left:1px solid var(--line);color:#e89d81}.piles{display:flex;gap:35px;justify-content:center;align-items:flex-start;margin-top:19px}.pile{background:none;padding:0;display:flex;flex-direction:column;align-items:center;width:109px}.deck-stack{position:relative;width:109px;height:164px;border-radius:7px;box-shadow:2px 3px #a28a78,4px 6px #4c3b49,6px 9px #bca796,8px 11px #392c3b,0 12px 24px #0009}.deck-stack>img{width:100%;height:100%;object-fit:cover;border-radius:7px}.deck-count{position:absolute;right:-11px;bottom:-9px;border-radius:50%;height:38px;min-width:38px;padding:0 5px;background:#1c1829;border:2px solid var(--gold);font-size:17px;display:flex;align-items:center;justify-content:center}.draw-pile{opacity:1!important}.can-draw .deck-stack{box-shadow:2px 3px #a28a78,4px 6px #4c3b49,6px 9px #bca796,0 0 20px #e6bb6833}.can-draw:hover{transform:translateY(-5px)}.pile-label{font-size:11px;color:#e3d4b7;margin-top:18px}.pile-label small{display:block;font-size:6px;letter-spacing:1.8px;color:#8c809a;margin-top:3px}.empty-pile{width:109px;height:164px;border:1px dashed #e6bb6844;border-radius:6px;font-size:30px;display:grid;place-items:center;color:#e6bb6855}.discard-pile>.playing-card{width:109px;height:164px}.discard-pile .card-name{font-size:7px;padding:5px 0}.table-caption{font-size:10px;color:#ada1b7;display:block;margin-top:15px;white-space:nowrap}.playing-card{display:block;position:relative;aspect-ratio:2/3;width:140px;background:#211a2c;padding:0;flex-shrink:0;border-radius:9px;overflow:hidden;border:0;isolation:isolate;box-shadow:0 6px 16px #0007}.card-art{position:absolute;inset:3% 5%;width:90%;height:94%;object-fit:cover;border-radius:5px}.card-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;z-index:1}.card-name{position:absolute;z-index:2;bottom:8%;left:12%;right:12%;border:1px solid #b58440;border-radius:4px;background:linear-gradient(100deg,#231323f5,#16121af5);color:#ffe8b4;text-align:center;font:500 9px/1.45 'Noto Sans Thai',sans-serif;white-space:nowrap;padding:7px 1px;box-shadow:0 2px 5px #0008}.hand-area{position:absolute;bottom:3.5%;left:23%;right:23%;z-index:4}.hand-caption{display:flex;justify-content:space-between;align-items:center;color:#d7c5b4;font-size:10px;padding:0 5px 16px}.hand-caption b{font-size:9px;background:#cda65d29;padding:2px 5px;border-radius:3px;margin-left:5px}.hand-caption>span:last-child{font-size:8px;color:#a89aa9}.hand{display:flex;align-items:flex-end;justify-content:center;min-height:190px;padding:12px 3px 8px}.hand>.playing-card{width:clamp(95px,10.1vw,160px);margin-left:calc(-1 * clamp(25px,3.8vw,59px));transform:translateY(0);transition:transform .22s,filter .22s;overflow:visible;background:none;box-shadow:none}.hand>.playing-card:first-child{margin-left:0}.hand>.playing-card:nth-child(odd){transform:translateY(7px) rotate(-2deg)}.hand>.playing-card:nth-child(even){transform:rotate(2deg)}.hand>.playing-card:hover{transform:translateY(-20px);z-index:5}.hand>.playing-card.selected{transform:translateY(-27px);z-index:6;filter:drop-shadow(0 0 5px #f1bc5c) drop-shadow(0 0 12px #e5a64666)}.hand>.playing-card img{border-radius:7px}.hand .card-name{font-size:clamp(6px,.65vw,10px);bottom:8%;left:11%;right:11%;padding:6px 0}.local-seat{position:absolute;bottom:7%;left:3%;display:flex;align-items:center;gap:13px;z-index:3}.local-seat>.avatar{width:65px;height:65px;font-size:39px}.local-seat strong{display:block;font-size:15px;color:var(--gold-light);max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-seat small{display:block;font-size:10px;color:#b1a1b8;margin-top:5px}.local-seat .live-dot{position:absolute;bottom:0;left:50px;width:10px;height:10px;border:2px solid #252034}.event-log{position:absolute;left:3%;bottom:23%;width:205px;border:1px solid #d0ae6a2b;background:#161422a6;backdrop-filter:blur(8px);border-radius:9px;padding:12px 14px;z-index:2;pointer-events:none}.log-heading{display:flex;justify-content:space-between;font-size:9px;color:#bba884;margin-bottom:10px}.event-log p{font-size:9px;line-height:1.8;color:#a69aab;display:flex;gap:7px}.event-log p:last-child{color:#eee0cd}.event-log p>span{color:var(--gold)}.game-controls{position:absolute;bottom:7%;right:3%;width:204px;z-index:4;display:flex;flex-direction:column;gap:9px}.game-controls>.gold-button{width:100%;font-size:18px;min-height:55px;padding:10px;gap:16px}.game-controls>.outline-button{min-height:42px}.selected-info{position:relative;padding:0 24px 8px 0;min-height:43px}.selected-info>span{display:block;font-size:8px;letter-spacing:1px;color:#be9d69;margin-bottom:3px}.selected-info strong{font-size:11px;color:#e1cba8;font-weight:500}.detail-button{position:absolute;right:0;top:9px;border:1px solid #d9b47766;background:#211c2b;border-radius:50%;height:26px;width:26px;color:var(--gold-light);font-size:19px;line-height:1}.reaction-button{flex-direction:column;gap:3px!important}.reaction-button small{font-size:10px;font-weight:400}.floating-help{position:absolute;right:2.5%;bottom:2%;width:25px;height:25px;font-size:13px;z-index:3}.eliminated-message{text-align:center;padding:25px;font:500 20px 'Pridi';color:var(--gold-light)}.eliminated-message small{font:12px 'Noto Sans Thai';color:#baaebe;display:block;margin-top:12px}.modal-backdrop{position:fixed;inset:0;background:#0b0914c9;backdrop-filter:blur(12px);z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}.modal{width:460px;max-width:100%;max-height:calc(100svh - 48px);overflow:auto;position:relative;padding:40px;background:radial-gradient(ellipse at top,#362b3d,#1c1928 70%);border:1px solid #d6aa5c66;box-shadow:0 0 0 5px #d6aa5c09,0 25px 100px #0008;border-radius:18px}.modal.wide{width:660px}.modal-close{position:absolute;right:15px;top:15px;width:29px;height:29px;font-size:21px}.modal h2{font:500 28px/1.5 'Pridi',serif;color:var(--gold-light);margin:14px 0 12px}.modal-intro{color:#bfb1c4;font-size:12px;line-height:1.9;margin:10px 0 24px}.modal p:not([class]){font-size:13px;line-height:2;color:#c7b8c7;margin-bottom:25px}.modal .eyebrow{font-size:8px}.full{width:100%;margin-top:15px}.modal label{font-size:12px;display:block;margin:20px 0 9px;color:#d8c3a5}.modal input{display:block;width:100%;background:#12111e;border:1px solid #e6bb6844;border-radius:8px;padding:12px 15px;color:var(--paper);font-size:15px}.avatar-picker{display:flex;gap:12px;margin:12px 0 25px}.avatar-choice{width:55px;height:55px;background:#ffffff08;border:1px solid #ffffff15;border-radius:50%;font-size:28px}.avatar-choice.chosen{border-color:var(--gold);background:#e6bb6822;box-shadow:0 0 12px #e6bb6822}.auth-note{font-size:10px;line-height:1.9;color:#94889e;text-align:center;margin-top:22px}.setup-art{height:145px;overflow:hidden;border-radius:9px;margin:20px 0}.setup-art img{width:100%;height:100%;object-fit:cover}.setup-row{display:flex;justify-content:space-between;gap:15px;font-size:11px;border-bottom:1px solid #e6bb681c;padding:12px 0;color:#b4a6bd}.setup-row strong{color:#e4d4be;font-weight:500}.rules-steps{display:flex;flex-direction:column;gap:22px;margin:25px 0}.rules-steps>div{display:flex;gap:19px}.rules-steps b{font:22px Georgia;color:var(--gold)}.rules-steps h3{font-size:13px;margin-bottom:6px;color:#e7d1af}.rules-steps p{font-size:11px!important;line-height:1.9!important;margin:0!important}.notice{font-size:10px;color:#b8aac3;padding:13px 16px;border:1px solid #e6bb682b;border-radius:7px;background:#e6bb6808;line-height:1.9}.card-detail-layout{display:flex;gap:30px;align-items:center}.card-detail-layout .detail-card{width:200px}.detail-card .card-name{font-size:11px}.card-detail-layout>div:last-child{flex:1}.card-detail-layout h2{font-size:23px}.card-detail-layout p{font-size:12px!important}.target-list{display:flex;flex-direction:column;gap:12px;margin-top:25px}.target{display:flex;align-items:center;gap:15px;background:#151320;border:1px solid #e6bb6833;border-radius:12px;padding:13px 15px;text-align:left}.target strong{font-size:14px}.target>span:last-child{font-size:11px;color:var(--gold);margin-left:auto}.future-cards{display:flex;gap:17px;justify-content:center;margin:28px 0}.future-cards>div>span{display:block;text-align:center;font-size:10px;color:#ae9aba;margin-bottom:10px}.future-cards .playing-card{width:150px}.give-list{display:flex;flex-direction:column;gap:8px}.give-list>button{padding:13px 12px;border-radius:7px;background:#13111e;border:1px solid var(--line);text-align:left;font-size:12px;display:flex;justify-content:space-between;gap:10px}.give-list span{font-size:10px;color:var(--gold)}.result-icon{font-size:65px;display:block;text-align:center;margin-bottom:20px}.result-icon~h2,.result-icon~p,.result-icon~.eyebrow{text-align:center}.setting-row{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 0;border-bottom:1px solid var(--line);background:none;font-size:13px}.setting-row strong{font-size:12px;color:var(--gold)}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);z-index:100;max-width:90vw;padding:13px 24px;border:1px solid #e6bb6877;border-radius:30px;background:#251e30ed;color:var(--gold-light);font-size:12px;text-align:center;box-shadow:0 8px 40px #0007;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.game-screen .topbar{height:85px}.game-top-info{top:97px}.north{top:12%}.opponent-cards{height:130px;width:250px}.opponent-cards img{width:80px;height:120px;left:calc(50% + (var(--fan) - (var(--total) - 1)/2)*32px)}.opponent-profile strong{font-size:16px}.opponent-profile small{font-size:12px}.opponent-profile .avatar{width:50px;height:50px;font-size:30px}.pile,.deck-stack{width:135px}.deck-stack{height:203px}.discard-pile>.playing-card,.empty-pile{width:135px;height:203px}.piles{gap:48px}.table-center{top:32%}.turn-indicator{font-size:15px}.hand-area{bottom:4%}.hand{min-height:235px}.game-controls{width:250px}.event-log{width:255px}.event-log p{font-size:11px}.local-seat>.avatar{width:83px;height:83px;font-size:48px}.table-caption{font-size:12px}.selected-info strong{font-size:14px}.selected-info>span{font-size:10px}.hand-caption{font-size:12px}}
@media(max-width:1050px){.topbar{padding:0 4%;gap:22px;height:85px}.brand{font-size:18px}.topbar nav{gap:20px}.home-title{top:20%}.home-screen{background-position:50% center}.library-content{padding:35px 30px}.game-grid{gap:25px;grid-template-columns:minmax(0,1.6fr) minmax(210px,.8fr)}.game-cover{height:265px}.library-aside{padding-left:0}.game-screen .brand{font-size:13px}.mode-badge{display:none}.game-label{font-size:17px}.game-controls{width:165px;right:2%}.game-controls>.gold-button{font-size:15px;gap:10px}.hand-area{left:20%;right:20%;bottom:4%}.hand>.playing-card{width:120px;margin-left:-55px}.hand .card-name{font-size:7px}.event-log{width:155px;left:2%;padding:10px;bottom:25%}.event-log p{font-size:8px}.local-seat{left:2%;gap:9px}.local-seat>.avatar{width:49px;height:49px;font-size:30px}.local-seat strong{font-size:12px;max-width:90px}.local-seat small{font-size:8px}.local-seat .live-dot{left:37px}.west{left:2%}.east{right:2%}.west .opponent-profile,.east .opponent-profile{min-width:65px;padding:8px}.opponent-profile .avatar{width:33px;height:33px;font-size:22px}.opponent-profile strong{font-size:11px}.opponent-profile small{font-size:9px}.west .opponent-cards,.east .opponent-cards{width:65px}.west .opponent-cards img,.east .opponent-cards img{width:51px;height:77px}.hand-caption>span:last-child{display:none}.piles{gap:28px}.felt-table{left:4%;right:4%}}
@media(max-width:700px){.topbar{height:77px;padding:0 6%;gap:14px}.brand{font-size:16px;gap:8px;letter-spacing:.3px}.brand-mark{font-size:25px}.brand small{font-size:6px;letter-spacing:2px}.topbar nav{display:none}.profile-button{padding:5px;border:0;background:#18132077}.profile-button>span:not(.avatar){display:none}.profile-button .avatar{height:34px;width:34px;font-size:21px}.home-screen{min-height:600px;background-position:48% center}.home-screen:before{background:linear-gradient(#11101d8a,#14121b18 48%,#14121aee)}.home-title{top:18%;padding:0 20px}.home-title .eyebrow{font-size:7px;letter-spacing:2px}.home-title h1{font-size:42px;letter-spacing:-1px;margin-top:20px}.home-title h1 span{display:block;margin-left:0}.home-title p{font-size:11px;margin-top:15px}.main-play{width:290px;bottom:18%;padding:17px 22px}.main-play>span:nth-child(2){font-size:23px}.main-play small{font-size:6px}.home-footer{height:84px;left:6%;right:6%;flex-wrap:wrap;gap:0;justify-content:center;padding:10px 0}.home-footer>span:first-child{font-size:9px;width:100%;text-align:center}.home-footer>span:last-child{font-size:7px}.home-footer>.text-button{display:none}.library-content{padding:25px 23px}.breadcrumb{margin-bottom:28px;font-size:10px}.section-heading h1{font-size:33px;margin-top:10px}.section-heading p{font-size:11px;line-height:1.8;max-width:230px}.section-heading .eyebrow{font-size:8px;letter-spacing:2px}.collection-note{display:none}.library-filter{margin-top:28px;gap:20px}.library-filter small{display:none}.game-grid{display:flex;flex-direction:column;gap:20px}.game-cover{height:260px}.cover-caption{left:20px;bottom:20px}.cover-caption h2{font-size:32px}.game-card-bottom{padding:18px 18px 20px}.game-meta{gap:16px;font-size:9px}.game-card-actions>.gold-button{font-size:12px;padding:11px 20px}.game-card-actions>.text-button{font-size:11px}.library-aside{padding:24px 8px;border-top:1px solid var(--line)}.aside-icon{float:right;margin:0 8px 0 15px;font-size:60px;opacity:.6}.library-aside h2{font-size:29px;line-height:1.5}.library-aside h2 br{display:none}.library-aside p{font-size:11px}.aside-rule{margin:17px 0}.library-bottom{margin-top:12px;line-height:1.8}.library-bottom>span:last-child{display:none}.game-screen{min-height:740px;background-position:50% center}.game-screen .topbar{height:60px;padding:0 15px;gap:9px}.game-screen .brand{font-size:10px;gap:4px}.game-screen .brand-mark{font-size:20px}.bar-divider{display:none}.game-screen .game-label{display:none}.header-actions{gap:8px}.icon-btn{width:32px;height:32px;font-size:17px}.game-top-info{top:69px;left:16px;right:16px;font-size:8px}.game-top-info .text-button{font-size:9px}.north{top:13%;width:170px}.north .opponent-profile{min-width:125px;padding:4px 12px 4px 5px;gap:10px}.opponent-profile .avatar{width:29px;height:29px;font-size:19px}.opponent-profile strong{font-size:10px}.opponent-profile small{font-size:8px}.opponent-cards{width:145px;height:76px;margin-top:7px}.opponent-cards img{width:43px;height:65px;left:calc(50% + (var(--fan) - (var(--total) - 1)/2)*18px)}.felt-table{left:-17%;right:-17%;top:28%;height:39%;border-width:2px}.table-inner-ring{inset:7px}.felt-paw{display:none}.west,.east{top:33%;display:flex;flex-direction:column;gap:4px}.west{left:13px}.east{right:13px}.west .opponent-profile,.east .opponent-profile{background:#191523d9;min-width:57px;padding:7px 9px;gap:5px;border-radius:22px}.west .opponent-cards,.east .opponent-cards{width:50px;height:106px}.west .opponent-cards img,.east .opponent-cards img{width:35px;height:53px;top:calc(50% + (var(--fan) - (var(--total) - 1)/2)*12px)}.seat-active-dot{width:5px;height:5px;right:8px;top:8px}.table-center{top:32%;width:210px}.turn-indicator{font-size:10px;padding:5px 13px;min-width:110px;max-width:220px}.owed{font-size:8px;margin-left:7px;padding-left:7px}.piles{gap:21px;margin-top:17px}.pile,.deck-stack{width:72px}.deck-stack{height:108px;box-shadow:2px 3px #a28a78,4px 6px #4c3b49,5px 7px #bca796}.discard-pile>.playing-card,.empty-pile{width:72px;height:108px}.discard-pile .card-name{font-size:5px;padding:3px 0}.deck-count{height:27px;min-width:27px;font-size:12px;bottom:-8px;right:-8px;border-width:1px}.pile-label{font-size:9px;margin-top:14px}.pile-label small{font-size:5px;letter-spacing:1px}.table-caption{font-size:8px;margin-top:13px;white-space:normal;padding:0 10px;line-height:1.8}.event-log{display:none}.local-seat{left:17px;bottom:auto;top:60%;gap:8px}.local-seat>.avatar{width:31px;height:31px;font-size:20px;border-width:1px}.local-seat strong{font-size:10px;max-width:170px}.local-seat small{font-size:8px;margin-top:2px}.local-seat .live-dot{height:7px;width:7px;left:23px;border-width:1px}.hand-area{left:9px;right:9px;bottom:14%;height:23%;z-index:4}.hand-caption{padding:5px 11px 0;font-size:9px;height:22px}.hand{min-height:0;height:calc(100% - 22px);justify-content:flex-start;overflow-x:auto;overflow-y:hidden;padding:29px 14px 8px;scrollbar-width:thin;scrollbar-color:#b98d4555 transparent}.hand>.playing-card{width:105px;margin-left:-30px;height:auto;align-self:flex-end}.hand>.playing-card:first-child{margin-left:0}.hand>.playing-card.selected{transform:translateY(-19px)}.hand>.playing-card:hover{transform:translateY(-12px)}.hand .card-name{font-size:6px;padding:5px 0}.game-controls{bottom:2.4%;left:19px;right:19px;width:auto;display:grid;grid-template-columns:1fr 1fr;gap:9px}.selected-info{grid-column:1/-1;min-height:34px;padding-bottom:0}.selected-info>span{font-size:7px;position:absolute;right:37px;top:7px;max-width:100px;letter-spacing:0}.selected-info strong{font-size:10px;display:block;padding-top:5px}.detail-button{top:0;right:0;width:28px;height:28px}.game-controls>.gold-button{min-height:43px;font-size:14px;border-radius:7px;gap:14px;padding:9px}.game-controls>.outline-button{min-height:43px;font-size:11px;padding:9px}.reaction-button{grid-column:1/-1;flex-direction:row;gap:20px!important}.floating-help{right:17px;bottom:auto;top:61%;width:24px;height:24px;font-size:12px}.modal-backdrop{padding:16px}.modal{padding:34px 24px 27px;border-radius:14px;max-height:calc(100svh - 32px)}.modal h2{font-size:24px}.modal-intro{font-size:11px}.modal .eyebrow{font-size:7px;letter-spacing:2px}.card-detail-layout{flex-direction:column;gap:20px}.card-detail-layout .detail-card{width:155px}.card-detail-layout h2{font-size:23px}.future-cards{gap:9px}.future-cards .playing-card{width:min(23vw,130px)}.future-cards .card-name{font-size:6px;padding:5px 0}.rules-steps{gap:18px}.rules-steps>div{gap:13px}.rules-steps p{font-size:10px!important}.setup-row{font-size:10px}.setup-art{height:120px}.eliminated-message{font-size:17px}.eliminated-message small{font-size:10px}.game-screen .header-actions{margin-left:auto}.result-icon{font-size:48px}}
@media(max-width:700px) and (min-height:850px){.game-screen{min-height:100svh}.hand-area{height:23%;bottom:14%}.hand>.playing-card{width:120px;margin-left:-36px}.hand .card-name{font-size:7px}.table-center{top:33%}.felt-table{top:29%;height:37%}.local-seat{top:61%}.north{top:14%}}
@media(max-height:650px) and (min-width:701px){.game-screen{min-height:600px}.game-screen .topbar{height:54px}.game-top-info{top:58px}.north{top:12%}.opponent-cards{height:72px}.opponent-cards img{width:47px;height:70px}.opponent-profile .avatar{width:28px;height:28px;font-size:19px}.opponent-profile{padding:4px 13px 4px 4px;min-width:125px}.pile,.deck-stack{width:80px}.deck-stack{height:120px}.discard-pile>.playing-card,.empty-pile{width:80px;height:120px}.piles{margin-top:12px}.hand>.playing-card{width:105px;margin-left:-44px}.hand{min-height:150px}.hand-area{bottom:2%}.hand-caption{padding-bottom:0}.table-caption{font-size:9px;margin-top:8px}.event-log{bottom:24%;}.game-controls{bottom:5%}.local-seat{bottom:7%}}
.hand [data-card]{touch-action:pan-x;user-select:none;-webkit-user-select:none;cursor:grab}
.hand [data-card] img{-webkit-user-drag:none;user-select:none}
.card-dragging,.card-dragging *{cursor:grabbing!important;user-select:none!important}
.hand>.playing-card.drag-source{opacity:.24;filter:grayscale(.6);transform:translateY(8px)!important}
.felt-table,.opponent-profile,.table-center{transition:box-shadow .18s,border-color .18s}
.felt-table.drop-allowed{border-color:#ffe6a7;box-shadow:0 0 0 5px #372439,0 0 0 7px #e5bb6880,0 0 40px #e6bb6833,inset 0 0 50px #e6bb6815}
.felt-table.drop-hover{border-color:#99e2c1;box-shadow:0 0 0 5px #372439,0 0 0 7px #99e2c180,0 0 40px #99e2c133,inset 0 0 60px #99e2c11c}
.opponent.drop-allowed .opponent-profile{border-color:#ffe6a7;box-shadow:0 0 0 2px #e6bb6844,0 0 30px #e6bb6855}
.opponent.drop-hover .opponent-profile{border-color:#99e2c1;box-shadow:0 0 0 3px #99e2c180,0 0 32px #99e2c155}
.table-center.drop-allowed:after{content:'วางตรงนี้เพื่อเล่น';position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);padding:10px 19px;white-space:nowrap;background:#181423f2;border:1px solid #f0cd85;border-radius:30px;color:#ffe6a7;font-size:12px;box-shadow:0 5px 25px #0008;pointer-events:none}
.table-center.drop-hover:after{content:'ปล่อยไพ่ได้เลย';border-color:#99e2c1;color:#b8f4d6}
.drag-ghost{position:fixed;z-index:80;pointer-events:none;transform:translate(-50%,-62%) rotate(5deg);filter:drop-shadow(0 15px 18px #0009) drop-shadow(0 0 6px #e6bb6877);will-change:left,top}
.drag-ghost .drag-preview{width:100%;height:auto;aspect-ratio:2/3;transform:none;margin:0;box-shadow:none;pointer-events:none}
.drag-ghost .card-name{font-size:9px}
.drag-ghost.drop-ready{filter:drop-shadow(0 15px 18px #0009) drop-shadow(0 0 8px #99e2c1)}
.drag-ghost .drag-pair-back{position:absolute;inset:0;transform:translate(-15px,-7px) rotate(-13deg);z-index:-1}
.drag-pair-badge{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);z-index:3;border:1px solid #e6bb68;border-radius:20px;background:#24192bef;color:#ffe6a7;white-space:nowrap;font-size:10px;padding:5px 12px}
.drag-hint{position:fixed;z-index:85;bottom:18px;left:50%;transform:translateX(-50%);max-width:90vw;padding:10px 20px;border:1px solid #e6bb6877;border-radius:25px;background:#211a2df2;color:#ffe6a7;font-size:12px;text-align:center;pointer-events:none;box-shadow:0 8px 40px #0008}
.drag-hint.invalid{border-color:#e89d8177;color:#ffd2c0}
.drag-ghost.drag-returning{transition:left .2s ease-out,top .2s ease-out,opacity .2s;transform:translate(-50%,-50%) rotate(0deg)}
@media(max-width:700px){.table-center.drop-allowed:after{font-size:10px;padding:8px 12px}.drag-hint{bottom:12px;font-size:10px;max-width:94vw;padding:9px 15px}.drag-ghost .card-name{font-size:7px}.hand-caption:after{content:'ปัดเลื่อนไพ่ · ลากขึ้นเพื่อเล่น';font-size:8px;color:#bfb0c4}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* game library — second title: อุโมงค์ลับแห่งดวงดาว (CSS cover, no card art) */
.game-list{display:grid;gap:28px;min-width:0}
.star-cover{display:block;background:radial-gradient(60% 70% at 85% 25%,#5fe0d03a,transparent 70%),radial-gradient(60% 60% at 15% 90%,#e8c98326,transparent 70%),repeating-linear-gradient(115deg,#ffffff06 0 2px,transparent 2px 14px),linear-gradient(160deg,#3a2550,#140b1c)}
.star-cover-art{position:absolute;inset:0}
.star-cover-art i{position:absolute;width:46px;height:80px;background:linear-gradient(180deg,#b9fff5cc,#5fe0d033);clip-path:polygon(50% 0,100% 35%,70% 100%,30% 100%,0 35%);filter:drop-shadow(0 0 14px #5fe0d0aa)}
.star-cover-art i:nth-child(1){left:62%;top:14%;transform:rotate(14deg)}.star-cover-art i:nth-child(2){left:80%;top:44%;transform:rotate(-18deg) scale(.7)}.star-cover-art i:nth-child(3){left:46%;top:56%;transform:rotate(8deg) scale(.5)}
.star-cover-art svg{position:absolute;left:4%;top:12%;width:92%;height:70%}
.star-cover-art path{fill:none;stroke:#e8c983;stroke-width:5;stroke-linecap:round;stroke-dasharray:10 14;filter:drop-shadow(0 0 6px #e8c98399)}
.star-cover-art circle{fill:#f6e2b0;filter:drop-shadow(0 0 10px #e8c983)}
.star-actions{flex-wrap:wrap;justify-content:flex-start}
.star-actions a{display:inline-flex;align-items:center}
.lobby-seat[data-profile],.rival-profile[data-profile]{cursor:pointer}
