:root{--matchi-ink:#27464b;--matchi-muted:#62746f;--matchi-accent:#087f82;--matchi-border:#cddbcf;--matchi-metal-gold:#f2c96b;--matchi-metal-pearl:#fffaf0;--matchi-pastel-mint:#c8f2e9;--matchi-pastel-lilac:#e9e1ff;--matchi-pastel-peach:#ffd9cb;--matchi-card:linear-gradient(135deg,#e6faf3e8,#fff4dce8 48%,#f3e4ffd9);--matchi-teal:linear-gradient(180deg,#e4fff6 0%,#b7efe2 46%,#83d7c8 100%);--matchi-coral:linear-gradient(180deg,#fff0d9 0%,#ffd8c8 48%,#edae9d 100%);--matchi-shadow:0 10px 24px #28574b20,0 2px 0 #ffffffb8 inset;}
*{box-sizing:border-box;}
html,body{margin:0;min-height:100%;font-family:Estedad,Tahoma,sans-serif;color:var(--matchi-ink);}
body{background:#edf1e6;}
button,input{font:inherit;}
button{cursor:pointer;}
#matchiPreview{min-height:100dvh;}
.preview-stage{min-height:100dvh;display:block;padding:0;direction:rtl;}
.device-stage{display:flex;align-items:center;justify-content:center;min-width:0;}
.phone-frame{width:100%;max-width:900px;height:100dvh;margin:auto;overflow:hidden;border:0;border-radius:0;background:#f2f3e9;}
.phone-app{height:100%;display:flex;flex-direction:column;overflow:hidden;background:#f2f3e9;}
.app-logo img{display:block;width:100%;height:100%;object-fit:contain;}
.phone-content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:8px 16px 24px;background:linear-gradient(#f2f3e970,#f2f3e970),url("/static/brand/entry-background.webp") center center/cover no-repeat;}
.phone-content::-webkit-scrollbar{display:none;}
.app-page{min-height:100%;animation:screen-in .18s ease;}
.app-page[hidden]{display:none!important;}
.matchi-panel{padding:16px;background:var(--matchi-card);border:1px solid #ffffffc7;border-radius:22px;box-shadow:var(--matchi-shadow),0 0 0 1px #d4c38a33 inset;backdrop-filter:blur(12px);animation:entry-card-in .42s cubic-bezier(.2,.8,.2,1) both;}
.history-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--matchi-border);border-radius:17px;background:#edf3e7;}
.history-tabs button{flex:1;min-height:39px;border:0;border-radius:13px;background:transparent;color:var(--matchi-muted);font-size:12px;font-weight:800;}
.history-tabs button.selected{background:linear-gradient(100deg,#beeee5,#91d7cd);color:var(--matchi-ink);box-shadow:0 5px 14px #05beea30;}
.auth-form{display:grid;gap:10px;margin-top:14px;}
.auth-form[hidden]{display:none!important;}
.auth-form label,.settings-form>label{display:grid;gap:5px;color:var(--matchi-ink);font-size:11px;font-weight:800;}
.auth-form input,.settings-form input,.chat-compose input{height:44px;width:100%;border:1px solid var(--matchi-border);border-radius:14px;padding:0 12px;background:#fff;color:var(--matchi-ink);outline:none;}
.auth-form input:focus,.settings-form input:focus{border-color:#91d7cd;box-shadow:0 0 0 3px #05beea20;}
.matchi-action{width:100%;min-height:48px;padding:10px 14px;border:1px solid #ffffffd1;border-bottom:3px solid #65afa6;border-radius:16px;background:var(--matchi-teal);box-shadow:inset 0 1px 0 #fff9,0 4px 9px #438e7d18;color:#164f4d;font-size:15px;font-weight:700;}
.pink-action{background:var(--matchi-coral);border-color:#e7bca9;border-bottom-color:#dca58e;color:#783d30;box-shadow:inset 0 1px 0 #fff9,0 4px 9px #b5786414;}
.page-title-row,.screen-heading,.question-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.page-title-row{margin:9px 2px 14px;}
.page-title-row h1,.screen-heading h1{margin:0;font-size:18px;font-weight:750;}
.back-button{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:0;background:transparent;padding:0;}
.back-button img{width:33px;height:33px;object-fit:contain;}
.small-action,.friend-row>button{border:0;border-radius:13px;padding:7px 17px;background:linear-gradient(100deg,#beeee5,#91d7cd);color:var(--matchi-ink);font-size:11px;font-weight:750;}
.compact-leaderboard h2,.settings-list h2{margin:0 0 10px;font-size:14px;}
.screen-heading{height:48px;margin:1px 0 10px;}
.screen-heading h1{flex:1;text-align:center;}
.form-step{margin:11px 2px 8px;font-size:14px;font-weight:750;}
.settings-form{display:grid;gap:9px;padding:11px;}
.lobby-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.lobby-panel-head h2{margin:0;font-size:13px;}
.lobby-panel-head b{color:var(--matchi-accent);font-size:11px;}
.matchi-action+.leave-link{margin-top:8px;}
.leave-link{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:37px;border:0;border-radius:14px;background:transparent;color:#d94370;font-size:11px;font-weight:850;}
.leave-link img{width:29px;height:29px;object-fit:contain;}
.question-toolbar{height:42px;margin:0 0 8px;padding:0 6px;font-size:11px;font-weight:900;color:#173c58;}
.game-leave-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:54px;height:28px;padding:3px 7px;border:1px solid rgba(202,90,121,.3);border-radius:10px;background:linear-gradient(135deg,#fff8faeF,#ffe4ecdf);color:#a2385a;font-size:9px;line-height:1;font-weight:900;white-space:nowrap;box-shadow:0 3px 9px rgba(188,82,113,.15),inset 0 1px 0 #fff;}
.question-timer{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;min-width:48px;padding:6px 10px;border:1px solid #f1c76b;border-radius:14px;background:linear-gradient(135deg,#fff8d6,#ffe8b3);color:#8a5310;font-size:12px;font-weight:950;font-variant-numeric:tabular-nums;box-shadow:0 4px 12px #d8872730;transition:color .2s,background .2s,box-shadow .2s,transform .2s;}.question-timer::after{content:"";position:absolute;inset:-3px;border:2px solid #f3bb4b;border-radius:16px;opacity:0;z-index:-1;animation:timer-ring 2.4s ease-out infinite;}.question-timer.timer-urgent{color:#fff;background:linear-gradient(135deg,#ff9a52,#ef4f66);border-color:#ffbe79;box-shadow:0 0 0 2px #ff75544a,0 0 18px #ef4f6680;animation:timer-pulse .8s ease-in-out infinite alternate;}.question-timer.timer-critical{background:linear-gradient(135deg,#ff5d67,#c92755);box-shadow:0 0 0 3px #ff596b44,0 0 23px #f3396999;}.question-timer.timer-urgent::after{border-color:#ff7181;animation-duration:1s;}@keyframes timer-ring{0%{transform:scale(.92);opacity:.55}100%{transform:scale(1.42);opacity:0}}@keyframes timer-pulse{from{transform:scale(1)}to{transform:scale(1.07)}}
.question-timer img{width:29px;height:29px;object-fit:contain;}
.question-progress{height:8px;border-radius:99px;background:#ffffffa8;border:1px solid #ffffffbb;overflow:hidden;margin-bottom:14px;box-shadow:inset 0 1px 3px #2d61722a;}
.question-progress i{display:block;height:100%;background:linear-gradient(90deg,#0eabb4,#47d6c0 52%,#f3b449);border-radius:99px;box-shadow:0 0 10px #19c9c080;}
.question-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.picture-option{position:relative;min-width:0;overflow:hidden;padding:5px;border:2px solid #ffffffc9;border-radius:18px;background:linear-gradient(145deg,#fffdf7,#e5f8f4 54%,#eee6ff);color:var(--matchi-ink);box-shadow:0 7px 16px #315f6420,inset 0 1px 0 #fff;}
.picture-option img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:13px;}
.picture-option span{position:absolute;bottom:9px;left:9px;min-width:25px;height:25px;display:grid;place-items:center;border-radius:9px;background:#fff;color:var(--matchi-accent);font-size:11px;font-weight:750;box-shadow:0 3px 8px #101c4b28;}
.picture-option.selected{border:3px solid #d79a81;box-shadow:0 0 0 2px #f234a52e;}.picture-option.answer-correct{border-color:#14b87a;box-shadow:0 0 0 3px #16c78455,0 0 22px #10b97880;animation:answer-pop .42s ease-out;}.picture-option.answer-incorrect{border-color:#eb4960;box-shadow:0 0 0 3px #ef496055,0 0 22px #ef496080;animation:answer-shake .36s ease-out;}.answer-feedback{margin:5px 0 10px;padding:10px 13px;border:1px solid;border-radius:14px;text-align:center;font-size:13px;font-weight:950;box-shadow:0 5px 14px #315f6420;animation:answer-pop .35s ease-out;}.answer-feedback[hidden]{display:none;}.answer-feedback.is-correct{color:#08784f;background:linear-gradient(120deg,#e1fff1,#c2f8df);border-color:#35c88e;}.answer-feedback.is-incorrect{color:#a92643;background:linear-gradient(120deg,#fff0f1,#ffd7dd);border-color:#f07a89;}.stats-answer-feedback{margin:6px 0;}.stats-options .picture-option.player-selected{outline:3px solid #3448cc;outline-offset:1px;}@keyframes answer-pop{0%{transform:scale(.96);filter:brightness(1.25)}100%{transform:scale(1);filter:brightness(1)}}@keyframes answer-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media(prefers-reduced-motion:reduce){.question-timer,.question-timer::after,.picture-option.answer-correct,.picture-option.answer-incorrect,.answer-feedback{animation:none!important;transition:none!important;}}
.stats-options .picture-option span{right:7px;left:auto;top:7px;bottom:auto;min-width:41px;background:#fffffff0;}
.stats-options .picture-option.correct{border-color:#20b981;}
.stats-options .picture-option.correct span{background:#20b981;color:white;}
.my-rank{display:flex;align-items:center;gap:8px;padding:9px;margin:8px 0;}
.my-rank>img{width:50px;height:50px;object-fit:contain;border-radius:0;}
.my-rank>div{display:grid;gap:2px;}
.my-rank small{font-size:9px;color:var(--matchi-muted);}
.my-rank b{font-size:12px;}
.my-rank strong{margin-right:auto;color:var(--matchi-accent);font-size:12px;}
.my-rank strong small{display:inline;}
.compact-leaderboard{margin:10px 0;padding:11px;}
.leader-row{height:41px;display:flex;align-items:center;gap:7px;border-top:1px solid var(--matchi-border);font-size:10px;}
.leader-row img{width:35px;height:35px;object-fit:contain;border-radius:0;}
.leader-row i{width:22px;height:22px;display:grid;place-items:center;border-radius:8px;background:#f0f3fa;color:var(--matchi-muted);font-style:normal;font-weight:750;}
.leader-row i.gold{background:#ffe278;color:#725500;}
.leader-row b{flex:1;}
.leader-row strong{color:var(--matchi-accent);}
.leader-row.you{background:#f7e0d5;border-radius:10px;padding:0 5px;}
.result-head{display:grid;justify-items:center;text-align:center;padding:18px 14px 12px;border:1px solid #f0c86e99;border-radius:24px 24px 14px 14px;background:linear-gradient(145deg,#fff8dbeF,#ffe9c7d9 55%,#f7d8e9d9);box-shadow:0 12px 26px #9b63302b,inset 0 1px 0 #fff;}
.result-head img{width:82px;height:82px;object-fit:contain;filter:drop-shadow(0 7px 8px #a56b2f38);}
.result-head h1{margin:6px 0 2px;font-size:21px;font-weight:900;color:#70401e;}
.result-head p{margin:0;color:#8b6247;font-size:12px;font-weight:750;}
.result-score{text-align:center;padding:16px 14px;margin-top:10px;border:1px solid #b6ddd5;background:linear-gradient(145deg,#effffcE8,#fff7f0E8);box-shadow:0 9px 22px #39756c22;}
.result-score>b{display:block;margin:2px 0 4px;font-size:15px;color:#315665;}
.result-score>strong{display:block;color:#079b98;font-size:32px;font-weight:950;text-shadow:0 3px 0 #fff;}
.result-score>small{font-size:10px;color:#66827e;font-weight:750;}
.result-score>p{margin:8px 0 0;color:#8b6b64;font-size:12px;font-weight:800;}
.result-score .league-card-reward{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;margin-top:12px;padding:9px 8px;border:1px solid #e4c98e;border-radius:15px;background:#fff8e6c9;color:#6f5228;font-size:11px;font-weight:850;}
.result-score .league-card-reward>b{width:100%;font-size:11px;color:#93651f;}
.result-score .league-card-reward .reward-part{display:inline-flex;align-items:center;gap:4px;}
.result-score .league-card-reward img{width:24px;height:24px;object-fit:contain;}
.profile-card{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:64px;padding:8px 10px;background:linear-gradient(135deg,#fff1dfeb,#f0e8ffdf 54%,#ddf8f0e5);border-color:#ffffffd4;box-shadow:0 10px 22px #694f7a20,0 0 0 1px #e7c56b35 inset;}
.profile-title{display:grid;gap:5px;min-width:0;}
.profile-title b{font-size:14px;font-weight:900;}
.profile-title small{font-size:10px;color:var(--matchi-muted);}
.outline-action{display:flex;align-items:center;justify-content:center;gap:4px;margin-right:auto;border:1px solid var(--matchi-border);border-radius:12px;background:#fff;color:var(--matchi-accent);padding:7px 9px;font-size:10px;font-weight:850;}
.outline-action img{width:27px;height:27px;object-fit:contain;}
.profile-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0;}
.profile-stat-grid>.matchi-panel,.profile-stat-grid>div{display:grid;justify-items:center;gap:2px;padding:9px 3px;text-align:center;background:linear-gradient(145deg,#fff9eddf,#e4f8f1df 56%,#eee6ffdf);border-color:#ffffffc9;box-shadow:0 6px 14px #496a6d18,0 0 0 1px #e5c36b25 inset;}
.profile-stat-grid b{font-size:20px;color:var(--matchi-accent);font-weight:950;}
.profile-stat-grid small{font-size:9px;color:var(--matchi-muted);font-weight:700;}
.profile-xp-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:14px 16px;background:linear-gradient(110deg,#e0faf1e6,#fff4dbe8 52%,#f1e5ffdf);border-color:#ffffffd0;box-shadow:0 8px 18px #45696e1c,0 0 0 1px #e5c36b2d inset;}
.profile-xp-card b{font-size:16px;color:var(--matchi-accent);white-space:nowrap;}
.profile-xp-card p{margin:0;color:var(--matchi-muted);font-size:12px;text-align:left;}

.profile-links{display:grid;gap:4px;margin-top:8px;padding:6px;border:1px solid #ffffffd0;border-radius:20px;overflow:hidden;background:linear-gradient(145deg,#fff4dfeb,#e2f8f1e5 56%,#eee7ffdf);box-shadow:0 10px 20px #3b71652a,0 0 0 1px #e5c36b25 inset;}
.profile-links button,.profile-links button.outline-action{display:flex;align-items:center;gap:7px;min-height:38px;margin-right:0!important;padding:6px 10px;border:1px solid #ffffffb5;border-radius:14px;background:linear-gradient(100deg,#fff3d9e8,#fffdf8cc);text-align:right;color:var(--matchi-ink);font-size:11px;font-weight:800;box-shadow:0 3px 8px #427c6c10;}
.profile-links button:nth-child(odd){background:linear-gradient(100deg,#fff8e8e8,#fffdf8c8);box-shadow:0 4px 10px #b9784d18,inset 0 1px 0 #fff;}
.profile-links button:nth-child(even){background:linear-gradient(100deg,#e0faf3e8,#f8ffffc8);box-shadow:0 4px 10px #3b7d7418,inset 0 1px 0 #fff;}
.profile-links button>.profile-link-icon{width:24px;height:24px;object-fit:contain;flex:0 0 24px;filter:drop-shadow(0 3px 4px #376b6230);}
.profile-link-arrow{margin-right:auto;color:var(--matchi-accent);font-size:22px;line-height:1;font-weight:900;}
.profile-account-notice{margin:10px 0;padding:12px 14px;text-align:right;font-size:12px;line-height:1.9;}
.profile-verify-action{width:100%;min-height:42px;margin:8px 0 0;padding:8px 10px;font-size:11px;font-weight:850;line-height:1.7;white-space:normal;letter-spacing:0;}
.logout-button{margin-top:8px;}
.transaction-row{display:flex;align-items:center;gap:8px;min-height:40px;border-bottom:1px solid var(--matchi-border);font-size:10px;}
.transaction-row img{width:29px;height:29px;object-fit:contain;}
.transaction-row span{flex:1;}
.transaction-row b{color:#138e6a;}
.history-tabs{margin:8px 0 12px;}
.history-card{width:100%;display:grid;grid-template-columns:40px 1fr auto;grid-template-rows:1fr 1fr;align-items:center;gap:0 8px;margin:7px 0;padding:9px;text-align:right;border:1px solid var(--matchi-border);border-radius:16px;background:#ffffffd9;color:var(--matchi-ink);}
.history-entry{margin:7px 0}.history-entry .history-card{margin:0;cursor:pointer;font:inherit}.game-stats-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:5px 2px 9px;padding:10px;border:1px solid var(--matchi-border);border-radius:14px;background:#ffffffdc;box-shadow:inset 0 1px 0 #fff}.game-stats-panel[hidden]{display:none!important}.game-stat-item{display:grid;gap:3px;min-width:0;padding:6px 8px;border-radius:10px;background:#ffffffa3}.game-stat-item small{color:var(--matchi-muted);font-size:8px}.game-stat-item b{color:var(--matchi-ink);font-size:10px;overflow-wrap:anywhere}.popover-game-entry{display:grid;gap:4px}.popover-game-entry .popover-game{width:100%;text-align:right;color:var(--matchi-ink);font:inherit;cursor:pointer}.popover-game-entry .game-stats-panel{margin:0 1px 3px;padding:7px;gap:4px}.popover-game-entry .game-stat-item{padding:5px 6px}.popover-game-entry .game-stat-item small{font-size:7px}.popover-game-entry .game-stat-item b{font-size:9px}.history-info{display:grid;gap:2px;}
.history-info b{font-size:10px;}
.history-info small{font-size:8px;color:var(--matchi-muted);}
.history-card strong{grid-column:3;grid-row:1;font-size:9px;color:var(--matchi-accent);}
.history-card>i{grid-column:3;grid-row:2;font-size:9px;font-style:normal;font-weight:750;}
.friend-row,.message-row{display:flex;align-items:center;gap:8px;margin:7px 0;padding:8px;border:1px solid var(--matchi-border);border-radius:15px;background:#ffffffd9;}
.friend-row>img,.message-row>img{width:50px;height:50px;object-fit:contain;border-radius:0;background:transparent;}
.friend-row>div,.message-row>div{display:grid;gap:2px;flex:1;}
.friend-row b,.message-row b{font-size:11px;}
.friend-row small,.message-row small{font-size:8px;color:var(--matchi-muted);}
.friend-row>button{padding:6px 10px;font-size:9px;}
.public-player{text-align:center;}.profile-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.profile-stat-grid>.profile-stat-tile{min-width:0;display:grid;justify-items:center;gap:3px;padding:9px 4px;text-align:center;background:linear-gradient(145deg,#fff9eddf,#e4f8f1df 56%,#eee6ffdf);border:1px solid #ffffffc9;border-radius:15px;box-shadow:0 6px 14px #496a6d18,0 0 0 1px #e5c36b25 inset;}.profile-stat-tile b{font-size:18px;line-height:1.2;color:var(--matchi-accent);font-weight:950;}.profile-stat-tile small{font-size:8px;line-height:1.3;color:var(--matchi-muted);font-weight:750;}.public-profile-actions{display:flex;justify-content:center;gap:8px;width:100%;margin:10px auto 3px;}.public-profile-actions .profile-compact-action{width:auto;flex:1 1 0;max-width:142px;min-width:0;min-height:37px;padding:6px 7px;border:1px solid #ffffffd1;border-radius:13px;background:linear-gradient(110deg,#e3f9f2,#fff3df);color:var(--matchi-ink);font-size:10px;font-weight:850;box-shadow:0 4px 10px #486f6b20,inset 0 1px 0 #fff;}.public-profile-actions .profile-friend-request{background:linear-gradient(110deg,#e1f8ef,#c9efe3);}.public-profile-actions .profile-message-action{background:linear-gradient(110deg,#f4eafe,#e7ddf9);}.public-profile-actions button:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.65);}.profile-medals{margin-top:8px;padding:10px 12px;border:1px solid #ead7a8;border-radius:16px;background:linear-gradient(120deg,#fff7e6df,#f5edffdf);text-align:right;}.profile-medals h3{margin:0 0 5px;color:var(--matchi-ink);font-size:12px;font-weight:900;}.profile-medals p{margin:0;color:var(--matchi-muted);font-size:9px;}

.public-player h2{margin:5px 0 0;font-size:17px;}
.public-player>small{font-size:9px;color:var(--matchi-muted);}
.message-row{cursor:pointer;min-height:61px;}
.message-row time{font-size:8px;color:var(--matchi-muted);}
.chat-history{flex:1;min-height:290px;display:flex;flex-direction:column;gap:9px;padding:10px 1px;}
.chat-bubble{max-width:83%;padding:9px 11px;border-radius:15px;font-size:10px;}
.chat-bubble small{display:block;margin-top:3px;text-align:left;font-size:7px;opacity:.7;}
.chat-bubble.received{align-self:flex-start;background:#fff;border:1px solid var(--matchi-border);}
.chat-bubble.sent{align-self:flex-end;background:#d8eee5;}
.chat-compose{display:flex;gap:7px;padding:8px 0;}
.chat-compose input{flex:1;height:42px;}
.chat-compose button{width:43px;border:0;border-radius:14px;background:#91d7cd;}
.chat-compose img{width:32px;height:32px;object-fit:contain;}
.settings-list{padding:12px;}
.account-settings-form{display:grid;gap:12px;}
.account-settings-form>.form-step{margin:0;font-size:13px;text-align:right;}
.account-settings-form>input,.account-settings-form>select{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--matchi-border);border-radius:14px;background:#fff;color:var(--matchi-ink);font:inherit;font-size:13px;}
.account-settings-form .switch-row{font-size:12px;}
.account-settings-form>input:focus,.account-settings-form>select:focus{outline:2px solid #91d7cd;outline-offset:2px;}
.switch-row{min-height:48px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--matchi-border);font-size:10px;font-weight:750;}
.switch-row img{width:32px;height:32px;object-fit:contain;}
.switch-row span{flex:1;}
.switch-row input{accent-color:#91d7cd;width:18px;height:18px;}
@keyframes screen-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}

#appHeader[hidden]{display:none!important;}

.app-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:76px;height:60px;padding:0;border:0;background:transparent;}

.member-home[hidden],.guest-home[hidden]{display:none!important;}
.guest-room-panel{display:grid;gap:12px;}
.guest-room-panel label{display:grid;gap:6px;font-size:11px;font-weight:850;}
.guest-room-panel input{height:44px;border:1px solid var(--matchi-border);border-radius:14px;padding:0 12px;background:#fff;color:var(--matchi-ink);}
.message-row{width:100%;text-align:right;}
.is-entry .phone-content{position:relative;isolation:isolate;background:#f2f3e9 url('/static/brand/entry-background.webp') center center/cover no-repeat;padding:28px 22px calc(28px + env(safe-area-inset-bottom));}
#screen-login{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:22px;width:100%;max-width:400px;margin-inline:auto;padding:0;min-height:100%;font-family:Estedad,Tahoma,sans-serif;color:#243c43;}
#screen-login [hidden]{display:none!important;}
#screen-login .entry-brand{display:grid;justify-items:center;gap:8px;margin:0;text-align:center;animation:entry-card-in .5s cubic-bezier(.2,.8,.2,1) both}
#screen-login .entry-logo-halo{display:grid;place-items:center;width:190px;height:150px;}
#screen-login .entry-logo-halo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px #204f4b35);animation:entry-logo-float 2.8s ease-in-out infinite;}
#screen-login .entry-brand h1{margin:0;font-size:21px;line-height:1.7;font-weight:750;color:#27464b;}
#screen-login .auth-panel{position:relative;overflow:hidden;width:100%;padding:24px 22px;border:1px solid #f4deb39c;border-radius:28px;background:linear-gradient(135deg,#d9eee633 0%,#f8efdd33 50%,#f5d8cf33 100%);box-shadow:0 12px 35px #28574b20,inset 0 1px 0 #fff9,inset 0 -1px 0 #b7ccbb66;backdrop-filter:blur(12px);}
#screen-login .auth-panel::before{content:"";position:absolute;top:-35%;bottom:-35%;left:-38%;width:22%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,#ffffffa8,transparent);pointer-events:none;animation:entry-panel-shine 4.2s ease-in-out infinite}
@property --entry-angle{syntax:"<angle>";inherits:false;initial-value:0deg;}
#screen-login .auth-panel::after{content:"";position:absolute;inset:0;z-index:0;padding:1.5px;border-radius:inherit;pointer-events:none;background:conic-gradient(from var(--entry-angle),#56ddca8c 0deg,#a987ffb3 90deg,#ffc874a6 180deg,#68e5d5a6 250deg,#fff 266deg,#8bffea 273deg,#b89affb3 310deg,#56ddca8c 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;opacity:.76;filter:drop-shadow(0 0 3px #83e6dc88);animation:entry-panel-neon 8.5s linear infinite;}
#screen-login .entry-choice-stack,#screen-login .auth-form{position:relative;z-index:1}
#screen-login .entry-choice-stack{display:grid;gap:9px;}
#screen-login .entry-account-group{display:grid;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
#screen-login .entry-divider{width:58%;height:1px;margin:5px auto;border-radius:99px;background:linear-gradient(90deg,transparent,#83939a80,transparent);}
#screen-login .entry-account-group h2{margin:0 0 1px;font-size:14px;line-height:1.7;font-weight:750;color:#445a67;text-align:center;}
#screen-login .entry-existing-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:0;border:0;}
#screen-login .matchi-action{min-height:52px;padding:12px 16px;border:1px solid #69bdb5;border-bottom:3px solid #65afa6;border-radius:17px;background:linear-gradient(180deg,#beeee5,#91d7cd);color:#164f4d;font-size:16px;font-weight:750;box-shadow:inset 0 1px 0 #fff9,0 4px 9px #438e7d18;}
#screen-login .entry-secondary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:10px 12px;border:1px solid #bdcec4;border-bottom:3px solid #b0c9ba;border-radius:17px;background:linear-gradient(180deg,#f6f5e8,#e9eee0);color:#344e52;font-size:14px;font-weight:650;box-shadow:inset 0 1px 0 #fffc,0 3px 8px #28574b0c;}
#screen-login .entry-login-action{min-height:46px;padding:6px 12px;border-radius:14px;background:linear-gradient(110deg,#f6f1ff,#eee6fb,#f4efff);background-size:200% 100%;color:#5d4a75;font-size:15px;font-weight:750;animation:entry-button-energy 3.2s ease-in-out infinite alternate;}
#screen-login .entry-register-action{min-height:38px;padding:4px 10px;border-radius:14px;background:linear-gradient(110deg,#f1faf1,#e8f6e9,#f4fbf2);background-size:200% 100%;color:#48654b;font-size:14px;animation:entry-button-energy 3.6s ease-in-out infinite alternate;}
#screen-login .entry-guest-action{min-height:46px;padding:6px 12px;border-radius:17px;background:linear-gradient(110deg,#f1f8ff,#e7f3ff,#f5faff);background-size:190% 100%;color:#49647d;font-weight:800;line-height:1.55;animation:entry-button-energy 2.3s ease-in-out infinite alternate,entry-guest-pulse 2.2s ease-in-out infinite;}
#screen-login .entry-google{min-width:0;min-height:38px;padding:4px 10px;gap:7px;border-radius:14px;background:linear-gradient(110deg,#fff7ee,#fff0df,#fff9f1);background-size:200% 100%;color:#72583d;font-size:13px;font-weight:750;animation:entry-button-energy 3.4s ease-in-out infinite alternate;}
#screen-login .entry-google-logo{width:20px;height:20px;object-fit:contain;flex:0 0 20px;}
.is-entry .phone-content::before{content:"";position:absolute;inset:-5%;z-index:0;pointer-events:none;background:radial-gradient(circle at 18% 24%,#ffc857b0 0 3%,transparent 25%),radial-gradient(circle at 78% 70%,#59e1d680 0 8%,transparent 34%),radial-gradient(circle at 78% 22%,#ff6f9b66 0 4%,transparent 28%);filter:blur(12px);opacity:.65;animation:entry-atmosphere 5.8s ease-in-out infinite alternate}
#screen-login .entry-guest-action,#screen-login .entry-login-action,#screen-login .entry-google,#screen-login .entry-register-action{transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s ease,filter .18s ease,border-color .18s ease}
@media(hover:hover){#screen-login .entry-guest-action:hover,#screen-login .entry-login-action:hover,#screen-login .entry-google:hover,#screen-login .entry-register-action:hover{border-color:#70bdb0}}
@keyframes entry-atmosphere{0%{transform:translate3d(-4%,-2%,0) scale(.96);opacity:.38}100%{transform:translate3d(4%,3%,0) scale(1.08);opacity:.82}}
@keyframes entry-card-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes entry-logo-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1.5deg)}}
@keyframes entry-button-energy{0%{background-position:0% 50%;filter:saturate(.98)}100%{background-position:100% 50%;filter:saturate(1.2)}}
@keyframes entry-guest-pulse{0%,100%{box-shadow:inset 0 1px 0 #fff,0 5px 13px #789fc11a}50%{box-shadow:inset 0 1px 0 #fff,0 7px 20px #82b0dc3d}}
@keyframes entry-panel-neon{to{--entry-angle:360deg}}
@keyframes entry-panel-shine{0%,62%{left:-38%;opacity:0}72%{opacity:.8}100%{left:118%;opacity:0}}

#screen-login .auth-form{display:grid;gap:18px;margin:0;}
#screen-login .entry-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px;}
#screen-login .entry-form-heading h2{margin:0;font-size:21px;line-height:1.6;font-weight:750;color:#27464b;}
#screen-login .entry-form-heading button{min-height:44px;padding:8px 12px;border:1px solid #dce5df;border-radius:12px;background:#f3f6f0;color:#52686a;font-size:12px;font-weight:600;}
#screen-login .entry-form-intro{margin:0;font-size:13px;line-height:1.9;font-weight:450;color:#596b6b;}
#screen-login .auth-form label{display:grid;gap:8px;font-size:13px;font-weight:600;line-height:1.8;color:#3a5356;}
#screen-login .auth-form input{width:100%;height:52px;padding:0 14px;border:1px solid #cadad3;border-radius:13px;background:#fff;color:#243c43;font-size:16px;font-weight:450;line-height:normal;}
#screen-login .auth-form input::placeholder{color:#7e908d;opacity:1;font-size:13px;}
#screen-login .auth-form input:focus{border-color:#159d9e;box-shadow:0 0 0 3px #159d9e1c;outline:none;}
#screen-login input[type=email],#screen-login input[autocomplete=one-time-code]{direction:ltr;text-align:left;}
#screen-login input[autocomplete=one-time-code]{text-align:center;letter-spacing:4px;font-size:22px;}
#screen-login.entry-form-active{gap:20px;}
#screen-login.entry-form-active .entry-logo-halo{width:146px;height:114px;}
#screen-login.entry-form-active .entry-brand h1{font-size:18px;}
#screen-login button:focus-visible{outline:3px solid #087f82;outline-offset:3px;}
#screen-login .matchi-action:active,#screen-login .entry-secondary:active{transform:translateY(1px) scale(.985);filter:brightness(.98);}
@media(max-height:700px){.is-entry .phone-content{padding:20px 20px;}#screen-login{gap:18px;}#screen-login .entry-logo-halo{width:146px;height:114px;}#screen-login .auth-panel{padding:22px 20px;}#screen-login.entry-form-active .entry-logo-halo{width:108px;height:84px;}#screen-login .auth-form{gap:14px;}}
@media(min-width:600px){.is-entry .phone-content{padding:40px 24px;background-size:100% 100%;}#screen-login{max-width:420px;gap:26px;}#screen-login .auth-panel{padding:30px;}}
@media(prefers-reduced-motion:reduce){#screen-login,.is-entry .phone-content::before,#screen-login .auth-panel::before,#screen-login .auth-panel::after,#screen-login .entry-brand,#screen-login .entry-logo-halo img,#screen-login .entry-guest-action,#screen-login .entry-login-action,#screen-login .entry-google,#screen-login .entry-register-action{animation:none!important;transition:none!important;}}




.home-announcement[hidden]{display:none!important;}
.home-announcement{background:rgba(255,255,255,.28);border-color:rgba(116,196,221,.28);box-shadow:0 3px 12px rgba(26,164,204,.055);backdrop-filter:blur(2px);}
.home-announcement-text{font-size:14px;font-weight:750;background:linear-gradient(90deg,#087fae 0%,#fa258f 28%,#6842e8 52%,#00a9c7 76%,#fa258f 100%);background-size:260% auto;filter:drop-shadow(0 1px 3px rgba(210,39,143,.32));animation:announcement-shine 2.1s linear infinite,announcement-pop 1.45s ease-in-out infinite;}
@keyframes announcement-pop{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
.announcement-spark{color:#e79522;font-size:20px;filter:drop-shadow(0 0 3px rgba(235,166,40,.3));}
@media(prefers-reduced-motion:reduce){.home-announcement-text,.announcement-spark,.weekly-leaderboard::before,.weekly-leaderboard::after,.weekly-countdown,.podium-item::before,.podium-gold,.podium-silver,.podium-bronze{animation:none!important;filter:none!important;}}
/* Home weekly standings */
@property --weekly-frame-angle{syntax:"<angle>";inherits:false;initial-value:0deg;}
.weekly-leaderboard{position:relative;isolation:isolate;overflow:visible;margin:0 -12px 10px;padding:7px;border:1.5px solid transparent;border-radius:20px;background:linear-gradient(125deg,#fffdf1f5,#eafafff2 48%,#f6edfff5) padding-box,linear-gradient(135deg,#fff1b2,#ffe09a,#e4e9ff,#f3d4b5) border-box;box-shadow:0 0 10px #ffd34c66,0 0 24px #ac72ff45,0 6px 18px #55527820,inset 0 1px 0 #fff}
.weekly-leaderboard::before{content:"";position:absolute;inset:0;padding:2px;border-radius:inherit;background:conic-gradient(from var(--weekly-frame-angle),transparent 0deg 278deg,#fff5bb 296deg,#ffd044 314deg,#ff7cc0 330deg,#8df4e5 346deg,transparent 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.95;filter:drop-shadow(0 0 4px #ffd24f99) drop-shadow(0 0 8px #e678d566);pointer-events:none;z-index:0;animation:weekly-frame-orbit 13s linear infinite}
.weekly-leaderboard::after{content:"";position:absolute;inset:1px;border-radius:19px;background:linear-gradient(112deg,transparent 36%,#ffffff00 43%,#ffffff80 50%,#ffffff00 57%,transparent 64%);transform:translateX(-115%);pointer-events:none;z-index:0;animation:weekly-card-glimmer 8s ease-in-out infinite}
.weekly-leaderboard>*{position:relative;z-index:1}
@keyframes weekly-frame-orbit{to{--weekly-frame-angle:360deg}}
@keyframes weekly-card-glimmer{0%,28%{transform:translateX(-115%)}72%,100%{transform:translateX(115%)}}
@keyframes weekly-countdown-motion{0%,100%{filter:drop-shadow(0 0 1px #ffc83d88);transform:translateY(0)}50%{filter:drop-shadow(0 0 7px #ffc83ddd);transform:translateY(-1px)}}
.weekly-leaderboard-head{display:grid;grid-template-columns:1fr;align-items:start;gap:2px;margin:0 0 4px}
.weekly-leaderboard-head h2{margin:0;font-size:13px;line-height:1.3;font-weight:850;color:#254f49;text-shadow:0 1px #fff,0 0 8px #ffe28d77}
.weekly-countdown{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:2px 5px;width:fit-content;max-width:100%;margin-inline:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#66470c;text-align:center;font-size:clamp(12px,3.7vw,15px);line-height:1.5;font-weight:950;white-space:normal;letter-spacing:0;word-spacing:0;direction:rtl;unicode-bidi:isolate;text-shadow:0 0 2px #ffe49a,0 0 7px #ffc83d88;animation:weekly-countdown-motion 2.4s ease-in-out infinite}.weekly-countdown-part{display:inline-flex;align-items:baseline;gap:2px;white-space:nowrap}.weekly-countdown-value{display:inline-block;direction:ltr;unicode-bidi:isolate;letter-spacing:0;word-spacing:0;font-variant-numeric:normal}.weekly-countdown-join,.weekly-countdown-unit,.weekly-countdown-tail{white-space:nowrap}
.leaderboard-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 10px minmax(0,1fr);gap:4px;align-items:stretch;margin-top:14px}
.podium-item{position:relative;isolation:isolate;overflow:visible;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:68px;gap:2px;padding:12px 2px 4px;border:1px solid #e4e8e0;border-radius:12px;background:#f4f8f4;text-align:center;--podium-glow:#b8d4c7;animation:podium-pulse 3.6s ease-in-out infinite}
.podium-item::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:0;pointer-events:none;background:linear-gradient(112deg,transparent 35%,#ffffff00 45%,#ffffffb8 50%,transparent 57%);background-size:220% 100%;animation:podium-shine 5.4s ease-in-out infinite}
.podium-item>*:not(.podium-rank-badge){position:relative;z-index:1}.podium-rank-badge{position:absolute;top:-12px;left:50%;z-index:3;transform:translateX(-50%);display:grid;place-items:center;width:max-content;min-width:22px;max-width:56px;height:22px;padding:0 4px;box-sizing:border-box;white-space:nowrap;border:2px solid #cbd5c9;border-radius:999px;font-size:8px;line-height:1;font-weight:950;box-shadow:0 2px 6px #24332344,inset 0 1px 0 #ffffffcf}.podium-gold .podium-rank-badge{background:linear-gradient(145deg,#fff9d9,#f7d66f 55%,#ffefad);border-color:#d6aa22;color:#725109}.podium-silver .podium-rank-badge{background:linear-gradient(145deg,#ffffff,#dce8fa 55%,#b9cbe6);border-color:#aebfda;color:#526680}.podium-bronze .podium-rank-badge{background:linear-gradient(145deg,#fff0df,#e6b28b 58%,#f5d2af);border-color:#cf8b5d;color:#784222}.podium-self .podium-rank-badge{background:linear-gradient(145deg,#f0fff7,#ccefe0 58%,#e3fff2);border-color:#77bb9c;color:#185d4c}
@keyframes podium-shine{0%,24%{background-position:180% 0}76%,100%{background-position:-80% 0}}
@keyframes podium-pulse{0%,100%{filter:drop-shadow(0 0 1px var(--podium-glow))}50%{filter:drop-shadow(0 0 5px var(--podium-glow))}}
.podium-name{display:block;width:100%;min-width:0;min-height:14px;margin:0;padding:0;border:0;background:transparent;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit;font-size:clamp(9px,2.8vw,10px);line-height:1.2;font-weight:850;color:#183f35;text-shadow:0 1px #ffffffbd;cursor:pointer}.podium-name:focus-visible{outline:2px solid #427b63;outline-offset:1px;border-radius:4px}.podium-name.is-expanded{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;min-height:0;padding:2px 3px;border-radius:6px;background:#fffdf1;color:#183f35;box-shadow:0 1px 5px #283c3244}
.podium-points,.podium-prize{display:block;max-width:100%;font-size:8px;line-height:10px;font-weight:850;white-space:nowrap;color:#294d40;unicode-bidi:isolate;text-shadow:0 1px #ffffffa8}
.podium-prize{font-size:8px;font-weight:950;color:#573b0d}
.podium-gold{--podium-glow:#ffd450;background:linear-gradient(145deg,#fff9d9,#f7d66f 55%,#ffefad);border-color:#e1b936;box-shadow:inset 0 1px 5px #fffbd9,0 0 8px #ffdb5c99,0 4px 12px #d59c2c52;animation-delay:0s}
.podium-silver{--podium-glow:#d9e8ff;background:linear-gradient(145deg,#ffffff,#dce8fa 55%,#b9cbe6);border-color:#aebfda;box-shadow:inset 0 1px 5px #fff,0 0 8px #b9d3ffbd,0 4px 12px #778bab55;animation-delay:.45s}
.podium-bronze{--podium-glow:#f0a36c;background:linear-gradient(145deg,#fff0df,#e6b28b 58%,#f5d2af);border-color:#cf8b5d;box-shadow:inset 0 1px 5px #fff3e7,0 0 8px #f5ad7bcc,0 4px 12px #ae694655;animation-delay:.9s}
.podium-self{--podium-glow:#66d8a7;background:linear-gradient(145deg,#f0fff7,#ccefe0 58%,#e3fff2);border-color:#77bb9c;box-shadow:inset 0 1px 5px #fff,0 0 8px #65d8a277,0 4px 12px #3b946144;animation-delay:1.35s}
.podium-self-points{display:block;max-width:100%;font-size:8px;line-height:10px;font-weight:900;white-space:nowrap;color:#215d4e;text-shadow:0 1px #fff}
.leaderboard-gap{align-self:center;text-align:center;color:#879487;font-size:16px;line-height:1;font-weight:800}
.podium-self-label{font-size:10px;color:#52796b}
.podium-self-space{height:18px}
.league-card-reward{display:grid;gap:6px;order:1;min-width:0;color:var(--matchi-ink);}
.league-card-reward small{font-size:11px;color:var(--matchi-muted);font-weight:800;}
.league-card-reward em{display:flex;align-items:center;font-size:12px;line-height:1.55;font-style:normal;font-weight:800;}
.league-card-reward .reward-part{display:flex;align-items:center;gap:7px;min-width:0;}
.league-card-reward .reward-part>span{white-space:normal;overflow-wrap:break-word;}
.league-card-reward .reward-icon{width:22px;height:22px;object-fit:contain;flex:0 0 22px;}
.private-create-intro{display:grid;gap:4px;margin:3px 3px 10px;color:var(--matchi-ink);}
.private-create-intro b{font-size:14px;}
.private-create-intro small{font-size:10px;color:var(--matchi-muted);}
.private-settings{padding:10px;}
.room-create-cost{display:flex;align-items:center;gap:6px;margin-top:10px;padding:9px;border-radius:12px;background:#fff1f8;color:var(--matchi-ink);font-size:10px;font-weight:850;}
.room-create-cost img{width:25px;height:25px;object-fit:contain;}
.room-create-cost span{flex:1;}
.room-create-cost b{font-size:11px;}
#screen-question{height:calc(100% - 82px);min-height:0;overflow:visible;display:grid;grid-template-rows:34px 6px minmax(80px,24vh) auto minmax(160px,1fr) 14px;gap:8px;}
#screen-question .question-toolbar{grid-row:1;position:sticky;top:82px;z-index:31;height:auto;margin:0;border-radius:12px;background:var(--matchi-card);backdrop-filter:blur(8px);}
#screen-question .question-progress{grid-row:2;margin:0;}
#screen-question .quiz-handwritten-question{grid-row:3;height:100%;max-height:170px;margin:0;align-self:center;}
#screen-question .answer-feedback{grid-row:4;margin:0;}
#screen-question .quiz-handwritten-options{grid-row:5;height:100%;grid-template-rows:repeat(2,minmax(0,1fr));margin:0;}
#screen-question .quiz-handwritten-option{height:100%;aspect-ratio:auto;}
#screen-question .question-foot{grid-row:6;margin:0;}
#screen-question .live-submit-answer{height:48px;min-height:48px;margin:0;}
.quiz-handwritten-question{display:block;width:100%;height:clamp(92px,22vw,145px);margin:0 0 10px;padding:8px;box-sizing:border-box;object-fit:contain;object-position:center;border:2px solid #ffffffd9;border-radius:22px;background:linear-gradient(145deg,#fffdf5eF,#e7f6f3e8);box-shadow:0 10px 24px #2e68722b,inset 0 1px 0 #fff;overflow:hidden;}
.quiz-handwritten-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px;}
.quiz-handwritten-option{position:relative;min-height:0;aspect-ratio:1/0.72;border:2px solid #ffffffd4;border-radius:20px;background:linear-gradient(145deg,#fffdf8f2,#e7f4f1e8);box-shadow:0 8px 18px #315c6530,inset 0 1px 0 #fff;overflow:hidden;transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;}
.quiz-handwritten-option:nth-child(4n+1){background:linear-gradient(145deg,#fff6dcf5,#ffe6b8e8);}
.quiz-handwritten-option:nth-child(4n+2){background:linear-gradient(145deg,#e8f8fff5,#cfeff7e8);}
.quiz-handwritten-option:nth-child(4n+3){background:linear-gradient(145deg,#f5eafff5,#e6d8ffe8);}
.quiz-handwritten-option:nth-child(4n){background:linear-gradient(145deg,#e8fff2f5,#c9f0dce8);}
.quiz-handwritten-option:active{transform:translateY(2px) scale(.99);box-shadow:0 4px 10px #315c6530;}
.quiz-handwritten-option.selected{border-color:#f19d36;box-shadow:0 0 0 3px #f1b34a55,0 9px 20px #bf702c38;}
.quiz-handwritten-option img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;border-radius:10px;}
.quiz-handwritten-option span{font-size:10px;font-weight:850;}
@media(min-width:769px){
 #screen-question{height:auto;min-height:calc(100% - 82px);grid-template-rows:34px 6px auto auto auto 14px;gap:8px;}
 #screen-question .quiz-handwritten-question{height:auto;max-height:none;align-self:start;}
 #screen-question .quiz-handwritten-options{height:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;margin:0;}
 #screen-question .quiz-handwritten-option{height:auto;aspect-ratio:380/274;}
}
.question-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 2px 9px;color:var(--matchi-muted);font-size:10px;font-weight:850;}
.question-foot span{display:flex;align-items:center;gap:3px;}
.question-foot img{width:22px;height:22px;object-fit:contain;}
.waiting-game-card{margin:0 0 10px;padding:12px 13px;border:1px solid var(--matchi-border);border-radius:18px;background:#ffffffdc;box-shadow:0 7px 18px #12205512;}
.waiting-game-card .lobby-countdown-prominent{display:flex;align-items:baseline;justify-content:center;gap:6px;color:var(--matchi-ink);}
.waiting-game-card .lobby-countdown-prominent b{font-size:24px;line-height:1.1;}
.waiting-game-card .lobby-countdown-prominent span{font-size:10px;font-weight:850;}
.waiting-game-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
.waiting-game-metrics>div{display:grid;justify-items:center;gap:3px;padding:7px 4px;border-radius:12px;background:#edf3e7;color:var(--matchi-muted);font-size:9px;}
.waiting-game-metrics b{display:flex;align-items:center;gap:3px;color:var(--matchi-ink);font-size:11px;}
.waiting-game-metrics img{width:20px;height:20px;object-fit:contain;}
.waiting-players-card{padding:11px;margin:0 0 10px;}
.waiting-player-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
.waiting-player{display:grid;justify-items:center;gap:2px;padding:6px 2px;border-radius:12px;background:#edf3e7;color:var(--matchi-ink);font-size:10px;}
.waiting-player .player-level-badge{transform:scale(.72);transform-origin:center top;height:28px;}
.screen-heading.centered-lobby-heading{margin-bottom:8px;}
.screen-heading.centered-lobby-heading h1{font-size:16px;}
.waiting-game-card+.waiting-players-card+.matchi-action{margin-top:2px;min-height:46px;font-size:12px;}
#screen-publicLobby{height:100%;}
.public-confirm-page{display:grid;place-items:center;width:100%;height:100%;min-height:0;padding:0;box-sizing:border-box;}
.public-room-confirm-card{position:relative;isolation:isolate;flex:0 1 auto;width:min(100%,560px);height:calc(100% - 60px);max-height:none;aspect-ratio:auto;transform:translateY(-25px);min-height:0;overflow:hidden;box-sizing:border-box;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--matchi-ink);text-align:center;}
.public-room-frame-image{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none;}
.public-room-frame-content{position:absolute;z-index:1;inset:12% 11% 12%;display:flex;flex-direction:column;min-width:0;min-height:0;}
.public-room-frame-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 5px;}
.public-room-confirm-card h1{position:relative;top:20px;margin:2px 0 26px;color:#253d78;font-size:20px;line-height:1.3;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.95),0 0 8px rgba(255,255,255,.7);}
.public-room-confirm-card[data-hall-level="4"] h1,.public-room-confirm-card[data-hall-level="5"] h1{top:30px;margin-bottom:36px;}
.public-room-confirm-card[data-hall-level="2"] h1,.public-room-confirm-card[data-hall-level="3"] h1{top:30px;margin-bottom:36px;}
.public-room-confirm-card .public-room-countdown{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;margin:0 auto 10px;padding:5px 10px;border:1px solid color-mix(in srgb,var(--hall-edge,#3d9f90) 42%,white);border-radius:13px;background:linear-gradient(135deg,color-mix(in srgb,var(--hall-start,#dff7f1) 78%,white),var(--hall-end,#8dd8ca));color:var(--hall-ink,#205c53);box-shadow:0 3px 10px var(--hall-glow,rgba(42,153,139,.3)),inset 0 1px 0 #fff;animation:hall-countdown-pulse 2.2s ease-in-out infinite;}
.public-room-confirm-card .public-room-countdown b{font-size:23px;line-height:1;font-weight:950;font-variant-numeric:tabular-nums;letter-spacing:.03em;color:var(--hall-ink,#205c53);text-shadow:0 1px 0 #fff,0 0 6px var(--hall-glow,rgba(42,153,139,.3));}
.public-room-confirm-card .public-room-countdown span{font-size:9px;font-weight:900;white-space:nowrap;}
.public-room-confirm-card .public-room-countdown.is-expired{gap:4px;padding:5px 9px;border-color:var(--hall-edge,#3d9f90);background:linear-gradient(135deg,color-mix(in srgb,var(--hall-start,#dff7f1) 78%,white),var(--hall-end,#8dd8ca));color:var(--hall-ink,#205c53);box-shadow:0 3px 10px var(--hall-glow,rgba(42,153,139,.3)),inset 0 1px 0 #fff;}
.public-room-confirm-card .public-room-countdown.is-expired b{font-size:10px;letter-spacing:0;white-space:nowrap;flex:0 0 auto;}
@keyframes hall-countdown-pulse{0%,100%{transform:scale(1);box-shadow:0 3px 10px var(--hall-glow,rgba(42,153,139,.3)),inset 0 1px 0 #fff}50%{transform:scale(1.015);box-shadow:0 5px 13px var(--hall-glow,rgba(42,153,139,.4)),0 0 0 2px color-mix(in srgb,var(--hall-edge,#3d9f90) 18%,transparent),inset 0 1px 0 #fff}}
.public-room-confirm-card .public-room-prizes{position:relative;left:-10px;width:min(100%,320px);box-sizing:border-box;margin:9px auto 0;padding:0 2px;border:0;border-radius:0;background:transparent;text-align:right;box-shadow:none;}
.public-room-confirm-card .public-room-prizes h2{margin:0 0 3px;padding-inline:4px;color:var(--matchi-ink);text-align:right;font-size:13px;line-height:1.35;font-weight:900;direction:rtl;}
.public-room-prize-list{display:grid;gap:0;width:100%;min-width:0;}
.public-room-confirm-card .hall-prize-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#174d56;font-size:11px;line-height:1.25;font-weight:800;}
.public-room-confirm-card .hall-prize-row.prize-coin{border:0;background:transparent;}
.public-room-confirm-card .hall-prize-amount{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;}
.public-room-confirm-card .hall-prize-icon{width:25px;height:25px;object-fit:contain;}
.public-room-confirm-card .hall-prize-label{min-width:0;overflow-wrap:anywhere;}
.public-room-confirm-card .hall-prize-value{white-space:nowrap;font-size:11px;font-weight:900;}
.public-room-confirm-card .prize-calculation{margin-top:2px;border-top:0;padding-top:0;font-size:9px;line-height:1.4;background:transparent;}
.public-room-confirm-card .prize-calculation summary{cursor:pointer;color:#176d76;font-size:9px;font-weight:900;text-align:center;list-style:none;}
.public-room-confirm-card .prize-calculation summary::-webkit-details-marker{display:none;}
.public-room-confirm-card .prize-calculation summary::after{content:'⌄';padding-inline-start:5px;}
.public-room-confirm-card .prize-calculation[open] summary::after{content:'⌃';}
.public-room-confirm-card .hall-prize-ranks{display:grid;gap:2px;padding:4px 0;}
.public-room-confirm-card .hall-prize-rank-row{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:4px;padding:2px 4px;border-radius:8px;background:transparent;}
.public-room-confirm-card .hall-prize-rank{color:#255779;font-size:9px;white-space:nowrap;}
.public-room-confirm-card .hall-prize-rank-awards{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px;min-width:0;}
.public-room-confirm-card .reward-part{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-size:9px;}
.public-room-confirm-card .reward-icon{width:22px;height:22px;min-width:22px;max-width:22px;min-height:22px;max-height:22px;object-fit:contain;display:inline-block;flex:0 0 22px;}
#screen-publicLobby .public-room-confirm-card[data-hall-level="0"]{--hall-start:#dff7f1;--hall-end:#8dd8ca;--hall-edge:#3d9f90;--hall-glow:rgba(42,153,139,.3);--hall-ink:#205c53;}
#screen-publicLobby .public-room-confirm-card[data-hall-level="1"]{--hall-start:#ffebe8;--hall-end:#eca19a;--hall-edge:#c2635d;--hall-glow:rgba(194,99,93,.3);--hall-ink:#704447;}
#screen-publicLobby .public-room-confirm-card[data-hall-level="2"]{--hall-start:#e8f5ff;--hall-end:#91c5eb;--hall-edge:#4c8cbd;--hall-glow:rgba(76,140,189,.3);--hall-ink:#315a79;}
#screen-publicLobby .public-room-confirm-card[data-hall-level="3"]{--hall-start:#f2f4f7;--hall-end:#bbc5d1;--hall-edge:#7e8b9b;--hall-glow:rgba(126,139,155,.3);--hall-ink:#465667;}
#screen-publicLobby .public-room-confirm-card[data-hall-level="4"]{--hall-start:#eff8e2;--hall-end:#b2d28a;--hall-edge:#749c4e;--hall-glow:rgba(116,156,78,.3);--hall-ink:#46613b;}
#screen-publicLobby .public-room-confirm-card[data-hall-level="5"]{--hall-start:#fff0fb;--hall-end:#e3b0d6;--hall-edge:#b878a6;--hall-glow:rgba(184,120,166,.3);--hall-ink:#70466a;}
.public-entry-actions{display:flex;justify-content:center;align-items:center;gap:6px;flex:0 0 auto;width:100%;margin-top:-4px;box-sizing:border-box;transform:translateY(-25px);}
.public-entry-actions.single-entry{justify-content:center;}
.public-entry-actions>.public-pay-entry{position:relative;isolation:isolate;display:flex;flex:0 0 clamp(100px,29vw,116px);flex-direction:row;direction:rtl;align-items:center;justify-content:center;gap:4px;width:clamp(100px,29vw,116px);min-width:clamp(100px,29vw,116px);max-width:clamp(100px,29vw,116px);height:44px;min-height:44px;max-height:44px;box-sizing:border-box;margin:0;padding:3px 4px 4px;border:2px solid color-mix(in srgb,var(--hall-edge,#3d9f90) 58%,white);border-bottom:4px solid var(--hall-edge,#3d9f90);border-radius:16px;background-image:linear-gradient(115deg,rgba(255,255,255,.55),transparent 42%,rgba(255,255,255,.18)),linear-gradient(110deg,var(--hall-start,#dff7f1),color-mix(in srgb,var(--hall-end,#8dd8ca) 76%,white),var(--hall-end,#8dd8ca),color-mix(in srgb,var(--hall-start,#dff7f1) 70%,var(--hall-edge,#3d9f90)),var(--hall-start,#dff7f1));background-size:100% 100%,260% 260%;background-position:0 0,0% 50%;color:var(--hall-ink,#205c53);font-size:9px;line-height:1.05;font-weight:950;white-space:normal;text-shadow:0 1px 0 rgba(255,255,255,.85);box-shadow:0 4px 0 color-mix(in srgb,var(--hall-edge,#3d9f90) 88%,#263244),0 7px 15px var(--hall-glow,rgba(42,153,139,.38)),inset 0 2px 0 rgba(255,255,255,.9),inset 0 -2px 5px color-mix(in srgb,var(--hall-edge,#3d9f90) 24%,transparent);animation:hall-entry-color-flow 3.1s ease-in-out infinite,hall-entry-glow 2.5s ease-in-out infinite;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;}
.public-entry-actions>.public-pay-entry:hover{transform:translateY(-3px) scale(1.025);filter:brightness(1.08) saturate(1.12);box-shadow:0 5px 0 color-mix(in srgb,var(--hall-edge,#3d9f90) 88%,#263244),0 11px 23px var(--hall-glow,rgba(42,153,139,.48)),0 0 0 3px color-mix(in srgb,var(--hall-edge,#3d9f90) 22%,transparent),inset 0 2px 0 #fff;}
.public-entry-actions>.public-pay-entry:active{transform:translateY(2px) scale(.985);filter:brightness(1.04);box-shadow:0 1px 3px var(--hall-glow,rgba(42,153,139,.3)),inset 0 2px 4px rgba(0,0,0,.12);}
@keyframes hall-entry-color-flow{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
@keyframes hall-entry-glow{0%,100%{filter:saturate(1);box-shadow:0 3px 0 var(--hall-edge,#3d9f90),0 6px 12px var(--hall-glow,rgba(42,153,139,.3)),inset 0 1px 0 #fff}50%{filter:saturate(1.12);box-shadow:0 3px 0 var(--hall-edge,#3d9f90),0 8px 17px var(--hall-glow,rgba(42,153,139,.42)),0 0 0 2px color-mix(in srgb,var(--hall-edge,#3d9f90) 18%,transparent),inset 0 1px 0 #fff}}
.public-entry-actions>.public-pay-entry.ticket-entry-action{background-image:linear-gradient(115deg,rgba(255,255,255,.55),transparent 42%,rgba(255,255,255,.18)),linear-gradient(140deg,#fff,var(--hall-start,#dff7f1) 45%,var(--hall-end,#8dd8ca),var(--hall-start,#dff7f1));}
.public-entry-actions>.public-pay-entry:disabled{opacity:1;filter:saturate(.86);}
.public-entry-actions .entry-action-icon{position:relative;z-index:1;width:25px;height:25px;flex:0 0 25px;box-sizing:border-box;padding:0;object-fit:contain;border:0;border-radius:0;background:transparent;filter:drop-shadow(0 2px 3px var(--hall-glow,rgba(42,153,139,.4)));}.public-entry-actions .ticket-entry-action .entry-action-icon{border-radius:0;transform:none;}
@media(max-width:359px){.public-room-frame-content{inset:14% 12% 13%;}.public-room-confirm-card h1{font-size:16px}.public-room-confirm-card .public-room-prizes{padding:0 2px}.public-entry-actions{gap:0}.public-entry-actions>.public-pay-entry{font-size:8px;line-height:1;height:44px;min-height:44px;max-height:44px;width:clamp(100px,29vw,116px);min-width:clamp(100px,29vw,116px);max-width:clamp(100px,29vw,116px)}}
@media(prefers-reduced-motion:reduce){.public-room-confirm-card .public-room-countdown,.public-entry-actions>.public-pay-entry{animation:none!important;transition:none!important}}


.header-score{display:grid;justify-items:center;gap:1px;line-height:1;}
.header-score b{font-size:13px;font-weight:650;white-space:nowrap;unicode-bidi:isolate;}
.header-score small{font-size:10px;font-weight:500;color:var(--matchi-muted);white-space:nowrap;}

.user-chip{direction:rtl;position:relative;width:54px!important;height:54px!important;padding:0!important;border:3px solid transparent!important;border-radius:50%!important;background:linear-gradient(transparent,transparent) padding-box,linear-gradient(135deg,#20c7eb,#f34eae) border-box!important;box-shadow:0 2px 6px rgba(32,199,235,.18),0 2px 6px rgba(243,78,174,.16)!important;display:grid;place-items:center;box-sizing:border-box;overflow:visible!important;}
.user-chip::before{content:"";position:absolute;inset:0;border-radius:50%;padding:3px;background:linear-gradient(135deg,#20c7eb,#f34eae);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;}
.user-chip img{position:relative;z-index:1;display:block;width:36px;height:36px;object-fit:contain;}
.user-chip .player-level-badge{position:relative;display:grid;place-items:center;width:44px;height:48px;}
.user-chip .level-circle{display:grid;place-items:center;width:36px;height:36px;margin-top:12px;border:2px solid var(--level-color);border-radius:50%;background:var(--level-fill);box-sizing:border-box;}
.user-chip .level-circle img{width:30px;height:30px;object-fit:contain;}

.invite-code-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;margin:10px 0;border:1px solid var(--matchi-border);border-radius:16px;background:#fff;color:var(--matchi-ink);}
.invite-code-card small{font-size:12px;font-weight:800;}
.invite-code-card b{font-size:18px;letter-spacing:2px;unicode-bidi:isolate;}
.private-settings label{gap:7px;font-size:12px;}
.private-settings select{width:100%;min-height:44px;border:1px solid var(--matchi-border);border-radius:14px;padding:8px 10px;background:#fff;color:var(--matchi-ink);font:inherit;}
.private-settings>.matchi-action{margin-top:12px;}
.screen-heading>.back-button{width:auto;min-width:54px;font-size:12px;color:var(--matchi-accent);}
.account-empty{font-size:13px;line-height:1.9;text-align:center;}
.friend-search-form{display:flex;gap:8px;margin:12px 0;}
.friend-search-form input{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--matchi-border);border-radius:12px;background:#fff;}
.profile-links button{font:inherit;}
.private-settings input[type=number]{direction:ltr;text-align:right;}
.is-entry .bottom-nav,.is-entry .mobile-nav-trigger{display:none}
.economy-hero{position:relative;padding:18px 20px;margin:16px 0 16px;border:1px solid #ffffffd0;border-radius:24px;background:linear-gradient(135deg,#e2faf1eb,#fff1ddeb 52%,#eee6ffdf);color:var(--matchi-ink);overflow:hidden;box-shadow:0 10px 22px #496a6d20,0 0 0 1px #e5c36b2d inset;}
.economy-hero h2{font-size:24px;line-height:1.5;margin:6px 0}
.economy-hero + .matchi-action + .outline-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:0 0 12px;padding:9px 14px;border:1px solid #ffffffd0;border-radius:14px;background:linear-gradient(100deg,#fff8e8e8,#f0fbf8df);color:var(--matchi-accent);font-size:12px;font-weight:800;box-shadow:0 5px 12px #496a6d16,inset 0 1px 0 #fff;}
.transaction-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:64px;margin:7px 0;padding:9px 11px;border:1px solid #ffffffc4;border-radius:15px;background:linear-gradient(100deg,#fff8e8d9,#e6f8f1d9 56%,#f0e8ffcf);font-size:12px;box-shadow:0 5px 12px #496a6d14,inset 0 1px 0 #fff;}
.transaction-row small{font-size:9px;}

.economy-tabs{display:flex;gap:6px;padding:5px;border:1px solid #ffffffc8;border-radius:17px;margin-bottom:16px;background:linear-gradient(120deg,#fff5e4df,#e6f8f1df 55%,#eee7ffdf);box-shadow:0 6px 14px #496a6d16,inset 0 1px 0 #fff}
.economy-tab{flex:1;border:0;min-height:44px;border-radius:12px;background:transparent;color:var(--matchi-muted);font-weight:800}
.economy-tab.selected{background:linear-gradient(180deg,#fffef8,#f4fbf8);color:var(--matchi-ink);box-shadow:0 4px 10px #4d5b6d1f,inset 0 1px 0 #fff,0 0 0 1px #e7c56b38}
.economy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.economy-card{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;text-align:center;padding:10px 7px;background:linear-gradient(145deg,#fffaf0f2,#eefbf7ed 56%,#f2ebffed);border:1px solid #ffffffd4;border-radius:17px;box-shadow:0 5px 12px #354f5d18,inset 0 1px 0 #fff}
.economy-art{width:100%;height:66px;object-fit:contain;display:block}
.economy-pack-amount{font-size:12px;line-height:1.7;font-weight:700;color:var(--matchi-ink)}
.economy-card .matchi-action{margin-top:auto;min-height:44px;border-radius:11px;font-size:11px;line-height:1.6;padding:6px 3px}
.economy-wheel-link{width:100%;min-height:52px;border:1px solid #e7bca9;border-bottom:3px solid #dca58e;border-radius:16px;margin:20px 0;background:var(--matchi-coral);color:#783d30;font-weight:700;}
.inventory-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:4px 2px 13px}
.inventory-section-heading h2{margin:0;font-size:15px;font-weight:750}
.inventory-section-heading>small{font-size:11px;line-height:1.8;color:#526b66}
.inventory-count{display:flex;align-items:baseline;justify-content:center;gap:5px;padding:2px 9px;border:1px solid #cce0dc;border-radius:11px;background:linear-gradient(180deg,#fcfffd,#e5f5ee);color:#315d54;margin:3px 0 5px}
.inventory-count b{font-size:14px;font-weight:750;line-height:1.5;unicode-bidi:isolate}
.inventory-count span{font-size:11px}
.inventory-card-empty .inventory-count{background:#f1f0f4;border-color:#dedbe3;color:#786d83}
.inventory-card-empty .economy-art{filter:saturate(.7);opacity:.8}
.inventory-shop-link{display:block;width:100%;min-height:46px;margin:18px 0 4px;border:1px solid #c9ded7;border-radius:15px;background:linear-gradient(120deg,#fff8e8eb,#eefcf7e8);color:#386f63;font-size:13px;font-weight:700;box-shadow:inset 0 1px 0 #fff,0 5px 13px #496a6d14}
.inventory-result-anchor .economy-result{margin:16px 0 0;background:linear-gradient(145deg,#f2fffaef,#fff8e9ed 55%,#eee8ffed);border-color:#ffffffd9;box-shadow:0 8px 20px #496a6d1c,inset 0 1px 0 #fff}
.inventory-boost{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:6px 0 0;padding:11px 13px;border:1px solid #e2c786;border-radius:14px;background:linear-gradient(120deg,#fff4d4,#f8e8ff);font-size:12px}
.inventory-boost b{font-weight:700;color:#74592b}
.economy-result{display:grid;justify-items:center;padding:22px;margin:16px 0;background:#f1fbf7;border:1px solid #a5dac3;border-radius:20px;color:#164d39;text-align:center}
.economy-result img{height:100px;width:140px}
.economy-result b{font-size:20px}
.economy-result p{font-size:14px}
.wheel-stage{position:relative;width:100%;max-width:460px;aspect-ratio:1;margin:28px auto 20px;direction:ltr;isolation:isolate}
.wheel-stage:before{content:"";position:absolute;inset:5%;border-radius:50%;box-shadow:0 0 45px #754de83b;background:#233466}
.wheel-rotor{position:absolute;inset:0;border-radius:50%;overflow:hidden}
.wheel-stage.is-spinning .wheel-rotor{will-change:transform}
.wheel-stage.is-spinning::before{animation:wheel-glow 1.2s ease-in-out infinite}
@keyframes wheel-glow{0%,100%{box-shadow:0 0 28px #754de850}50%{box-shadow:0 0 44px #f7c65380}}
.wheel-disc{width:100%;height:100%;object-fit:contain;display:block;clip-path:circle(48.5% at 50% 50%)}
.wheel-hub{position:absolute;width:27%;height:27%;left:36.5%;top:36.5%;object-fit:contain;clip-path:circle(47% at 50% 50%);z-index:3;pointer-events:none}
.wheel-pointer{position:absolute;width:16%;height:23%;left:42%;top:-8%;object-fit:contain;z-index:4;pointer-events:none}
.wheel-prize{position:absolute;transform:translate(-50%,-50%);width:13%;height:13%;display:grid;place-items:center}
.wheel-prize img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #17204499)}
.wheel-spin{max-width:460px;display:block;margin:0 auto;border-color:#e9c274;border-bottom-color:#b78b40;background:linear-gradient(180deg,#fff8ce,#f8dc8b 48%,#e5b761);color:#5a3c23;box-shadow:inset 0 1px 0 #fff,0 5px 13px #8b653329;transition:transform .16s ease,box-shadow .16s ease}
.wheel-spin:not(:disabled):hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 #fff,0 7px 17px #8b653335}
.wheel-status{min-height:22px;margin:9px 0 0;text-align:center;font-size:12px;line-height:1.8;font-weight:650;color:#596168}
.wheel-status[hidden]{display:none}
.wheel-disclosure{max-width:520px;margin:14px auto;padding:10px 13px;border:1px solid #ffffffcf;border-radius:14px;background:#fffaf0ed;font-size:12px;line-height:1.9;color:#4f6664;text-align:center}
.wheel-probabilities{max-width:600px;margin:16px auto;padding:6px 14px 10px;border:1px solid #ffffffd9;border-radius:22px;background:linear-gradient(140deg,#fff9edF7,#f1fbf8f7 55%,#eee7fff7);box-shadow:0 8px 20px #496a6d1c,inset 0 1px 0 #fff}
.wheel-probabilities summary{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;list-style:none;cursor:pointer;color:var(--matchi-ink);font-weight:750;font-size:14px}
.wheel-probabilities summary::-webkit-details-marker{display:none}
.wheel-probabilities summary::before{content:"";width:8px;height:8px;border-inline-end:2px solid #867495;border-bottom:2px solid #867495;transform:rotate(45deg);transition:transform .16s ease}
.wheel-probabilities[open] summary::before{transform:rotate(225deg)}
.wheel-probabilities summary small{margin-inline-start:auto;font-size:11px;font-weight:650;color:#78648d;white-space:nowrap}
.wheel-odds-row{display:grid;grid-template-columns:44px minmax(0,1fr) 62px;align-items:center;gap:10px;min-height:62px;padding:9px 0;border-top:1px solid #bdcdd25c;font-size:13px}
.wheel-odds-row img{width:42px;height:38px;object-fit:contain;filter:drop-shadow(0 2px 2px #354f5d20)}
.wheel-odds-copy{display:grid;gap:3px;min-width:0}
.wheel-odds-copy strong{font-size:13px;font-weight:650}
.wheel-odds-copy small{font-size:11px;color:#62746f}
.wheel-odds-row>b{padding:5px 4px;border:1px solid #d7cbed;border-radius:11px;background:linear-gradient(180deg,#fffaff,#ece3fc);color:#65448c;font-size:13px;font-weight:750;text-align:center;unicode-bidi:isolate;white-space:nowrap}
#screen-wheel .economy-result{max-width:520px;margin:16px auto;background:linear-gradient(145deg,#f2fffaef,#fff8e9ed 55%,#eee8ffed);border-color:#ffffffd9;box-shadow:0 8px 20px #496a6d1c,inset 0 1px 0 #fff}
.economy-result-label{font-size:12px;font-weight:650;color:#507667}
.economy-result .small-action{min-height:44px;margin-top:12px;font-size:12px}
.transaction-row>div{display:grid;gap:4px;min-width:0}.transaction-icon{width:31px;height:31px;object-fit:contain;filter:drop-shadow(0 3px 4px #376b6230)}.wallet-action-icon{width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 2px 3px #376b6230)}
.transaction-row small{font-size:10px;color:var(--matchi-muted)}
.transaction-row .credit{color:#166345}
.transaction-row .debit{color:#8f3456}
button:focus-visible,summary:focus-visible{outline:3px solid #187cb3;outline-offset:3px}
button:disabled{cursor:default;opacity:.7}.economy-card .matchi-action:disabled{border-color:#d9ddd7;border-bottom-color:#bfc8c2;background:linear-gradient(180deg,#f4f6f3,#dfe5e1);color:#78827d;box-shadow:inset 0 1px 0 #fff,0 2px 0 #bfc8c2}
@media(min-width:600px){.economy-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.economy-card{max-width:240px;width:100%;justify-self:center}
.economy-art{height:82px}



.economy-hero h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){.app-page,.preview-nav,.wheel-stage.is-spinning::before{animation:none;transition:none}.wheel-spin,.wheel-probabilities summary::before{transition:none}}
.shop-balance{display:flex;align-items:center;gap:9px;min-height:58px;margin:4px 0 16px;padding:9px 13px;border:1px solid #ffffffcf;border-radius:18px;background:linear-gradient(120deg,#fff5e4e8,#e3f8f1e8 58%,#eee6ffe0);box-shadow:0 7px 16px #496a6d18,inset 0 1px 0 #fff;color:var(--matchi-muted);font-size:13px}
.shop-balance img{width:28px;height:28px}
.shop-balance b{margin-inline-start:auto;color:var(--matchi-ink);font-size:17px}
.shop-signin{margin-inline-start:auto;border:1px solid var(--matchi-border);border-radius:12px;background:#fff;color:var(--matchi-ink);min-height:44px;padding:8px 20px;font-weight:800}

.account-logout-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--matchi-border);border-radius:24px;background:#fff;color:var(--matchi-ink);box-shadow:0 18px 60px #15204b40;direction:rtl;text-align:right}
.account-logout-dialog::backdrop{background:#18254b80}
.account-logout-dialog h2{margin:0 0 12px;font-size:20px}
.account-logout-dialog p{margin:0 0 20px;line-height:2;font-size:15px}
.account-logout-actions{display:grid;gap:12px}
.account-logout-actions button{width:100%;min-height:48px;margin:0;font:inherit}
.account-logout-actions .leave-link{font-size:14px;background:#fff0f4}

/* Canonical home artwork: plaques are the actual card surfaces. */
.is-home .phone-content{background:linear-gradient(#f1f5e84d,#eaf1e45c),url('/static/brand/entry-background.webp') center/cover no-repeat;padding-bottom:24px}
.home-friends{display:flex;direction:rtl;align-items:center;gap:10px;margin:0 0 16px;padding:9px;border:1px solid #ffffff75;border-radius:18px;background:linear-gradient(110deg,#effff27a,#f3e9ff73);box-shadow:0 4px 12px #3658690c,inset 0 1px #ffffff80}
.home-friends>.home-create-button{flex:0 0 38%;min-width:0;min-height:44px;padding:6px;border:1px solid #ffffff9c;border-bottom:3px solid #67a898;border-radius:12px;background:linear-gradient(#effff5d9,#ade5ceb8);color:#225b4e;font-size:12px;font-weight:800;line-height:1.55;box-shadow:inset 0 1px #ffffffb3,0 2px 5px #386c5b0b}
.home-private-join{display:flex;flex:1 1 auto;min-width:0;align-items:center;gap:6px;flex-wrap:wrap}
.home-private-join>label{flex:0 0 auto;color:#365a4d;font-size:11px;font-weight:850;white-space:nowrap}
.home-private-join>input{flex:1 1 82px;min-width:70px;width:100%;height:38px;padding:0 6px;border:1px solid #bdcec0;border-radius:10px;background:#ffffffba;color:var(--matchi-ink);font-size:12px;text-align:center}
.home-private-join>.matchi-action{flex:0 0 auto;min-height:38px;width:auto;margin:0;padding:6px 9px;border-radius:10px;font-size:11px}
.home-private-join .home-invite-feedback{flex-basis:100%;margin:0;font-size:11px;color:#98502f}
.home-section-state{font-size:12px;color:#465e50;line-height:1.8;margin:8px 0}
.home-section-state:empty,.home-section-state[hidden]{display:none}
.home-section-state button{min-height:44px;border:1px solid #b9cebd;background:#fffdf7;color:#315f4d;border-radius:10px;margin:5px;padding:6px 12px;font:inherit}
#screen-home .home-leagues{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#screen-home .home-hall-title{position:relative;margin:20px 0 12px;padding:8px 12px;text-align:center;font-size:clamp(16px,5vw,23px);font-weight:900;line-height:1.6;color:#315c67;text-shadow:0 1px 0 #fff,0 2px 5px #46c8b977}
#screen-home .home-hall-title::after{content:"";display:block;width:62%;height:2px;margin:3px auto 0;border-radius:99px;background:linear-gradient(90deg,#58cbbb55,#8a72cc,#e8bb5f,#58cbbb55);box-shadow:0 0 7px #63cbbb66;animation:home-title-glow 3.2s ease-in-out infinite}
@keyframes home-title-glow{0%,100%{opacity:.65;filter:brightness(.95)}50%{opacity:1;filter:brightness(1.15)}}
#screen-home .league-card-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 6px;padding:0 0 16px;margin-inline:-12px;align-items:stretch}
#screen-home .league-card{--hall-glow:#48d8bd99;--hall-top:#e7fff5;--hall-bottom:#93e0c9;--hall-edge:#489c8c;position:relative;display:block;aspect-ratio:1/1;width:100%;max-width:none;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#234b52;text-align:center}
#screen-home .league-card[hidden]{display:none}
#screen-home .league-card:nth-child(2){--hall-glow:#ee686899;--hall-top:#fff0ef;--hall-bottom:#f1a8a4;--hall-edge:#c94e4b}
#screen-home .league-card:nth-child(3){--hall-glow:#71c8f399;--hall-top:#effbff;--hall-bottom:#b4e3fb;--hall-edge:#649bc5}
#screen-home .league-card:nth-child(4){--hall-glow:#8b98a999;--hall-top:#f5f6f8;--hall-bottom:#c8ced7;--hall-edge:#929ca9}
#screen-home .league-card:nth-child(5){--hall-glow:#7bcf5799;--hall-top:#efffe6;--hall-bottom:#a9d784;--hall-edge:#679743}
#screen-home .league-card:nth-child(6){--hall-glow:#e47bd399;--hall-top:#fff0fd;--hall-bottom:#f2c3e9;--hall-edge:#bf81b0}
#screen-home .league-card-heading{position:absolute;inset:0;height:auto;aspect-ratio:auto;isolation:isolate}
#screen-home .league-card-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;filter:drop-shadow(0 0 4px var(--hall-glow)) drop-shadow(0 5px 5px #29586140);animation:hall-frame-glow 3s ease-in-out infinite;z-index:0}
#screen-home .league-card-titles{position:absolute;z-index:1;top:calc(15% + 10px);left:8%;right:8%;display:grid;place-items:center}
#screen-home .league-card:nth-child(-n+2) .league-card-titles{top:calc(15% + 5px)}
#screen-home .league-card strong{font-size:clamp(16px,5vw,20px);font-weight:900;line-height:1.25;color:#243e54;text-shadow:0 0 4px #fff,0 0 9px var(--hall-glow),0 2px 3px #fff9}
#screen-home .league-card-content{position:absolute;z-index:2;left:8%;right:8%;bottom:calc(7% + 20px);display:flex;justify-content:center;min-width:0;margin:0;padding:0}
#screen-home .league-card-reward-label{position:absolute;z-index:1;top:calc(35% + 10px);left:3%;right:3%;color:#244651;font-size:11px;font-weight:900;line-height:1.2;text-align:center;white-space:nowrap;text-shadow:0 0 6px var(--hall-glow),0 1px 2px #fff}
#screen-home .league-card-reward{order:0;position:absolute;z-index:1;top:calc(48% + 5px);left:3%;right:3%;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;margin:0;padding:0;min-width:0;line-height:1.15;color:#244651;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none}
#screen-home .league-card-reward em{font-size:13px;font-style:normal;font-weight:900}
#screen-home .league-card-reward .reward-part{display:flex;align-items:center;gap:2px;min-height:20px;padding:0;border:0;background:transparent;direction:rtl}
#screen-home .league-card-reward .reward-part:has(.reward-icon[src*="/coin.png"]){gap:0px}
#screen-home .league-card-reward .reward-part>span{order:0;font-size:13px;font-weight:900;line-height:1.15;white-space:nowrap;color:#214756;text-shadow:0 1px 2px #fff,0 0 5px #fff}
#screen-home .league-card-reward .reward-icon{order:1;width:22px;height:22px;flex:0 0 22px;object-fit:contain;filter:drop-shadow(0 0 3px var(--hall-glow));animation:hall-reward-glow 2.6s ease-in-out infinite}
#screen-home .league-join-action{display:flex;align-items:center;justify-content:center;gap:3px;width:calc(90% - 10px);max-width:100%;min-height:32px;padding:4px 5px;white-space:nowrap;overflow:hidden;text-overflow:clip;border:1px solid #fff;border-bottom:3px solid var(--hall-edge);border-radius:11px;background:linear-gradient(180deg,var(--hall-top),var(--hall-bottom));color:#294b55;font:900 9px/1.15 Estedad,Tahoma,sans-serif;box-shadow:0 0 8px var(--hall-glow),inset 0 1px 0 #fff,0 2px 0 var(--hall-edge);animation:hall-action-glow 2.8s ease-in-out infinite;transition:transform .12s ease,filter .12s ease}
#screen-home .league-join-action:hover{filter:brightness(1.07)}
#screen-home .league-join-action:active{transform:translateY(2px) scale(.98)}
@media(min-width:700px){#screen-home .league-card-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}.home-friends{gap:14px;padding:12px}.home-friends>.home-create-button{flex-basis:30%;font-size:14px}.home-private-join>label{font-size:13px}.home-private-join>input{height:42px;font-size:14px}.home-private-join>.matchi-action{min-height:42px;font-size:12px}.podium-points,.podium-prize{font-size:8px}}
@media(max-width:359px){#screen-home .league-card-reward-label{font-size:10px}#screen-home .league-card-reward{top:calc(48% + 5px)}.weekly-leaderboard{padding:8px}.weekly-leaderboard-head h2{font-size:11px}.weekly-countdown{font-size:13px}.podium-prize{font-size:8px}.home-friends{padding:7px;gap:5px}.home-friends>.home-create-button{flex-basis:36%;font-size:10px}.home-private-join{gap:4px}.home-private-join>label{font-size:9px}.home-private-join>input{flex-basis:62px;min-width:58px;height:34px;padding:0 3px;font-size:10px}.home-private-join>.matchi-action{min-height:34px;padding:4px 6px;font-size:10px}#screen-home .league-card-reward{gap:4px}#screen-home .league-card-reward .reward-icon{width:20px;height:20px;flex-basis:20px}#screen-home .league-card-reward .reward-part{gap:2px}#screen-home .league-card-reward .reward-part>span{font-size:12px}#screen-home .league-card-content{padding:0}}
@media(prefers-reduced-motion:reduce){#screen-home .home-hall-title::after,#screen-home .league-card-art,#screen-home .league-card-reward .reward-icon,#screen-home .league-join-action{animation:none}#screen-home .league-join-action{transition:none}}
@keyframes hall-frame-glow{0%,100%{filter:drop-shadow(0 0 3px var(--hall-glow)) drop-shadow(0 4px 5px #29586135)}50%{filter:drop-shadow(0 0 9px var(--hall-glow)) drop-shadow(0 5px 8px var(--hall-glow))}}
@keyframes hall-reward-glow{0%,100%{transform:scale(1);filter:drop-shadow(0 0 2px var(--hall-glow))}50%{transform:scale(1.1);filter:drop-shadow(0 0 6px var(--hall-glow))}}
@keyframes hall-action-glow{0%,100%{filter:brightness(1);box-shadow:0 0 5px var(--hall-glow),inset 0 1px 0 #fff,0 2px 0 var(--hall-edge)}50%{filter:brightness(1.08);box-shadow:0 0 13px var(--hall-glow),inset 0 1px 0 #fff,0 2px 0 var(--hall-edge)}}
@keyframes logo-float{0%,100%{transform:translateY(0) rotate(0deg)}50%{transform:translateY(-2px) rotate(-1deg)}}

@property --header-neon-angle{syntax:"<angle>";inherits:false;initial-value:0deg;}
.top-nav{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;min-height:74px;margin:0 -12px 8px;padding:4px 2px;border:1.5px solid transparent;border-radius:20px;background:linear-gradient(180deg,#f2f3e9dc 0%,#f2f3e997 68%,#f2f3e900 100%) padding-box;box-shadow:0 0 6px #69dfd326;backdrop-filter:blur(3px);direction:ltr;isolation:isolate}
.top-nav::before{content:"";position:absolute;inset:0;padding:1.5px;border-radius:inherit;background:conic-gradient(from var(--header-neon-angle),transparent 0deg 300deg,#70e8d2 313deg,#9a80ff 329deg,#ffc4df 339deg,transparent 351deg 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.65;filter:drop-shadow(0 0 2px #65dfd34d);pointer-events:none;z-index:0;animation:header-neon-rotate 22s linear infinite}
.top-profile,.top-logo,.top-status{position:relative;z-index:1}
@keyframes header-neon-rotate{to{--header-neon-angle:360deg}}
@media(prefers-reduced-motion:reduce){.top-nav::before{animation:none;}}
.top-profile{position:relative;width:50px;height:50px;justify-self:start;display:grid;place-items:center;padding:2px;border:2px solid transparent;border-radius:50%;background:linear-gradient(145deg,#fff4d8,#e5f5ff) padding-box,conic-gradient(from 25deg,#ff4fa3,#ffc845,#54e5cd,#806cff,#ff4fa3) border-box;box-shadow:0 0 7px #50e3d5a6,0 0 14px #986fff70,0 2px 7px #c47b3c44}
.profile-dropdown{position:absolute;top:60px;left:2px;z-index:60;width:min(310px,calc(100vw - 40px));max-height:min(72dvh,560px);overflow:auto;overscroll-behavior:contain;padding:12px;border:1px solid #ffffffdc;border-radius:20px;background:linear-gradient(145deg,#fffaf0f7,#eaf9f3f5 56%,#f1eafff5);box-shadow:0 14px 34px #203b5040,0 0 0 1px #e2c66b30 inset;direction:rtl;transform-origin:top left;animation:profile-menu-in .18s ease-out}
.profile-dropdown[hidden]{display:none}
.header-popover{position:absolute;top:60px;right:2px;z-index:60;width:min(320px,calc(100vw - 40px));max-height:min(72dvh,560px);overflow:auto;overscroll-behavior:contain;padding:12px;border:1px solid #ffffffdc;border-radius:20px;background:linear-gradient(145deg,#fffaf0f7,#eaf9f3f5 56%,#f1eafff5);box-shadow:0 14px 34px #203b5040,0 0 0 1px #e2c66b30 inset;direction:rtl;animation:profile-menu-in .18s ease-out}
.header-popover[hidden]{display:none}
.popover-heading{margin:0 0 8px;color:#315c67;font-size:15px;font-weight:900}
.popover-balance{display:flex;align-items:center;gap:7px;min-height:48px;padding:7px 9px;border:1px solid #ffffffc8;border-radius:13px;background:linear-gradient(100deg,#fff1d9dc,#e0f8f0e5 54%,#eee7ffdf)}
.popover-balance img{width:26px;height:26px;object-fit:contain}
.popover-balance span{font-size:11px;color:var(--matchi-muted)}
.popover-balance b{margin-inline-start:auto;font-size:15px;font-weight:900;color:#315c67;white-space:nowrap}
.popover-primary-action,.popover-secondary-action{width:100%;min-height:38px;margin:8px 0 0;padding:7px 10px;font-size:11px}
.popover-section-title{margin:10px 2px 5px;font-size:12px;font-weight:850;color:#45615e}
.popover-list{display:grid;gap:4px}
.popover-transaction,.popover-game{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding:6px 8px;border:1px solid #ffffffb5;border-radius:11px;background:#ffffffa6}
.popover-row-copy{display:grid;gap:2px;min-width:0}
.popover-row-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--matchi-ink)}
.popover-row-copy small{font-size:8px;color:var(--matchi-muted)}
.popover-transaction strong,.popover-game strong{flex:0 0 auto;font-size:10px;white-space:nowrap}
.popover-transaction .credit{color:#166345}.popover-transaction .debit{color:#8f3456}
.popover-game .popover-xp-award{color:#7250a4}
.popover-loading,.popover-error{margin:6px 0;padding:9px;text-align:center;font-size:11px;color:var(--matchi-muted)}
.xp-menu-trigger{cursor:pointer}
.profile-menu-heading{margin:0 0 8px;padding:3px 4px;color:#315c67;font-size:15px;font-weight:900;text-shadow:0 1px 3px #5bc9b955}
.profile-menu-summary{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:7px;padding:6px;border:1px solid #ffffffc4;border-radius:13px;background:linear-gradient(100deg,#fff1d9dc,#e0f8f0e5 54%,#eee7ffdf);box-shadow:inset 0 1px 0 #fff}
.profile-menu-summary-item{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;min-width:0;color:#315c67}
.profile-menu-summary-item+.profile-menu-summary-item{border-right:1px solid #456c6430}
.profile-menu-summary-item img{width:22px;height:22px;object-fit:contain;flex:0 0 22px}
.profile-menu-summary-item b{font-size:13px;font-weight:900;white-space:nowrap}
.profile-menu-summary-item small{font-size:9px;color:var(--matchi-muted);font-weight:750}
@keyframes profile-menu-in{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.profile-dropdown,.header-popover{animation:none}}
.profile-level-ring{display:grid;place-items:center;width:100%;height:100%;color:#71521c;font-size:18px;font-weight:900;}
.top-logo{position:relative;z-index:2;width:92px;height:62px;justify-self:center;display:grid;place-items:center;padding:0;border:0;background:transparent;transform:none;filter:drop-shadow(0 7px 8px #28574b42);animation:logo-float 5s ease-in-out infinite}
.top-logo img{width:100%;height:100%;object-fit:contain}
.top-status{position:relative;z-index:1;display:flex;flex-direction:column;align-items:stretch;justify-self:end;gap:0;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;direction:ltr}
.header-level-chip,.header-wallet-chip{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:2px;min-height:28px;padding:0 1px;border:0;border-radius:7px;background:transparent;color:#29484a;box-shadow:none}
.header-level-chip .hud-stat-copy,.header-wallet-chip .hud-stat-copy{order:1;line-height:1}
.header-level-chip img,.header-wallet-chip img{order:2;flex:0 0 28px;width:28px;height:28px;object-fit:contain}
.hud-stat-value{font-size:13px;font-weight:950;letter-spacing:.1px}
.header-wallet-chip .hud-stat-value{white-space:nowrap;font-size:clamp(10px,3.5vw,13px);letter-spacing:-.25px;font-variant-numeric:tabular-nums}





#screen-login .entry-guest-action{--entry-edge:#b7d3eb;}
#screen-login .entry-login-action{--entry-edge:#cfc0e5;}
#screen-login .entry-register-action{--entry-edge:#bfdbbf;}
#screen-login .entry-google{--entry-edge:#e4c9a9;}
#screen-login .entry-guest-action,#screen-login .entry-login-action,#screen-login .entry-register-action,#screen-login .entry-google{position:relative;transform:translateY(-1px);box-shadow:inset 0 2px 0 #ffffffdc,inset 0 -2px 0 #0000000c,0 4px 0 var(--entry-edge),0 9px 15px #243b4d30;}
@media(hover:hover){#screen-login .entry-guest-action:hover,#screen-login .entry-login-action:hover,#screen-login .entry-register-action:hover,#screen-login .entry-google:hover{transform:translateY(-2px);box-shadow:inset 0 2px 0 #ffffffed,inset 0 -2px 0 #00000012,0 5px 0 var(--entry-edge),0 12px 19px #243b4d38;filter:brightness(1.04) saturate(1.07);}}
#screen-login .entry-guest-action:active,#screen-login .entry-login-action:active,#screen-login .entry-register-action:active,#screen-login .entry-google:active{transform:translateY(3px) scale(.985);box-shadow:inset 0 3px 5px #243b4d26,0 1px 0 var(--entry-edge);}
@media(prefers-reduced-motion:reduce){#screen-login .auth-panel::after{animation:none!important;}}

#screen-login .entry-guest-action{--entry-border:#bad9ee;}
#screen-login .entry-login-action{--entry-border:#d4c5ea;}
#screen-login .entry-register-action{--entry-border:#c7e0ca;}
#screen-login .entry-google{--entry-border:#ead2b7;}
#screen-login .entry-guest-action,#screen-login .entry-login-action,#screen-login .entry-register-action,#screen-login .entry-google{border:2px solid var(--entry-border);border-bottom:4px solid var(--entry-edge);}
#screen-login .entry-register-action,#screen-login .entry-google{width:88%;justify-self:center;}

#screen-login .entry-guest-action{font-size:12px;white-space:nowrap;}
#screen-login .auth-form[data-form="guest"] .entry-form-heading h2{font-size:13px;line-height:1.35;white-space:nowrap;}

#screen-login .field-validation-message{display:block;margin:4px 2px 0;color:#b4232c;font-size:12px;font-weight:750;line-height:1.6}
#screen-login .field-validation-message[hidden],#screen-login .auth-form-feedback[hidden]{display:none!important}
#screen-login .auth-form-feedback{margin:8px 0;padding:8px 10px;border:1px solid #e9a3a3;border-radius:10px;background:#fff0f0;color:#9d2222;font-size:12px;font-weight:750;line-height:1.7}
#screen-login .auth-form input[aria-invalid="true"]{border-color:#cf5151!important;box-shadow:0 0 0 2px #d851511c}

#screen-login .password-forgot-link{min-height:36px;padding:5px 8px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#52686a;font-size:12px;font-weight:700}
#screen-login .password-forgot-link:hover{background:#ffffff80;color:#087f82}


/* Player-facing MATCHI visual system refresh 2026-10-10 */
:root{--matchi-surface-line:color-mix(in srgb,var(--matchi-metal-gold) 48%,white);--matchi-surface-glow:rgba(39,104,94,.14);--matchi-surface-paper:linear-gradient(145deg,rgba(255,253,245,.96),rgba(232,250,244,.94) 54%,rgba(242,235,255,.93));}
.app-page:not(#screen-home):not(#screen-login)>.screen-heading{position:relative;min-height:56px;height:auto;margin:5px 0 14px;padding:7px 10px;border:1px solid rgba(255,255,255,.88);border-radius:17px;background:linear-gradient(110deg,rgba(255,248,229,.93),rgba(232,250,243,.94) 52%,rgba(240,233,255,.91));box-shadow:0 7px 17px var(--matchi-surface-glow),inset 0 1px 0 #fff;}
.app-page:not(#screen-home):not(#screen-login)>.screen-heading:after{content:"";position:absolute;bottom:0;left:22%;right:22%;height:2px;border-radius:9px;background:linear-gradient(90deg,transparent,#c8a44d,#70bca9,#c8a44d,transparent);opacity:.82;}
.app-page:not(#screen-home):not(#screen-login)>.screen-heading h1{font-size:clamp(17px,4.7vw,21px);font-weight:900;letter-spacing:-.25px;color:#31545a;text-shadow:0 1px 0 #fff,0 2px 8px rgba(114,159,144,.18);}
.app-page:not(#screen-home):not(#screen-login)>.screen-heading .back-button{flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(255,255,255,.9);border-radius:13px;background:linear-gradient(145deg,#fffdf7,#e4f5ee);box-shadow:0 3px 9px rgba(39,104,94,.12),inset 0 1px 0 #fff;}
.app-page:not(#screen-home):not(#screen-login) .matchi-panel{border-color:rgba(255,255,255,.88);border-radius:20px;background:var(--matchi-surface-paper);box-shadow:0 9px 22px rgba(47,79,75,.13),0 0 0 1px rgba(203,169,89,.16) inset,inset 0 1px 0 #fff;backdrop-filter:blur(14px);}
.app-page:not(#screen-home):not(#screen-login) :is(.matchi-action,.small-action,.outline-action,.shop-signin,.inventory-shop-link,.economy-wheel-link){transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;}
.app-page:not(#screen-home):not(#screen-login) :is(.matchi-action,.small-action,.outline-action,.shop-signin,.inventory-shop-link,.economy-wheel-link):hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 7px 15px rgba(44,105,91,.17),inset 0 1px 0 #fff;}
.app-page:not(#screen-home):not(#screen-login) :is(.matchi-action,.small-action,.outline-action,.shop-signin,.inventory-shop-link,.economy-wheel-link):active{transform:translateY(1px);}
.app-page :is(button,input,select,textarea):focus-visible{outline:3px solid rgba(86,174,157,.6);outline-offset:2px;}
.economy-hero{margin:4px 0 13px;padding:16px 18px;border:1px solid rgba(255,255,255,.9);border-inline-start:4px solid #c7a24b;border-radius:21px;background:linear-gradient(125deg,rgba(255,246,220,.97),rgba(227,249,241,.96) 56%,rgba(239,232,255,.95));box-shadow:0 10px 23px rgba(54,88,76,.16),inset 0 1px 0 #fff;}
.economy-hero h2{margin:4px 0;font-size:clamp(23px,6vw,30px);font-weight:950;color:#355b5a;text-shadow:0 1px 0 #fff,0 3px 10px rgba(203,161,65,.17);}
.economy-tabs{gap:5px;padding:5px;margin:8px 0 13px;border:1px solid rgba(255,255,255,.92);border-radius:17px;background:linear-gradient(120deg,rgba(255,246,224,.93),rgba(225,247,239,.94) 58%,rgba(241,233,255,.9));box-shadow:0 6px 15px rgba(47,79,75,.1),inset 0 1px 0 #fff;}
.economy-tab{min-height:43px;border:1px solid transparent;border-radius:12px;font-size:12px;font-weight:850;transition:background .16s ease,box-shadow .16s ease,color .16s ease;}
.economy-tab.selected{border-color:rgba(197,158,69,.46);background:linear-gradient(145deg,#fff9e9,#f1e5bf 54%,#dff4eb);color:#405c53;box-shadow:0 4px 10px rgba(100,89,51,.15),inset 0 1px 0 #fff;}
.economy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:stretch;}
.economy-card{position:relative;isolation:isolate;overflow:hidden;min-height:174px;gap:7px;padding:12px 9px 10px;border:1px solid rgba(255,255,255,.96);border-radius:19px;background:linear-gradient(150deg,rgba(255,253,245,.98),rgba(229,248,241,.96) 57%,rgba(241,235,255,.94));box-shadow:0 7px 16px rgba(46,78,76,.13),0 0 0 1px rgba(197,158,69,.2) inset,inset 0 1px 0 #fff;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.economy-card:before{content:"";position:absolute;inset:5px;z-index:-1;border:1px solid rgba(196,163,91,.16);border-radius:14px;pointer-events:none;}
.economy-card:hover{transform:translateY(-2px);border-color:rgba(204,170,90,.65);box-shadow:0 11px 20px rgba(46,78,76,.17),0 0 0 1px rgba(197,158,69,.26) inset,inset 0 1px 0 #fff;}
.economy-art{height:88px;max-width:100%;filter:drop-shadow(0 4px 5px rgba(61,76,68,.2));}
.economy-card h3,.economy-card strong,.economy-card .economy-card-title{color:#35585a;font-size:13px;line-height:1.55;font-weight:900;}
.economy-pack-amount{padding:3px 8px;border:1px solid rgba(194,158,78,.25);border-radius:10px;background:linear-gradient(100deg,rgba(255,245,214,.82),rgba(224,246,238,.9));font-size:13px;font-weight:900;color:#465e53;}
.economy-card .matchi-action{min-height:42px;margin-top:auto;border:1px solid rgba(255,255,255,.9);border-bottom:3px solid #a98942;border-radius:12px;background:linear-gradient(145deg,#fff2c7,#eed48c 52%,#d8b55f);color:#5c481d;font-size:11px;font-weight:900;box-shadow:0 3px 0 rgba(140,107,40,.42),0 5px 11px rgba(143,111,48,.16),inset 0 1px 0 #fff;}
.economy-card .matchi-action:disabled{border-bottom-color:#aebbb2;background:linear-gradient(145deg,#f3f5f1,#dfe7e1);color:#65766d;box-shadow:0 2px 0 #abb7ae,inset 0 1px 0 #fff;}
.shop-balance{min-height:62px;margin:2px 0 13px;padding:10px 14px;border-inline-start:4px solid #c7a24b;border-radius:17px;background:linear-gradient(110deg,rgba(255,247,224,.96),rgba(227,248,240,.96) 58%,rgba(241,233,255,.93));box-shadow:0 7px 16px rgba(46,78,76,.12),inset 0 1px 0 #fff;}
.shop-balance img{width:32px;height:32px;filter:drop-shadow(0 2px 4px rgba(189,144,42,.24));}
.shop-balance b{font-size:18px;font-weight:950;color:#425c50;}
.shop-signin{border-color:rgba(197,158,69,.5);background:linear-gradient(145deg,#fff9e7,#f2e4bd);color:#5f4c27;box-shadow:0 4px 10px rgba(113,92,48,.12),inset 0 1px 0 #fff;}
.inventory-section-heading{margin:2px 2px 11px;padding:10px 12px;border:1px solid rgba(255,255,255,.86);border-radius:15px;background:linear-gradient(110deg,rgba(255,247,224,.86),rgba(226,247,239,.9) 62%,rgba(241,233,255,.84));box-shadow:0 5px 12px rgba(46,78,76,.09),inset 0 1px 0 #fff;}
.inventory-section-heading h2{font-size:16px;font-weight:900;color:#35595a;}
.inventory-section-heading>small{font-size:11px;font-weight:750;color:#586d64;}
.inventory-count{min-height:31px;gap:6px;padding:3px 11px;border-color:rgba(192,153,66,.38);border-radius:12px;background:linear-gradient(135deg,#fff6d9,#f1e3bd 58%,#e4f4eb);box-shadow:0 3px 8px rgba(92,89,59,.09),inset 0 1px 0 #fff;color:#4d5f4b;}
.inventory-count b{font-size:16px;font-weight:950;}
.inventory-count span{font-size:10px;font-weight:800;}
.inventory-card-empty{filter:saturate(.76);}
.inventory-card-empty .inventory-count{border-color:#d7ded7;background:linear-gradient(145deg,#f6f7f3,#e6ebe5);color:#66736b;}
.inventory-boost{border-color:rgba(196,155,67,.46);border-radius:16px;background:linear-gradient(115deg,rgba(255,243,205,.96),rgba(246,233,255,.94) 54%,rgba(222,246,237,.93));box-shadow:0 6px 15px rgba(74,74,56,.1),inset 0 1px 0 #fff;}
.inventory-shop-link{border:1px solid rgba(255,255,255,.92);border-bottom:3px solid #a98942;border-radius:15px;background:linear-gradient(130deg,#fff3ce,#efd998 55%,#d8efe5);color:#5b4c2a;font-weight:900;box-shadow:0 3px 0 rgba(140,107,40,.34),0 6px 13px rgba(92,89,59,.13),inset 0 1px 0 #fff;}
.economy-wheel-link{border:1px solid rgba(255,255,255,.9);border-bottom:3px solid #ae815d;border-radius:16px;background:linear-gradient(135deg,#fff1de,#efc9ac 55%,#ead9b6);color:#704a36;font-size:14px;font-weight:900;box-shadow:0 4px 0 rgba(137,94,62,.28),0 7px 14px rgba(92,75,58,.12),inset 0 1px 0 #fff;}
.economy-result{border-color:rgba(255,255,255,.94);border-radius:21px;background:linear-gradient(145deg,rgba(231,250,241,.98),rgba(255,248,224,.97) 54%,rgba(240,232,255,.96));box-shadow:0 10px 22px rgba(46,78,76,.15),0 0 0 1px rgba(197,158,69,.2) inset,inset 0 1px 0 #fff;}
.economy-result img{filter:drop-shadow(0 6px 9px rgba(57,77,67,.2));}
.economy-result b{font-size:22px;font-weight:950;color:#345b51;}
.economy-result-label{font-size:13px;font-weight:800;color:#586e5f;}
.history-tabs{gap:5px;padding:5px;margin:4px 0 12px;border-color:rgba(255,255,255,.92);background:linear-gradient(120deg,rgba(255,246,224,.94),rgba(226,247,239,.95) 58%,rgba(241,233,255,.9));box-shadow:0 6px 14px rgba(47,79,75,.1),inset 0 1px 0 #fff;}
.history-tabs button{min-height:42px;border:1px solid transparent;border-radius:12px;font-size:12px;font-weight:850;}
.history-tabs button.selected{border-color:rgba(197,158,69,.42);background:linear-gradient(145deg,#fff8e4,#efdfb0 54%,#dff4eb);color:#405b52;box-shadow:0 4px 10px rgba(100,89,51,.13),inset 0 1px 0 #fff;}
.history-card{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 10px;min-height:72px;margin:8px 0;padding:10px 12px;border:1px solid rgba(255,255,255,.9);border-inline-start:3px solid #c7a24b;border-radius:16px;background:linear-gradient(115deg,rgba(255,252,242,.96),rgba(231,248,241,.94) 58%,rgba(242,236,255,.92));box-shadow:0 5px 12px rgba(45,79,75,.1),inset 0 1px 0 #fff;}
.history-info{grid-column:1;grid-row:1/span 2;gap:4px;align-content:center;}
.history-info b{font-size:12px;font-weight:900;color:#35575a;}
.history-info small{font-size:10px;line-height:1.5;}
.history-card strong{grid-column:2;grid-row:1;font-size:11px;font-weight:900;color:#647c53;}
.history-card>i{grid-column:2;grid-row:2;font-size:12px;font-weight:950;color:#4b6252;}
.friend-search-form{gap:7px;margin:10px 0 13px;padding:6px;border:1px solid rgba(255,255,255,.9);border-radius:16px;background:linear-gradient(115deg,rgba(255,246,224,.8),rgba(226,247,239,.86));box-shadow:0 5px 12px rgba(45,79,75,.08),inset 0 1px 0 #fff;}
.friend-search-form input,.account-settings-form>input,.account-settings-form>select,.chat-compose input{min-height:45px;border:1px solid rgba(114,153,137,.32);border-radius:13px;background:rgba(255,255,250,.95);box-shadow:inset 0 1px 2px rgba(48,78,69,.05);color:#35545a;}
.friend-search-form input{border:0;background:transparent;box-shadow:none;}
.friend-row,.request-row,.message-row,.public-player{min-height:62px;margin:8px 0;padding:10px 11px;border:1px solid rgba(255,255,255,.94);border-inline-start:3px solid rgba(199,162,75,.76);border-radius:16px;background:linear-gradient(115deg,rgba(255,252,242,.97),rgba(231,248,241,.95) 60%,rgba(242,236,255,.92));box-shadow:0 5px 12px rgba(45,79,75,.1),inset 0 1px 0 #fff;transition:transform .16s ease,box-shadow .16s ease;}
.friend-row:hover,.message-row:hover{transform:translateY(-1px);box-shadow:0 8px 16px rgba(45,79,75,.14),inset 0 1px 0 #fff;}
.friend-row>img,.message-row>img{width:42px;height:42px;border-radius:13px;background:linear-gradient(140deg,#fff8e3,#e1f3eb);filter:drop-shadow(0 2px 3px rgba(47,79,75,.12));}
.friend-row b,.message-row b{font-size:12px;font-weight:900;color:#34575a;}
.friend-row small,.message-row small{font-size:10px;line-height:1.5;}
.friend-row>button{min-height:36px;border:1px solid rgba(255,255,255,.9);border-bottom:2px solid #8fbdb0;border-radius:11px;background:linear-gradient(145deg,#effaf3,#c5e9dc);font-size:10px;font-weight:850;}
.message-row{width:100%;text-align:right;cursor:pointer;}
.message-row time{font-size:10px;font-weight:850;color:#718255;}
.chat-history{padding:12px 9px;border:1px solid rgba(255,255,255,.86);border-radius:19px;background:linear-gradient(145deg,rgba(255,250,235,.74),rgba(224,246,237,.78) 58%,rgba(239,232,255,.72));}
.chat-bubble{max-width:84%;padding:10px 13px;border:1px solid rgba(255,255,255,.9);border-radius:16px;font-size:12px;line-height:1.8;box-shadow:0 4px 10px rgba(45,79,75,.09),inset 0 1px 0 #fff;}
.chat-bubble.received{border-inline-start:3px solid #c7a24b;background:linear-gradient(145deg,#fffdf5,#f2f5e8);}
.chat-bubble.sent{border-inline-end:3px solid #71b7a5;background:linear-gradient(145deg,#e2f7ee,#c9eadc);}
.chat-bubble small{font-size:9px;}
.chat-compose{align-items:center;gap:8px;margin-top:4px;padding:8px;border:1px solid rgba(255,255,255,.92);border-radius:17px;background:linear-gradient(110deg,rgba(255,247,224,.88),rgba(226,247,239,.91));box-shadow:0 5px 12px rgba(45,79,75,.08),inset 0 1px 0 #fff;}
.chat-compose input{background:rgba(255,255,250,.95);}
.chat-compose button{width:46px;min-width:46px;height:42px;border:1px solid rgba(255,255,255,.92);border-bottom:3px solid #8fa94f;border-radius:13px;background:linear-gradient(145deg,#f7f5cf,#dbe9a7);box-shadow:0 3px 0 rgba(114,137,66,.3),inset 0 1px 0 #fff;}
.account-settings-form{gap:10px;padding:14px;border:1px solid rgba(255,255,255,.9);border-radius:19px;background:var(--matchi-surface-paper);box-shadow:0 8px 18px rgba(45,79,75,.12),inset 0 1px 0 #fff;}
.account-settings-form>.form-step{margin:2px 2px -5px;font-size:12px;font-weight:850;color:#47615a;}
.account-settings-form .switch-row{min-height:48px;padding:8px 11px;border:1px solid rgba(255,255,255,.9);border-radius:14px;background:linear-gradient(110deg,rgba(255,247,224,.82),rgba(226,247,239,.88));font-weight:800;color:#405b54;}
.account-settings-form input[type=checkbox]{accent-color:#549d86;}
.profile-card,.profile-links,.settings-list,.public-player{border-color:rgba(255,255,255,.9);border-radius:19px;background:var(--matchi-surface-paper);box-shadow:0 8px 18px rgba(45,79,75,.12),inset 0 1px 0 #fff;}
.profile-title{font-size:19px;font-weight:950;color:#35585a;text-shadow:0 1px 0 #fff;}
.profile-link-icon{width:34px;height:34px;padding:5px;border:1px solid rgba(255,255,255,.9);border-radius:11px;background:linear-gradient(145deg,#fff8e5,#e1f4eb);}
.profile-link-arrow{color:#a07d37;font-weight:900;}
.profile-dropdown,.header-popover{border:1px solid rgba(255,255,255,.94);background:linear-gradient(145deg,rgba(255,251,236,.98),rgba(224,247,239,.97) 58%,rgba(239,232,255,.96));box-shadow:0 16px 36px rgba(36,64,62,.22),0 0 0 1px rgba(197,158,69,.18) inset;backdrop-filter:blur(18px);}
.profile-menu-heading,.popover-heading{font-size:16px;font-weight:950;color:#355b5a;text-shadow:0 1px 0 #fff;}
.popover-balance,.popover-transaction,.transaction-row,.popover-game{border-color:rgba(255,255,255,.9);border-radius:13px;background:linear-gradient(115deg,rgba(255,251,238,.94),rgba(227,247,239,.92));box-shadow:0 4px 10px rgba(45,79,75,.08),inset 0 1px 0 #fff;}
.popover-section-title{margin:13px 2px 7px;color:#526b60;font-weight:900;}
.account-empty{margin:7px 0;padding:17px 14px!important;border:1px dashed rgba(169,139,67,.48)!important;border-radius:17px!important;background:linear-gradient(125deg,rgba(255,248,225,.88),rgba(229,248,240,.9))!important;color:#586d61;font-weight:750;}
#screen-create .private-create-intro,#screen-lobby .lobby-panel-head,#screen-stats .stats-toolbar{border-color:rgba(255,255,255,.88);border-radius:16px;background:linear-gradient(115deg,rgba(255,247,224,.85),rgba(226,247,239,.88) 60%,rgba(241,233,255,.84));box-shadow:0 5px 12px rgba(45,79,75,.09),inset 0 1px 0 #fff;}
#screen-create .settings-form{border:1px solid rgba(255,255,255,.9);border-radius:20px;background:var(--matchi-surface-paper);box-shadow:0 9px 20px rgba(45,79,75,.12),inset 0 1px 0 #fff;}
#screen-create .settings-form input,#screen-create .settings-form select{min-height:46px;border-color:rgba(114,153,137,.34);border-radius:13px;background:rgba(255,255,250,.96);}
#screen-create .settings-form .matchi-action{border-bottom-color:#a98942;background:linear-gradient(145deg,#fff2c7,#eed48c 52%,#d8b55f);color:#5c481d;}
#screen-lobby .lobby-panel-head h2,#screen-lobby .lobby-panel-head b{font-weight:900;}
#screen-stats .live-stats-board{overflow:hidden;border:1px solid rgba(255,255,255,.9);border-radius:19px;background:var(--matchi-surface-paper);box-shadow:0 8px 18px rgba(45,79,75,.12),inset 0 1px 0 #fff;}
#screen-stats .leader-row{border-bottom:1px solid rgba(134,160,144,.18);}
#screen-result .result-head,#screen-result .result-score,#screen-result .result-celebration{border-color:rgba(255,255,255,.9);border-radius:20px;box-shadow:0 9px 20px rgba(45,79,75,.14),inset 0 1px 0 #fff;}
@media(min-width:620px){.economy-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}}
@media(prefers-reduced-motion:reduce){.app-page:not(#screen-home):not(#screen-login) :is(.matchi-action,.small-action,.outline-action,.shop-signin,.inventory-shop-link,.economy-wheel-link),.economy-card,.friend-row,.message-row{transition:none!important;}}


/* Player name profile links */
.player-profile-link{display:inline;max-width:100%;padding:0;border:0;border-radius:6px;background:transparent;color:#315f62;font:inherit;font-weight:900;text-align:inherit;text-decoration:underline;text-decoration-color:rgba(190,151,66,.62);text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;white-space:inherit;}
.player-profile-link:hover{color:#8b6c2f;text-decoration-color:#bd994b;}
.player-profile-link:focus-visible{outline:2px solid #6eaa9c;outline-offset:3px;}
.podium-name.player-profile-link{color:inherit;}
.chat-peer-profile-link{flex:1;min-width:0;text-align:center;font-size:clamp(17px,4.7vw,21px);font-weight:900;}


 /* Player public profile card */
#screen-player .public-player{display:grid;justify-items:center;gap:11px;width:100%;max-width:520px;margin:0 auto;padding:20px;text-align:center;}
#screen-player .public-player>h2{margin:0;color:#345b5b;font-size:22px;font-weight:950;text-shadow:0 1px 0 #fff;}
#screen-player .public-player>small{padding:3px 10px;border:1px solid rgba(194,158,78,.28);border-radius:10px;background:linear-gradient(100deg,#fff6df,#e4f5ed);color:#617367;font-size:11px;font-weight:800;}
#screen-player .profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;}
#screen-player .profile-stat-grid>.matchi-panel{min-height:66px;align-content:center;padding:9px 7px;border-color:rgba(255,255,255,.95);border-radius:14px;background:linear-gradient(145deg,#fff9e9,#e4f5ed 60%,#eee8fc);box-shadow:0 4px 10px rgba(48,78,71,.1),inset 0 1px 0 #fff;}
#screen-player .profile-stat-grid b{font-size:17px;font-weight:950;color:#3e6155;}
#screen-player .profile-stat-grid small{font-size:10px;font-weight:800;color:#65766c;}
#screen-player .public-player>.matchi-action{width:100%;max-width:360px;margin-top:2px;border-bottom-color:#a98942;background:linear-gradient(145deg,#fff2c7,#eed48c 52%,#d8b55f);color:#5c481d;font-weight:900;}

#screen-inventory>.screen-heading h1{position:absolute;left:50%;transform:translateX(-50%);flex:0 1 auto;width:max-content;max-width:calc(100% - 108px);text-align:center;white-space:nowrap}
#screen-inventory>.screen-heading>.back-button{position:relative;z-index:1}

/* Mobile rendering budget: keep artwork and interaction feedback, avoid continuous paint effects. */
@media (max-width: 768px), (hover: none), (pointer: coarse) {
  .matchi-panel,
  .app-page:not(#screen-home):not(#screen-login) .matchi-panel,
  #screen-question .question-toolbar,
  .home-announcement,
  .top-nav,
  .profile-dropdown,
  .header-popover {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .top-nav::before,
  .top-logo,
  .weekly-leaderboard::before,
  .weekly-leaderboard::after,
  .weekly-countdown,
  .podium-item,
  .podium-item::before,
  .home-announcement-text,
  #screen-home .home-hall-title::after,
  #screen-home .league-card-art,
  #screen-home .league-card-reward .reward-icon,
  #screen-home .league-join-action,
  #screen-login .auth-panel::before,
  #screen-login .auth-panel::after,
  #screen-login .entry-logo-halo,
  #screen-login .entry-logo-halo img,
  #screen-login .entry-guest-action,
  #screen-login .entry-login-action,
  #screen-login .entry-google,
  #screen-login .entry-register-action,
  .is-entry .phone-content::before,
  .public-room-confirm-card .public-room-countdown,
  .public-entry-actions > .public-pay-entry {
    animation: none;
    filter: none;
  }
  .public-entry-actions > .public-pay-entry,
  #screen-login .entry-guest-action,
  #screen-login .entry-login-action,
  #screen-login .entry-google,
  #screen-login .entry-register-action {
    transition: transform .12s ease;
  }
}

.home-pass-tools{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:8px 12px}.online-player-count{font-size:12px;font-weight:700;border:1px solid #b4c9b9;border-radius:12px;background:#f5f7ed;padding:6px 12px;color:#315c67}.online-player-count:before{content:"●";color:#438852;margin-inline-end:7px}.online-player-count[hidden],[data-pass-open][hidden]{display:none!important}#screen-pass h1,#screen-pass h2,#screen-pass p{text-align:center}.pass-reward-track{display:flex;gap:8px;overflow-x:auto;padding:8px 0}.pass-reward-step{display:flex;flex:none;width:110px;align-items:center;flex-direction:column;gap:6px;font-size:12px;padding:10px!important}.pass-reward-icon{height:44px;width:44px;object-fit:contain}.pass-period-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px}.pass-mission{margin-bottom:12px;text-align:center}.pass-mission progress{width:100%}.pass-login-panel{margin-top:12px}

#screen-pass .pass-period-tabs .matchi-action{width:auto;flex:1 1 100px;min-width:0;padding:10px 8px;font-size:13px}#screen-pass .pass-back{width:auto;min-width:72px;padding:8px 16px}#screen-pass .pass-login-panel h2,#screen-pass .pass-mission h2{font-size:18px}#screen-pass .pass-period-tabs [aria-pressed="true"]{outline:2px solid #ba9c51;outline-offset:2px}

.daily-feature-link{width:calc(50% - 5px);border:1px solid #dfa849;border-radius:20px;background:linear-gradient(145deg,#fff7d8,#ffe6ac);padding:12px 8px;color:#503926;cursor:pointer}.daily-feature-link[data-daily-section="missions"]{background:linear-gradient(145deg,#e5fff2,#b7e7db);border-color:#58a48f}.daily-feature-link img{display:block;width:70px;height:70px;object-fit:contain;margin:auto}.daily-feature-link strong{display:block;text-align:center;margin-top:6px;font-size:16px}.daily-feature-hero{display:block;width:104px;height:104px;object-fit:contain;margin:12px auto}.daily-reset{text-align:center;font-variant-numeric:tabular-nums}.pass-mission{padding:16px!important}.pass-mission h2{font-size:18px}.pass-login-panel{text-align:center;padding:18px!important}

.daily-feature-link{display:flex;align-items:center;min-height:48px;padding:4px 6px;border-radius:12px;gap:4px}.daily-feature-link img{width:32px;height:32px;margin:0}.daily-feature-link strong{font-size:11px;margin:0;flex:1}.pass-reward-track{direction:ltr;gap:6px;padding:4px 0}.pass-reward-step{direction:rtl;width:100px;height:144px;box-sizing:border-box;padding:6px!important;gap:4px;justify-content:space-between}.pass-reward-step strong{font-size:11px}.pass-reward-step .matchi-action{min-height:44px;width:100%;font-size:11px;padding:4px}.daily-day-state{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:11px}.pass-mission{display:flex;align-items:center;gap:7px;padding:7px 8px!important;margin-bottom:6px}.pass-mission .pass-reward-icon,.daily-final-compact .pass-reward-icon{width:30px;height:30px}.daily-task-content{flex:1;min-width:0;font-size:12px}.daily-task-content progress{height:4px;display:block;margin-top:5px}.pass-mission>span{font-size:11px}.daily-final-compact{display:flex;align-items:center;gap:8px;padding:5px 8px!important;font-size:12px}.daily-final-compact strong{flex:1}.daily-final-compact .matchi-action{min-height:44px;font-size:11px}.daily-reset{font-size:10px;margin:6px 0}#screen-pass h1{font-size:16px;margin:6px 0}
