*{box-sizing:border-box} :root{--cream:#fff3e9;--cream2:#f9e4d5;--paper:#fffaf5;--brown:#56382d;--brown2:#704a39;--line:#d9b79f;--gold:#e8b35f;--peach:#edc9b2;--pink:#f3c4c1;--blue:#c9d9e8;--shadow:0 9px 22px #704a3916}html,body{margin:0;min-height:100%;font-family:'Mali','Itim',sans-serif;color:var(--brown);background:#ead9cc}body{min-height:100svh;display:grid;place-items:center;padding:10px}button,input{font:inherit}button{cursor:pointer}.app-shell{position:relative;isolation:isolate;width:min(100%,440px);height:min(940px,calc(100svh - 20px));min-height:680px;overflow:hidden;border:2px solid #a77c62;border-radius:28px;background:radial-gradient(ellipse at 50% 42%,#fffdf8 0%,transparent 50%),linear-gradient(145deg,#fff6ed,#ffecdf 65%,#f7e1d1);box-shadow:0 18px 48px #5034272b,inset 0 0 0 4px #fffaf4}.app-shell:before{content:'';position:absolute;inset:7px;border:1px solid #e4c5ae;border-radius:20px;pointer-events:none;z-index:-1}.app-shell:after{content:'';position:absolute;inset:0;z-index:-2;opacity:.2;background-image:radial-gradient(#c79b7b .6px,transparent .8px);background-size:10px 10px;mask-image:linear-gradient(transparent,#000 15%,#000 85%,transparent)}.ambient{position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none;z-index:-1}.ambient-one{width:180px;height:180px;right:-95px;top:28%;background:#f5d8c5aa}.ambient-two{width:150px;height:150px;left:-95px;bottom:12%;background:#f2d7c2aa}.screen{position:absolute;inset:0;display:none;flex-direction:column;padding:14px 20px 15px;overflow-y:auto;scrollbar-width:none}.screen::-webkit-scrollbar{display:none}.screen.active{display:flex;animation:screenIn .32s cubic-bezier(.2,.7,.2,1)}.home-screen{align-items:center;overflow:hidden}.topbar{height:39px;flex:0 0 39px;width:100%;display:flex;align-items:center;justify-content:space-between}.icon-button{border:0;background:transparent;color:#50352b}.icon-button:not(.gear){width:34px;display:grid;gap:4px;padding:4px}.icon-button:not(.gear) span{height:4px;width:25px;border-radius:5px;background:#50352b}.gear{font-size:31px;line-height:1;transition:transform .5s}.gear:hover{transform:rotate(55deg)}.tiny-spark{color:#efbd6b;font-size:21px}.top-pearl{width:27px;height:27px;border-radius:50%;background:#fff;margin-left:25px;margin-right:auto}.brand{width:100%;display:flex;justify-content:center;align-items:center;margin-top:0;z-index:1}.brand img{width:100%;max-width:340px;max-height:225px;object-fit:contain;filter:drop-shadow(0 3px 2px #6a46301a)}.home-hero{position:relative;flex:1;min-height:220px;width:100%;display:grid;place-items:center}.mascot{width:100%;height:100%;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 7px 6px #6e49301c);animation:bob 4.2s ease-in-out infinite}.doodle{position:absolute;z-index:2;color:#d9a15b;animation:twinkle 3s ease-in-out infinite}.heart{font-size:46px;left:0;top:9%;color:#9a6554;transform:rotate(-15deg)}.ring{right:1%;top:18%;font-size:38px;color:#d4a477}.sparkle{font-size:26px}.sparkle.left{left:8%;bottom:25%}.sparkle.right{right:5%;bottom:27%;animation-delay:1.2s}.welcome-pill{width:88%;padding:7px 12px;margin-top:-2px;text-align:center;background:linear-gradient(#fffaf4,#ffefe2);border:1.6px solid #d4ad92;border-radius:40px;box-shadow:0 3px 0 #e5c6b1;font-size:16px;font-weight:600;z-index:3}.welcome-pill span{font-size:22px;vertical-align:-2px}.primary-button{border:2px solid #d9a85f;border-radius:50px;color:#fff5e9;font-weight:700;background:linear-gradient(180deg,#80563f,#58392d);box-shadow:0 4px 0 #432b22,inset 0 2px 2px #ffffff42;transition:transform .18s,box-shadow .18s}.primary-button:hover{transform:translateY(-3px);box-shadow:0 7px 0 #432b22,0 9px 17px #58392d25}.primary-button:active{transform:translateY(1px)}.home-start{flex:0 0 auto;width:95%;min-height:61px;margin-top:13px;display:flex;align-items:center;justify-content:center;gap:17px;font-size:23px}.play-triangle{color:#ffd16d;font-size:26px;text-shadow:0 1px #6b472e}.home-footer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:12px;color:#805a46}.home-footer small{font-size:10px;font-weight:700;letter-spacing:.3px}
/* player setup */.sub-header{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:12px}.round-back,.round-icon{width:39px;height:39px;flex:0 0 39px;border:1.5px solid #d8b69e;border-radius:50%;background:#fff9f2;color:#704a39;font-size:29px;line-height:1;box-shadow:0 3px 0 #e8d1c1}.sub-header h1{font-size:21px;line-height:1.15;margin:1px 0 0;font-weight:700}.eyebrow{font-size:9px;letter-spacing:1.3px;color:#b07c5c;font-weight:700}.header-crown{margin-left:auto;font-size:35px;color:#dba64e;text-shadow:1px 2px #694532}.intro-card{position:relative;min-height:105px;margin:9px 0 15px;padding:17px 14px;border:1px solid #e4c5ae;border-radius:20px;background:linear-gradient(115deg,#fffaf4,#f9e4d4);box-shadow:var(--shadow);overflow:hidden;display:flex;align-items:center}.intro-copy{display:flex;flex-direction:column;gap:5px;max-width:68%;z-index:1}.intro-copy strong{font-size:17px}.intro-copy span{font-size:11px;color:#98755f}.tiny-mascot{position:absolute;right:1px;bottom:-31px;width:122px;height:135px}.tiny-mascot img{width:100%;height:100%;object-fit:contain}.add-player-form{display:flex;gap:8px;padding:5px;border:1px solid #dfbea7;border-radius:17px;background:#fffaf5;box-shadow:0 4px 12px #79543b12}.add-player-form input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:8px 10px;color:var(--brown);font-size:13px}.add-player-form input::placeholder{color:#c0a18b}.add-button{width:43px;height:41px;border:0;border-radius:13px;background:linear-gradient(145deg,#90664c,#694432);color:#fff2e4;font-size:27px;box-shadow:0 3px 0 #4d3025}.list-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 2px 9px;font-size:13px;font-weight:700}.count-badge{padding:4px 11px;border-radius:20px;background:#f1dfd0;color:#8a624a;font-size:11px}.player-list{flex:1;min-height:100px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:1px 2px 8px}.empty-state{flex:1;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#a27c64;text-align:center}.empty-state>span{font-size:31px}.empty-state strong{font-size:14px;color:#805a46}.empty-state small{font-size:11px}.player-row{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid #ead1c0;border-radius:14px;background:#fffaf5;box-shadow:0 3px 9px #79543b0c;animation:pop .2s ease}.player-avatar{width:31px;height:31px;border-radius:11px;display:grid;place-items:center;background:#f4dfce;color:#9b6b4c}.player-name{flex:1;font-size:13px;font-weight:600}.player-edit,.player-delete{border:0;background:transparent;color:#9c745d;font-size:12px;padding:5px}.player-delete{font-size:22px;color:#cf7b70}.players-bottom{margin-top:auto;padding-top:8px}.save-note{display:flex;justify-content:center;align-items:center;gap:7px;font-size:10px;color:#9c806d;margin-bottom:10px}.save-dot{width:7px;height:7px;border-radius:50%;background:#83a77c;box-shadow:0 0 0 3px #83a77c20}.continue-button{width:100%;min-height:53px;font-size:17px}.continue-button span{color:#ffd16d;margin-left:9px}.continue-button:disabled{opacity:.45;cursor:not-allowed;transform:none}
/* game select */.games-screen{padding:12px 17px 13px}.game-topbar{height:43px;flex:0 0 43px;display:flex;align-items:center;justify-content:space-between}.club-mark{display:flex;align-items:center;gap:7px;font-size:15px;font-weight:700;letter-spacing:.7px;color:#694735}.club-mark b{font-weight:700;color:#a16e4d}.club-crown{font-size:24px;color:#dca74e;text-shadow:1px 1px #694532}.round-icon{font-size:19px}.game-welcome{position:relative;min-height:165px;margin:12px 0 17px;border:1.5px solid #e2c0a7;border-radius:22px;background:linear-gradient(125deg,#fffaf4 0%,#f8e4d5 100%);box-shadow:0 7px 18px #704a3915,inset 0 0 0 4px #fff8f0;overflow:hidden;display:flex;align-items:center}.game-welcome:after{content:'';position:absolute;width:190px;height:190px;border-radius:50%;right:-38px;top:-55px;background:radial-gradient(circle,#fff7e8 0%,#f0d4bf 70%,transparent 72%);opacity:.8}.game-welcome-copy{position:relative;z-index:2;padding:17px 0 14px 16px;width:64%}.game-welcome h1{font-size:25px;line-height:1.15;margin:4px 0 6px;letter-spacing:-.6px}.game-welcome h1 em{font-style:normal;color:#a66f4d;text-shadow:1px 1px #fff}.game-welcome p{font-size:10px;color:#98755f;margin:0 0 11px}.party-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #e5c5ad;border-radius:20px;background:#fffaf4;color:#8b624b;font-size:8px;letter-spacing:.3px;max-width:100%;white-space:nowrap}.party-chip span:first-child{color:#cf8c7e;font-size:12px}.party-chip b{font-size:10px;color:#654333}.party-chip i{font-style:normal;color:#c5a18a}.welcome-mascot-wrap{position:absolute;z-index:2;right:-1px;bottom:-19px;width:43%;height:178px;display:grid;place-items:end center}.welcome-mascot{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 5px #6e493020);animation:bob 4.5s ease-in-out infinite}.orbit{position:absolute;z-index:3;color:#d5a15b;animation:twinkle 2.8s ease-in-out infinite}.orbit-a{top:15px;left:8px;font-size:23px}.orbit-b{top:42px;right:13px;font-size:25px;color:#b87972}.section-title-row{display:flex;align-items:end;justify-content:space-between;margin:0 2px 10px}.section-title-row h2{font-size:20px;margin:0;line-height:1.25}.title-star{font-size:15px;color:#dfa94f}.game-total{font-size:9px;letter-spacing:1px;color:#b18b72;border:1px solid #e4c8b4;border-radius:20px;padding:5px 9px;background:#fff8f0}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start}.game-card{position:relative;min-width:0;min-height:226px;overflow:hidden;padding:0;text-align:left;border:1.5px solid #d7b69e;border-radius:19px;background:linear-gradient(180deg,#fffaf4,#f8e6d9);box-shadow:0 6px 13px #704a3917,inset 0 0 0 3px #fff8f0;color:var(--brown);transition:transform .2s,box-shadow .2s}.game-card:first-child{grid-column:1/-1;min-height:156px;display:flex;align-items:stretch}.game-card:active{transform:scale(.985)}.game-card:hover{transform:translateY(-3px);box-shadow:0 10px 18px #704a3922}.card-ribbon{position:absolute;z-index:4;top:9px;left:10px;padding:4px 8px;border-radius:20px;background:#e8b25e;color:#fffaf2;font-size:7px;font-weight:700;letter-spacing:1px;box-shadow:0 2px 4px #8a5e3022}.pink-ribbon{background:#cf8e8c}.blue-ribbon{background:#8ca9be}.card-art{position:relative;height:103px;margin:26px 9px 2px;border-radius:14px;overflow:hidden;display:grid;place-items:center}.king-card .card-art{width:43%;height:auto;min-height:125px;flex:0 0 43%;margin:15px 0 12px 10px}.king-art{background:radial-gradient(circle at 50% 55%,#a77a57,#684536 72%);box-shadow:inset 0 0 0 1px #f0c985}.king-art:before{content:'';position:absolute;inset:7px;border:1px solid #edc780;border-radius:10px}.playing-card{position:absolute;width:46px;height:65px;border:2px solid #f7d99d;border-radius:8px;background:#fff5e7;color:#6c4936;box-shadow:0 4px 8px #3e241d55;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:4px;font-family:Georgia,serif;font-weight:bold}.card-back-one{transform:rotate(-15deg) translate(-18px,1px);background:repeating-linear-gradient(45deg,#8c5d43,#8c5d43 4px,#a8754f 4px,#a8754f 8px);color:#f8d99b}.card-front{transform:rotate(10deg) translate(15px,-2px);font-size:20px}.card-front b{align-self:flex-end;font-size:19px}.art-glow{position:absolute;width:85px;height:85px;border-radius:50%;background:#f3c46d44;filter:blur(8px)}.art-star{position:absolute;color:#f9d68d}.star1{left:12px;top:17px}.star2{right:12px;bottom:15px}.king-art .star1{font-size:18px}.king-art .star2{font-size:24px}.game-card-copy{position:relative;z-index:2;display:flex;flex-direction:column;padding:8px 11px 12px;min-width:0}.king-card .game-card-copy{justify-content:center;padding:18px 12px 12px 13px;flex:1}.game-type{font-size:8px;letter-spacing:.7px;color:#a27b61;font-weight:700}.game-card-copy strong{font-family:'Mali',sans-serif;font-size:14px;line-height:1.3;letter-spacing:-.4px;margin-top:2px;white-space:nowrap}.king-card .game-card-copy strong{font-size:19px}.thai-name{font-size:11px;color:#8e6852;margin-top:1px}.game-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;font-size:8px;color:#987964}.card-arrow{position:absolute;right:10px;bottom:10px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#fff7ed;border:1px solid #e4c5ae;color:#9b6a4b;font-size:13px}.king-card .card-arrow{right:10px;top:10px;bottom:auto}.truth-art{background:linear-gradient(140deg,#f5d9d1,#e7b8ad)}.question-art{background:linear-gradient(140deg,#dbe6ec,#b9cedd)}.truth-bubble{position:absolute;padding:8px 12px;border:2px solid #fff9f0;border-radius:13px;background:#fff5e9;color:#8d5c50;font-size:14px;font-weight:700;box-shadow:0 4px 8px #78483b22}.truth-one{transform:rotate(-11deg) translate(-22px,-2px)}.truth-two{transform:rotate(10deg) translate(27px,10px);background:#865344;color:#fff3e8}.truth-dice{position:absolute;right:12px;top:9px;color:#fff4df;font-size:28px}.truth-art .star1{font-size:20px;left:9px;bottom:8px}.truth-art .star2{right:9px;top:9px;font-size:22px}.question-mark{font-family:Georgia,serif;font-size:72px;font-weight:bold;color:#fff8ed;text-shadow:3px 4px 0 #8ba6b8,5px 7px 0 #6f8da2;transform:rotate(-9deg)}.question-card-mini{position:absolute;right:15px;bottom:10px;width:37px;height:48px;border:2px solid #fff9ef;border-radius:7px;background:#fff4e8;color:#6c5143;font-family:Georgia,serif;font-size:22px;display:flex;align-items:center;justify-content:center;gap:2px;transform:rotate(12deg);box-shadow:0 4px 8px #526c7d33}.question-card-mini span{color:#d8877c}.speech-dot{position:absolute;top:9px;left:11px;padding:4px 8px;border-radius:12px;background:#fff8ef;color:#86a1b4;font-size:10px;letter-spacing:2px}.question-art .star1{right:11px;top:8px}.question-art .star2{left:14px;bottom:10px}.random-game-button{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:58px;margin-top:13px;padding:8px 14px;border:1.5px solid #d9aa69;border-radius:17px;background:linear-gradient(105deg,#fff5e6,#f5dfc9);color:#704a39;box-shadow:0 4px 0 #e3c3a5,0 7px 14px #79533b13;text-align:left;transition:transform .2s}.random-game-button:active{transform:translateY(2px);box-shadow:0 2px 0 #e3c3a5}.random-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;background:#80583f;color:#ffdc91;font-size:24px;box-shadow:inset 0 1px 2px #ffffff55}.random-game-button b{display:block;font-size:13px}.random-game-button small{display:block;font-size:9px;color:#a17c64;margin-top:1px}.random-arrow{margin-left:auto;color:#d7a14d;font-size:23px}.random-game-button.spinning .random-icon{animation:spin .8s ease-in-out}.games-footnote{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:auto;padding-top:11px;color:#98745e;font-size:9px}.games-footnote span{color:#c18d70}
/* detail */.detail-screen{padding:14px 20px}.detail-hero{position:relative;min-height:225px;margin:13px 0 15px;border:1.5px solid #d8b69d;border-radius:23px;background:linear-gradient(145deg,#fff8ed,#f1d9c6);box-shadow:inset 0 0 0 4px #fff9f1;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}.detail-art{position:absolute;inset:0;opacity:.95}.king-detail-art{background:radial-gradient(circle at 50% 38%,#b48a5d,#674537 74%)}.truth-detail-art{background:radial-gradient(circle at 50% 40%,#f1c9c1,#d89c93)}.question-detail-art{background:radial-gradient(circle at 50% 40%,#e1edf1,#9bb6c8)}.detail-art:before{content:'✦   ♛   ✦';position:absolute;inset:20px;display:grid;place-items:start center;color:#f6d58e;font-size:34px;letter-spacing:22px;opacity:.8}.detail-heading{position:relative;z-index:1;text-align:center;padding-top:82px;color:#fff8ef;text-shadow:0 2px 6px #39231c55}.detail-heading .eyebrow{color:#f9dba7}.detail-heading h2{font-size:27px;margin:3px 0 0;letter-spacing:.5px}.detail-heading p{font-size:14px;margin:0}.detail-info{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-stat{padding:12px;border:1px solid #e5c9b5;border-radius:15px;background:#fffaf4;display:grid;grid-template-columns:25px 1fr;align-items:center;column-gap:5px}.detail-stat span{grid-row:span 2;color:#c18a54;font-size:20px}.detail-stat b{font-size:12px}.detail-stat small{font-size:9px;color:#a48773}.detail-description{padding:15px 5px;font-size:12px;line-height:1.8;color:#85634e}.detail-player-strip{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border:1px solid #e6cdbb;border-radius:15px;background:#fff9f2;margin-top:2px}.detail-player-strip div{display:flex;flex-direction:column;gap:3px}.detail-player-strip b{font-size:12px}.detail-player-strip small{font-size:9px;color:#9b7b65;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-player-strip button{border:0;border-radius:12px;background:#f2dfd0;color:#80583f;padding:6px 11px;font-size:10px}.launch-button{width:100%;min-height:57px;margin-top:15px;font-size:17px}.launch-button span{color:#ffd16d;margin-left:8px}.coming-note{text-align:center;color:#a88972;font-size:10px;margin:12px 0}.settings-dialog{width:min(88%,350px);border:2px solid #b8896c;border-radius:22px;background:#fff7ee;color:var(--brown);text-align:center;padding:23px;box-shadow:0 18px 60px #38231d55}.settings-dialog::backdrop{background:#38231d77;backdrop-filter:blur(4px)}.settings-dialog form{position:relative}.dialog-close{position:absolute;right:-10px;top:-15px;border:0;background:none;font-size:28px;color:#79513d}.dialog-crown{font-size:38px;color:#d9a348}.settings-dialog h2{margin:0 0 10px;font-size:22px}.toggle-row{display:flex;justify-content:space-between;padding:16px 3px;font-size:13px}.dialog-done{width:100%;padding:11px;border:0;border-radius:30px;background:#704a39;color:#fff4e8;font:inherit}.toast{position:absolute;z-index:30;bottom:20px;left:50%;transform:translate(-50%,12px);opacity:0;padding:9px 15px;border-radius:30px;background:#56392e;color:#fff7ed;font-size:11px;white-space:nowrap;transition:.2s;pointer-events:none;box-shadow:0 5px 14px #38231d33}.toast.show{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}@keyframes twinkle{0%,100%{opacity:.7;scale:.95}50%{opacity:1;scale:1.12}}@keyframes screenIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pop{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes spin{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.15)}100%{transform:rotate(360deg) scale(1)}}.reduce-motion *{animation:none!important;transition:none!important}
@media(max-height:760px){.app-shell{min-height:0}.screen{padding-top:9px;padding-bottom:9px}.brand img{max-height:190px}.home-hero{min-height:175px}.home-start{min-height:53px;margin-top:9px}.game-welcome{min-height:145px;margin:8px 0 12px}.welcome-mascot-wrap{height:158px}.game-card{min-height:205px}.game-card:first-child{min-height:143px}.card-art{height:91px}.king-card .card-art{min-height:112px}.games-footnote{padding-top:7px}.players-bottom{padding-top:5px}}
@media(max-width:370px){.screen{padding-left:14px;padding-right:14px}.game-welcome-copy{padding-left:12px;width:67%}.game-welcome h1{font-size:22px}.welcome-mascot-wrap{width:39%;right:-3px}.game-grid{gap:7px}.game-card{min-height:204px}.game-card-copy{padding-left:8px;padding-right:8px}.game-card-copy strong{font-size:12px}.king-card .game-card-copy strong{font-size:17px}.game-meta{gap:4px;font-size:7px}.card-art{margin-left:7px;margin-right:7px}}
@media(min-width:600px){.app-shell{height:900px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
