/* Shared player navigation; backend and stage gameplay retain their own styling. */
.cozy-ui .game-content [hidden] { display: none !important; }
.ux-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0 12px; padding:6px; background:#f1ecfa; border-radius:18px; }
.ux-tabs a { flex:1 1 auto; min-height:44px; display:flex; align-items:center; justify-content:center; padding:8px 10px; border-radius:13px; color:#554269; font-size:14px; font-weight:700; text-align:center; }
.ux-tabs [aria-selected="true"], .ux-tabs [aria-current="page"] { background:#745293; color:white; box-shadow:0 3px 8px #74529325; }
.beat-mode-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 16px}
.beat-mode-card{display:block;min-width:0;overflow:hidden;border:2px solid #ded5e9;border-radius:22px;background:#fffdf8;color:#493759;box-shadow:0 4px 0 #e9e0ef;transition:transform .16s,border-color .16s}
.beat-mode-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.beat-mode-card__body{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 8px;text-align:center}
.beat-mode-card__body strong{font-size:clamp(18px,4.8vw,24px);line-height:1.3}
.beat-mode-card__body>span{font-size:12px;line-height:1.6}
.beat-mode-card__body>span:not(.beat-mode-card__action){min-height:3.2em;display:flex;align-items:center;justify-content:center}
.beat-mode-card .beat-mode-card__action{margin-top:3px;padding:5px 12px;border-radius:999px;background:#f0e8f8;color:#62437d;font-weight:700}
.beat-mode-card--drop .beat-mode-card__action{background:#e0f3e9;color:#285c4e}
.beat-mode-card[aria-current="page"]{border-color:#745293;box-shadow:0 4px 0 #bba5d0}
.beat-mode-card[aria-current="page"] .beat-mode-card__action{background:#745293;color:#fff}
.beat-mode-card:focus-visible{outline:3px solid #745293;outline-offset:4px}
@media(hover:hover){.beat-mode-card:hover{transform:translateY(-3px);border-color:#a58abc}}
@media(prefers-reduced-motion:reduce){.beat-mode-card{transition:none}.beat-mode-card:hover{transform:none}}
.beat-duel-banner{position:relative;display:block;aspect-ratio:21/9;margin-top:18px;border:2px solid #e5cceb;border-radius:22px;overflow:hidden;background:#f2e7fa;box-shadow:0 4px 0 #dfd0e9;color:#624080}
.beat-duel-banner>img{display:block;width:100%;height:100%;object-fit:cover}
.beat-duel-banner__copy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:66%;margin:auto;text-align:center;text-shadow:0 1px 3px #fffdf6,0 0 8px #fffdf6}
.beat-duel-banner__copy strong{font-size:clamp(18px,4.8vw,25px);line-height:1.35}
.beat-duel-banner__copy>span{font-size:clamp(10px,2.7vw,13px);line-height:1.5}
.beat-duel-banner__copy>.beat-duel-banner__mode{font-size:clamp(14px,3.8vw,18px);font-weight:700;line-height:1.35}
.beat-duel-banner .beat-duel-banner__cta{padding:3px 10px;border-radius:999px;background:#fffaf0e8;color:#694387;font-weight:700}
.beat-duel-banner:focus-visible{outline:3px solid #745293;outline-offset:4px}
.cozy-ui .game-content .beat-history-card{--beat-history-bg:#fffaf3;--beat-history-text-lift:clamp(16px,6vw,24px);padding:0;overflow:hidden;background:var(--beat-history-bg)}
.beat-history-card__header{position:relative;aspect-ratio:21/9;margin-bottom:calc(-1 * var(--beat-history-text-lift));background:var(--beat-history-bg)}
.beat-history-card__header>img{display:block;width:100%;height:100%;object-fit:cover}
.beat-history-card__header::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 30%,#fffaf366 55%,var(--beat-history-bg) 96%);pointer-events:none}
.beat-history-card__header h2{position:absolute;z-index:1;left:12px;right:12px;bottom:var(--beat-history-text-lift);margin:0;text-align:center;font-size:clamp(16px,4.2vw,21px);font-weight:700;line-height:1.5;color:#634581;text-shadow:0 1px 4px #fffaf3}
.beat-history-card__body{position:relative;z-index:1;padding:14px 16px 18px;margin:0}
.ux-panel { scroll-margin-top:140px; min-width:0; }
.battle-replay-status{display:grid;gap:4px;margin-top:12px;padding:10px 12px;border:1px solid #c5af85;border-radius:12px;background:#fff8e8;color:#60466f}.battle-replay-status strong{font-size:14px}.battle-replay-status>span{font-size:11px;line-height:1.6}.battle-replay-status progress{display:block;width:100%;height:6px;accent-color:#87639e}
.battle-result-heading{font-size:12px;font-weight:700;color:#78618b}.battle-result-actions .btn-primary,.battle-result-actions .btn-secondary,.battle-playback-controls button{gap:5px;font-size:12px;line-height:1.4}.battle-result-actions img,.battle-playback-controls img{width:24px;height:24px;flex-shrink:0}.battle-result-actions .grid button{flex-wrap:wrap}.battle-retry-cost{margin:10px 0;font-size:11px;line-height:1.6;color:#68536d}
.battle-result-card{padding:14px}.battle-result-card>.popup-art--hero{width:56px;height:56px}
.shop-category-nav{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.shop-category-nav a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #cbb68b;border-radius:12px;background:#fff6df;font-size:13px;font-weight:700;color:#634c31}
.shop-category,#pet-home-decor,#beat-up-catalogue{scroll-margin-top:140px}
.commerce-page .truncate{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.shop-wallet{padding:10px}.shop-wallet .grid>div{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;column-gap:5px;padding:6px 3px}.shop-wallet .grid>div>p:last-child{width:100%}
.beat-catalogue-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:18px;padding:12px;border:1px solid #c9b38c;border-radius:14px;background:linear-gradient(120deg,#fff5dc,#efe5f7);color:#5b3d74}
.beat-catalogue-heading h2{font-size:18px;font-weight:700}.beat-catalogue-heading a{min-height:44px;padding:10px 0;font-size:13px;text-decoration:underline}
.beat-song-summary-title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.commerce-page form[action$="/shop/buy"] button{min-height:44px}
.pet-care-summary{margin:12px 0;padding:12px;border:1px solid #b5cdbc;border-top:3px solid #8b6aa3;border-radius:18px;background:linear-gradient(135deg,#fffaf3,#edf8f1);box-shadow:0 3px 0 #d8e3d8}
.pet-care-summary__identity{display:flex;gap:10px;align-items:center}.pet-care-summary__identity>div{min-width:0}.pet-care-summary h3{font-size:16px;font-weight:700;overflow-wrap:anywhere;color:#563b6d}.pet-care-summary__identity p{font-size:12px;color:#645c6c}
.pet-care-summary__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}.pet-care-summary__stats>div{padding:8px 4px;border:1px solid #ded5e5;border-radius:10px;background:#fffdf8;text-align:center}.pet-care-summary dt{font-size:11px;color:#685b72}.pet-care-summary dd{font-size:13px;font-weight:700;color:#513763;overflow-wrap:anywhere}
.pet-care-summary__hint{margin:8px 0;font-size:11px;color:#655a6d;line-height:1.7}
.mission-category-nav{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.mission-category-nav a{display:flex;align-items:center;min-height:44px;padding:8px 10px;border:1px solid #cab7db;border-radius:12px;background:#f1eaf8;color:#5b3d73;font-size:13px;font-weight:700}
.mission-category{margin-top:16px;border:1px solid #d4c4a7;border-radius:16px;background:#fffaf3;padding:10px;scroll-margin-top:140px}.mission-category>summary{min-height:48px;padding:8px;font-weight:700;color:#583d70;cursor:pointer}.mission-category>summary>span:not([class]){display:block;font-size:11px;font-weight:400;color:#6b6074;margin-top:3px}.mission-category[open]>summary{border-bottom:1px solid #e0d3e7;margin-bottom:10px}.mission-wallet{padding:10px}
#missions-ready{scroll-margin-top:140px}
.mission-category>summary{list-style:none}.mission-category>summary::-webkit-details-marker{display:none}.mission-category>summary:after{content:"⌄";display:inline-block;float:right;margin-left:8px;color:#73528e}.mission-category[open]>summary:after{transform:rotate(180deg)}
.mission-category>summary.flex{flex-wrap:wrap}.mission-category>summary.flex>.min-w-0{min-width:150px}
.ux-all-modes{display:block;margin:8px 0;color:#694588;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:10px 0}
.lobby-next-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;min-height:60px;border:1px solid #bda16b;border-radius:14px;background:linear-gradient(125deg,#72518e,#493766);color:#fff8e8;box-shadow:0 3px 0 #b8a1c8}
.lobby-next-action>span{font-size:12px;line-height:1.5}.lobby-next-action>strong{font-size:15px;text-align:right;line-height:1.5}
.combat-team-editor>summary{color:#65477c;background:#f0e7f8;border-radius:10px;padding:12px;list-style:disclosure-closed}
.combat-team-editor[open]>summary{list-style:disclosure-open}
#dungeon-floor-list,#world-boss-challenge{scroll-margin-top:140px}
.onboarding-steps{display:flex;gap:6px;margin:16px 0;padding:0;list-style:none;counter-reset:onboard}
.onboarding-steps li{flex:1;min-width:0;padding:10px 4px;text-align:center;font-size:12px;border:1px solid #ded3e8;border-radius:12px;background:#f4f0f6;color:#655b6b;counter-increment:onboard}
.onboarding-steps li:before{content:counter(onboard);display:block;margin:0 auto 4px;width:24px;height:24px;border-radius:50%;background:#e6d9ef;line-height:24px;font-weight:700}
.onboarding-steps li[aria-current=step]{border-color:#9d7bb5;background:#eee3f6;color:#503267;font-weight:700}
.engagement-section-art{position:relative;aspect-ratio:21/9;margin:4px 0 14px;border:1px solid #c2ae82;border-radius:18px;overflow:hidden;background:#fffaf3;box-shadow:0 3px 0 #e4d7bc}
.social-page .game-card{border-color:#d4c4a7;background:linear-gradient(135deg,#fffaf3,#f7f2fb);box-shadow:0 3px 0 #e6dac5}
.social-page .game-card.border-mint-300{border-color:#8cbaa5}
.social-message{border-color:#ddd3bf;background:#fffaf5}
.social-message.is-unread{border-color:#ad91ca;border-left:3px solid #9672b3;background:linear-gradient(120deg,#fffdf8,#f7f0ff)}
.social-message.is-read{background:#faf6ef;border-color:#e2dbd0}
.social-members input[name=q]{min-width:0}
.social-profile-identity{padding:14px 8px;border:1px solid #deceaf;border-radius:18px;background-image:linear-gradient(to bottom,#fffaf355,#fffaf3 150px),var(--social-profile-art);background-size:100% 180px;background-repeat:no-repeat;background-color:#fffaf3}
.commerce-page .game-card{border-color:#d4c4a7;background:linear-gradient(135deg,#fffaf3,#f7f2fb);box-shadow:0 3px 0 #e6dac5}
.commerce-page .game-card.border-sky-300{border-color:#88b6ce}
.commerce-page .game-card.border-mint-300{border-color:#87b69b}
.commerce-page>div.mt-5>div.flex.items-center.gap-2.px-1,.commerce-page>div.mt-5>h2{padding:10px 12px;border-left:3px solid #ab8f50;border-radius:4px 12px 12px 4px;background:linear-gradient(90deg,#f1e5c9,#f4edf8)}
.commerce-orders .code-copy{border:1px solid #ded0b5;background:#fffdf6}
@media(max-width:360px){.commerce-orders .game-card>.flex{flex-wrap:wrap}.commerce-orders .game-card>.flex>.min-w-0{min-width:160px}}
.engagement-section-art>img{display:block;width:100%;height:100%;object-fit:cover}
.engagement-section-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.engagement-section-art h1,.engagement-section-art h2{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;margin:0;text-align:center;color:#58416e;font-weight:700;line-height:1.4}
.engagement-section-art h1{font-size:clamp(18px,4.6vw,25px)}
.engagement-section-art h2{font-size:clamp(16px,4.2vw,21px)}
.engagement-page .game-card{border-color:#d7cbb3;background:linear-gradient(135deg,#fffaf3,#faf6fe);box-shadow:0 3px 0 #e6dac5}
.engagement-page .game-card.border-mint-300{border-color:#8cbaa5}
.engagement-page .game-card.border-gold-300{border-color:#c3a24d}
.engagement-page .game-card.border-grape-300{border-color:#ad91ca}
.missions-game-page .mission-card{border-left:3px solid #a18a5a}
.missions-game-page .mission-card.border-mint-300{border-left-color:#659986}
.missions-game-page .mission-reward{border:1px solid #e2d2a5;background:#fff5dc}
.collection-game-page .collection-hero{padding:0;background:none;border:0;box-shadow:none}
.collection-game-page .collection-totals{padding:12px;border:1px solid #d7c5a0;border-radius:14px;background:linear-gradient(120deg,#fff4db,#f7f1fb)}
.collection-game-page .collection-section{border-color:#cdbd9c;border-top:3px solid #95805a;background:#fffaf3;box-shadow:0 3px 0 #e3d7c1}
.collection-game-page .collection-tile{border-color:#d9cfdf;background:#fffdf9}
.collection-game-page .collection-tile.is-found{border-color:#8eaf9b;box-shadow:inset 0 3px 0 #9fbcab}
.collection-game-page .collection-tile.is-locked{border-style:dashed}
.collection-game-page .collection-floor-card{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,#f5df9e66,transparent 65%),#fffaf3}
.collection-game-page .collection-floor-card--illustrated{padding-top:154px}
.collection-floor-card__boss{position:absolute;top:6px;left:0;width:100%;height:168px;object-fit:contain;object-position:center top;pointer-events:none}
.collection-floor-card__fade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,transparent 105px,#fffaf3d9 158px,#fffaf3 190px)}
.collection-floor-card>:not(.collection-floor-card__boss):not(.collection-floor-card__fade){position:relative;z-index:1}
.collection-floor-card--illustrated>.collection-floor-number{position:absolute!important;top:8px;left:8px;width:30px;height:30px;border:2px solid #fffaf3;background:#ede2f5e8;font-size:13px;box-shadow:0 2px 4px #47325526}
.collection-game-page .collection-title{border-color:#d7c7ae;background:linear-gradient(120deg,#fffaf3,#f6f0fa)}
.guild-section-art{position:relative;aspect-ratio:21/9;margin:4px 0 14px;border:1px solid #c7b38a;border-radius:18px;overflow:hidden;background:#fffaf3;box-shadow:0 3px 0 #e4d7bd}
.guild-section-art>img{display:block;width:100%;height:100%;object-fit:cover}
.guild-section-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.guild-section-art h1,.guild-section-art h2{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;margin:0;text-align:center;color:#58416e;font-weight:700;line-height:1.4}
.guild-section-art h1{font-size:clamp(20px,5vw,26px)}
.guild-section-art h2{font-size:clamp(16px,4.2vw,21px)}
.guild-page .game-card{border-color:#d7cbb4;background:linear-gradient(135deg,#fffaf3,#faf6fe);box-shadow:0 3px 0 #e5dac5}
.guild-page .guild-identity-card{border:1px solid #bea671;border-top:3px solid #9574a2;background:linear-gradient(145deg,#f3edf9,#fffaf3);box-shadow:0 4px 0 #dfd1b5}
.guild-page form.game-card{border-top:3px solid #9e8654}
.guild-page .game-card>.font-bold:first-child{padding-bottom:9px;border-bottom:1px solid #e5d9c3;color:#58416e}
.guild-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.guild-page textarea{border-color:#ccbed8}
.world-boss-lobby-hero,.world-boss-section-art{position:relative;aspect-ratio:21/9;overflow:hidden;border-radius:18px;background:#fffaf3}
.world-boss-lobby-hero{margin:4px 0 16px;border:1px solid #ad9470;box-shadow:0 3px 0 #ddd0b8}
.world-boss-section-art{margin-bottom:12px}
.world-boss-lobby-hero>img,.world-boss-section-art>img{display:block;width:100%;height:100%;object-fit:cover}
.world-boss-lobby-hero::after,.world-boss-section-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.world-boss-lobby-hero h1,.world-boss-section-art h2{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;margin:0;text-align:center;color:#58416e;font-weight:700;line-height:1.4}
.world-boss-lobby-hero h1{font-size:clamp(20px,5vw,26px)}
.world-boss-section-art h2{font-size:clamp(16px,4.2vw,21px)}
.world-boss-competition-page .game-card{border-color:#d3c6b0;background:linear-gradient(135deg,#fffaf3,#f8f3fc);box-shadow:0 3px 0 #e2d6c2}
.world-boss-competition-page .world-boss-hp-card{position:relative;isolation:isolate;padding:0 16px 18px;border:2px solid #b59a63;border-top:4px solid #73568c;background:linear-gradient(#eae4ef,#fffaf3 72%);box-shadow:0 5px 0 #c6ad7f,0 12px 30px #44344f35}
.world-boss-hp-card>p:first-child{position:absolute;z-index:2;top:10px;left:50%;transform:translateX(-50%);width:max-content;max-width:95%;margin:0;padding:5px 16px;border:1px solid #d2b979;border-radius:6px 6px 14px 14px;background:linear-gradient(#574364,#332c42);box-shadow:0 3px 8px #17252c55;color:#fff0bd;font-weight:700}
.world-boss-showcase{position:relative;aspect-ratio:6/5;margin:0 -16px 0;overflow:hidden;border-radius:16px 16px 0 0;background:#30434a;border-bottom:2px solid #b59a63}
.world-boss-showcase__scene{display:block;width:100%;height:100%;object-fit:cover}
.world-boss-showcase__boss{position:absolute;z-index:1;width:72%;height:83%;left:14%;bottom:8%;object-fit:contain;filter:drop-shadow(0 3px 2px #e7faffaa) drop-shadow(0 9px 5px #14232999)}
.world-boss-showcase.is-defeated .world-boss-showcase__boss{filter:saturate(.45) drop-shadow(0 8px 5px #14232999)}
.world-boss-hp-card h2{display:table;margin:12px auto 0;padding:4px 18px;border-bottom:2px solid #c7ab72;font-size:clamp(22px,6vw,28px);font-weight:700;color:#51365f}
.world-boss-vitality{margin-top:12px;padding:10px 12px;border:1px solid #bda16b;border-radius:12px;background:linear-gradient(135deg,#40364e,#252d3b);color:#fff2cb;box-shadow:inset 0 1px 0 #ffffff22}
.world-boss-hp-card .world-boss-vitality [role="progressbar"]{height:18px;margin-top:0;border:1px solid #dfc281;background:#171e2c;box-shadow:inset 0 1px 3px #0006}
.world-boss-vitality [role="progressbar"]>div{background:linear-gradient(180deg,#ff9b95,#ee4565 50%,#bc244d);box-shadow:inset 0 2px 0 #ffffff55}
.world-boss-competition-page .ux-editor{border-top:3px solid #8a739b;background:#f8f3fb}
.world-boss-competition-page #world-boss-achievements{border-top:3px solid #b69a5e}
.world-boss-competition-page #world-boss-rewards{border-top:3px solid #9b8350}
.world-boss-battle-heading{padding:12px;border:1px solid #bda77a;border-top:3px solid #9674a4;border-radius:16px;background:linear-gradient(120deg,#fff4df,#eee6f6)}
.world-boss-replay-page .arena-stage{border:2px solid #a78e5c;box-shadow:0 4px 0 #d8c7a3,0 9px 22px #49335824}
.world-boss-replay-page [data-arena-result]>div{border:2px solid #b59961;background:linear-gradient(145deg,#fffaf3,#eee6f7)}
.world-boss-replay-page .game-card{border-top:3px solid #8a7199}
.dungeon-lobby-hero,.dungeon-section-art{position:relative;aspect-ratio:21/9;overflow:hidden;border-radius:18px;background:#fffaf3}
.dungeon-lobby-hero{margin:4px 0 10px;border:1px solid #a99575;box-shadow:0 3px 0 #ddd0b8}
.dungeon-section-art{margin-bottom:12px}
.dungeon-lobby-hero>img,.dungeon-section-art>img{display:block;width:100%;height:100%;object-fit:cover}
.dungeon-lobby-hero::after,.dungeon-section-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.dungeon-lobby-hero h1,.dungeon-section-art h2{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;margin:0;text-align:center;color:#58416e;font-weight:700;line-height:1.4}
.dungeon-lobby-hero h1{font-size:clamp(20px,5vw,26px)}
.dungeon-section-art h2{font-size:clamp(16px,4.2vw,21px)}
.dungeon-competition-page .game-card{border-color:#d6c9b2;background:linear-gradient(135deg,#fffaf3,#faf6fe);box-shadow:0 3px 0 #e5dbc8}
.dungeon-competition-page .dungeon-quota-card{border-color:#baa16c;background:linear-gradient(120deg,#fff5df,#f5effb)}
.dungeon-competition-page .ux-editor{border-top:3px solid #89729b;background:#f8f3fb}
.dungeon-competition-page .dungeon-floor-card{box-shadow:0 4px 0 #d9cbb2,0 8px 18px #49335812}
.dungeon-competition-page .dungeon-floor-card__header{border-bottom:2px solid #b49659}
.dungeon-battle-heading{padding:12px;border:1px solid #bba57e;border-top:3px solid #8b709d;border-radius:16px;background:linear-gradient(120deg,#fff5df,#eee7f5)}
.dungeon-replay-page .arena-stage{border:2px solid #a58c59;box-shadow:0 4px 0 #d7c7a4,0 9px 22px #49335824}
.dungeon-replay-page [data-arena-result]>div{border:2px solid #b39760;background:linear-gradient(145deg,#fffaf3,#eee7f6)}
.dungeon-replay-page .game-card,.dungeon-run-summary .game-card{border-top:3px solid #89749a}
.arena-lobby-hero,.arena-section-art{position:relative;aspect-ratio:21/9;overflow:hidden;border-radius:18px;background:#fffaf3}
.arena-lobby-hero{margin:4px 0 10px;border:1px solid #baa173;box-shadow:0 3px 0 #e4d7bd}
.arena-section-art{margin-bottom:12px}
.arena-lobby-hero>img,.arena-section-art>img{display:block;width:100%;height:100%;object-fit:cover}
.arena-lobby-hero::after,.arena-section-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.arena-lobby-hero__copy,.arena-section-art h2{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;margin:0;text-align:center;color:#58416e;font-weight:700;line-height:1.4}
.arena-lobby-hero h1{font-size:clamp(20px,5vw,26px);font-weight:700;margin:0}
.arena-section-art h2{font-size:clamp(16px,4.2vw,21px)}
.arena-competition-page .game-card{border-color:#d7c9de;background:linear-gradient(135deg,#fffaf3,#fcf9ff);box-shadow:0 3px 0 #e7ddea}
.arena-competition-page .arena-rating-card{border-color:#bca16b;background:linear-gradient(120deg,#fff4db,#faf6ff)}
.arena-competition-page .ux-editor{border-top:3px solid #8a759b;background:#f8f3fb}
.arena-competition-page #arena-opponents{border-top:3px solid #a88b54}
.arena-battle-heading{padding:12px;border:1px solid #c6b184;border-top:3px solid #a78a53;border-radius:16px;background:linear-gradient(120deg,#fff6e2,#f4edf9)}
.arena-replay-page .arena-stage{border:2px solid #ac945f;box-shadow:0 4px 0 #d8c8a5,0 9px 22px #49335824}
.arena-replay-page [data-arena-result]>div{border:2px solid #b89a59;background:linear-gradient(145deg,#fffaf3,#f3edf9);box-shadow:0 5px 0 #75618540}
.arena-replay-page .game-card{border-top:3px solid #897398}
.draw-game-hero,.draw-tier-header{position:relative;aspect-ratio:21/9;overflow:hidden;border-radius:18px;background:#fffaf3}
.draw-game-hero{margin:4px 0 16px;border:1px solid #cbb27b;box-shadow:0 3px 0 #e4d6b6}
.draw-game-hero>img,.draw-tier-header>img{display:block;width:100%;height:100%;object-fit:cover}
.draw-game-hero::after,.draw-tier-header::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.draw-game-hero__copy{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;text-align:center}
.draw-game-hero h1{margin:0;font-size:clamp(20px,5vw,27px);font-weight:700;line-height:1.3;color:#58416e}
.draw-game-hero__copy p{font-size:12px;color:#776681;margin:2px 0 0}
.draw-game-page .draw-wallet-card{border-top:3px solid #aa8b4d;background:linear-gradient(135deg,#fffaf3,#f6f0fa);box-shadow:0 3px 0 #e6d9c3}
.draw-wallet-card>div:first-child{border:1px solid #ddc58a;background:linear-gradient(120deg,#fff2cf,#fffaf3)}
.draw-tier-section{padding:12px;border:1px solid #d8c9b1;border-radius:20px;background:#fffaf3;box-shadow:0 3px 0 #e5d9c5}
.draw-tier-section[data-draw-tier="normal"]{border-top:3px solid #79a590}
.draw-tier-section[data-draw-tier="special"]{border-top:3px solid #7b9ebd}
.draw-tier-section[data-draw-tier="rare"]{border-top:3px solid #8b6b9f}
.draw-tier-header h2{position:absolute;z-index:1;bottom:8px;left:10px;right:10px;margin:0;text-align:center;font-size:clamp(16px,4.2vw,21px);font-weight:700;color:#58416e;line-height:1.4}
.draw-game-page .draw-event-card{border:1px solid #ded3e5;border-radius:16px;background:#fffdf9;box-shadow:0 3px 0 #e7dfed}
.draw-game-page .draw-event-card.border-gold-400{border:2px solid #c5a354}
.draw-event-card [data-draw-prizes-open],.draw-event-card [data-draw-open]{gap:5px;padding-left:6px;padding-right:6px;font-size:13px;white-space:nowrap}
.draw-event-card [data-draw-prizes-open] img,.draw-event-card [data-draw-open] img{width:20px;height:20px;flex-shrink:0}
.draw-game-page .draw-history-card{border-top:3px solid #9c8b75;background:linear-gradient(135deg,#fffaf3,#f6f0fa)}
.draw-game-page .draw-jackpot-card{border-top:3px solid #c0a15c;background:linear-gradient(120deg,#fff5da,#fffaf3)}
.rank-game-hero,.rank-team-header{position:relative;aspect-ratio:21/9;overflow:hidden;border-radius:18px;background:#fffaf3}
.rank-game-hero{margin:4px 0 16px;border:1px solid #d6c49a;box-shadow:0 3px 0 #dfd2b9}
.rank-game-hero>img,.rank-team-header>img{display:block;width:100%;height:100%;object-fit:cover}
.rank-game-hero::after,.rank-team-header::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 62%,#fffaf3 98%);pointer-events:none}
.rank-game-hero__copy{position:absolute;z-index:1;bottom:7px;left:10px;right:10px;text-align:center}
.rank-game-hero h1{margin:0;font-size:clamp(24px,6vw,32px);font-weight:700;line-height:1.2;color:#57406b;text-shadow:0 1px 3px #fffaf3}
.rank-game-page .ux-tabs{border:1px solid #d5c7df;background:#ede6f4}
.rank-game-page .rank-player-record{position:relative;isolation:isolate;background:#fffaf3;border:1px solid #cab987;border-left:4px solid #a68b4d;box-shadow:0 3px 0 #e8dfca}
.rank-player-record::after{content:"";position:absolute;z-index:-1;inset:0 0 auto;width:100%;aspect-ratio:21/9;max-height:100%;border-radius:inherit;background-image:linear-gradient(to bottom,#fffaf366 0%,#fffaf3 95%),var(--rank-card-art);background-size:100% 100%;pointer-events:none}
.rank-player-record>strong{display:block;color:#584369;font-size:14px;margin-bottom:8px}
.rank-player-record>p{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0;padding:6px 10px;border:1px solid #e8dfcb;border-radius:10px;background:#fffdf7d9}
.rank-player-record>p>b{font-size:13px;color:#65517d;text-align:right}
.rank-game-page .rank-weekly-card{border-top:3px solid #ab9159;background:linear-gradient(135deg,#fffaf3,#faf6fe);box-shadow:0 4px 0 #e6d9c4}
.rank-team-header{margin-bottom:8px}
.rank-team-header h2{position:absolute;z-index:1;bottom:8px;left:8px;right:8px;margin:0;text-align:center;color:#584369;font-size:clamp(15px,4vw,20px);font-weight:700;line-height:1.4}
.rank-game-page #team-quest-ranking{border-top:3px solid #897196;background:#fffaf3}
.rank-game-page [data-team-rank]{border:1px solid #ded4e6;border-left:3px solid #a38ab2;background:#fffdf8}
.rank-game-page [data-team-rank="1"]{border-color:#c9a95f;background:linear-gradient(120deg,#fff5d8,#fffdf7)}
.rank-game-page [data-team-rank="2"]{border-color:#b9becb;background:linear-gradient(120deg,#eef0f6,#fffdf7)}
.rank-game-page [data-team-rank="3"]{border-color:#caab93;background:linear-gradient(120deg,#faeade,#fffdf7)}
.pet-section-art{position:relative;aspect-ratio:21/9;margin:0 0 12px;border-radius:16px;overflow:hidden;background:#fffaf3}
.pet-section-art>img{display:block;width:100%;height:100%;object-fit:cover}
.pet-section-art::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 30%,#fffaf366 60%,#fffaf3 96%);pointer-events:none}
.pet-section-art h2{position:absolute;z-index:1;left:10px;right:10px;bottom:8px;margin:0;text-align:center;font-size:clamp(16px,4.2vw,21px);font-weight:700;line-height:1.5;color:#634581;text-shadow:0 1px 4px #fffaf3}
.pet-art-link{overflow:hidden}
.pet-art-link>.shrink-0{display:none}
.cozy-ui .game-content .pet-art-bg{position:relative;isolation:isolate;background:#fffaf3}
.pet-art-bg::after{content:"";position:absolute;z-index:-1;top:0;left:0;width:100%;aspect-ratio:21/9;max-height:100%;border-radius:inherit;background-image:linear-gradient(to bottom,#fffaf373 0%,#fffaf373 35%,#fffaf3 94%),var(--pet-card-art);background-position:center top;background-size:100% 100%;background-repeat:no-repeat;pointer-events:none}
.cozy-ui .game-content .home-art-card{position:relative;isolation:isolate;background:#fffaf3}
.home-art-card::after{content:"";position:absolute;z-index:-1;top:0;left:0;width:100%;aspect-ratio:21/9;max-height:100%;border-radius:inherit;background-image:linear-gradient(to bottom,#fffaf326 0%,#fffaf326 42%,#fffaf399 72%,#fffaf3 92%),var(--home-card-art);background-position:center top;background-size:100% 100%;background-repeat:no-repeat;pointer-events:none}
.home-art-card>summary{color:#59416e;text-shadow:0 1px 3px #fffaf3}
.home-art-card .daily-plan{background:#fffaf3b3}
.home-art-card--together>.mt-3>p{padding:4px 6px;border-radius:8px;background:#fffaf3e6;color:#75647c}
.cozy-ui .game-content .home-community-feed{padding:0;overflow:hidden;background:#fffaf3}
.home-community-feed__header{position:relative;aspect-ratio:21/9;background:#fffaf3}
.home-community-feed__header>img{display:block;width:100%;height:100%;object-fit:cover}
.home-community-feed__header::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 60%,#fffaf3 98%);pointer-events:none}
.home-community-feed__header h2{position:absolute;z-index:1;left:12px;right:12px;bottom:8px;margin:0;text-align:center;font-size:clamp(16px,4.2vw,21px);font-weight:700;line-height:1.5;color:#634581;text-shadow:0 1px 4px #fffaf3}
.home-community-feed__body{padding:0 12px 16px}
.beat-duel-rules{position:relative;isolation:isolate;overflow:hidden;background:#fffaf3}
.beat-duel-rules__art{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;opacity:.7;pointer-events:none}
.beat-duel-rules>p{position:relative;padding:4px;border-radius:10px;background:#fffaf3c9;line-height:1.8}
.beat-duel-rules .text-slate-400{color:#75647c}
.cozy-ui .game-content .beat-duel-list{padding:0;overflow:hidden;background:#fffaf3}
.beat-duel-list__header{position:relative;aspect-ratio:21/9;margin-bottom:-12px;background:#fffaf3}
.beat-duel-list__header>img{display:block;width:100%;height:100%;object-fit:cover}
.beat-duel-list__header::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 35%,#fffaf366 60%,#fffaf3 98%);pointer-events:none}
.beat-duel-list__header h2{position:absolute;z-index:1;left:12px;right:12px;bottom:16px;margin:0;text-align:center;font-size:clamp(16px,4.2vw,21px);font-weight:700;line-height:1.5;color:#634581;text-shadow:0 1px 4px #fffaf3}
.beat-duel-list__body{position:relative;z-index:1;padding:0 16px 16px}
.ux-panel-title { font-size:17px; font-weight:700; margin:18px 0 8px; color:#493955; }
.ux-filter { padding:14px; border:1px solid #e5ddeb; border-radius:18px; background:#fffdf8; margin:12px 0; }
.ux-filter label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.ux-filter input { width:100%; min-height:44px; padding:10px 12px; border:1px solid #b8acc7; border-radius:12px; background:#fff; font:inherit; font-size:14px; }
.ux-filter-group { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; align-items:center; }
.ux-filter-group > span { flex-basis:100%; font-size:12px; font-weight:600; color:#62556d; }
.ux-chip { min-height:44px; padding:8px 12px; border:1px solid #d5c8df; border-radius:13px; color:#584364; font-size:13px; background:#fff; }
.ux-chip[aria-pressed="true"] { color:#fff; background:#745293; border-color:#745293; }
.ux-filter-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; font-size:12px; color:#62556d; }
.ux-filter-footer button { min-height:44px; text-decoration:underline; padding:6px; }
.ux-empty { padding:20px 12px; text-align:center; color:#62556d; font-size:14px; border:1px dashed #c7b5d3; border-radius:16px; }
.ux-roster { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.ux-roster-card { min-width:0; padding:12px; border:1px solid #dfd3e9; border-radius:18px; background:#fffdf8; }
.ux-roster-card img { width:72px; height:72px; object-fit:contain; margin:auto; }
.ux-roster-card strong { display:block; overflow-wrap:anywhere; font-size:14px; }
.ux-roster-card p { font-size:12px; line-height:1.6; color:#62556d; }
.ux-roster-card a { display:block; min-height:44px; padding:10px 0 0; color:#65447e; font-size:13px; font-weight:700; }
.ux-editor { margin-top:14px; border:1px solid #d9c8e7; border-radius:18px; padding:12px; background:#fffdf9; scroll-margin-top:140px; }
.ux-editor > summary { cursor:pointer; font-weight:700; font-size:14px; padding:10px 4px; min-height:44px; }
.ux-editor[open] > summary { border-bottom:1px solid #ebe2f1; }
.ux-readiness { margin-top:18px; padding:16px; border:1px solid #b8dccc; border-radius:22px; background:linear-gradient(135deg,#f0fbf5,#f6f0ff); }
.ux-readiness h2 { font-size:17px; font-weight:700; }
.ux-readiness p { font-size:13px; line-height:1.7; color:#554d63; }
.ux-readiness dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.ux-readiness dl div { min-width:0; padding:10px; border-radius:14px; background:#ffffffb8; }
.ux-readiness dt { font-size:12px; color:#62556d; }
.ux-readiness dd { font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.ux-team-thumbs { display:flex; gap:8px; margin:12px 0; }
.ux-team-thumbs > span { flex:1; min-width:0; text-align:center; font-size:12px; overflow-wrap:anywhere; }
.ux-team-thumbs img { width:56px; height:56px; object-fit:contain; margin:auto; }
.ux-readiness button { margin-top:12px; }
.ux-next { padding:16px; border-radius:22px; border:1px solid #dac9e8; background:linear-gradient(135deg,#efe7fb,#fff3df); margin-top:18px; }
.ux-next h2 { font-size:18px; font-weight:700; }
.ux-next p { font-size:14px; color:#554d63; line-height:1.7; margin-top:6px; }
.ux-next > a { margin-top:12px; width:100%; }
.ux-rank-self { padding:12px 14px; margin:12px 0; border:1px solid #d2bfdf; border-radius:16px; background:#f3ecfc; font-size:14px; line-height:1.8; }
.ux-section-link { display:block; min-height:44px; padding:10px 4px; color:#65447e; font-size:14px; font-weight:600; }
.cozy-ui .game-content :is([class~="text-[9px]"],[class~="text-[10px]"],[class~="text-[11px]"]) { font-size:12px; line-height:1.6; }
.cozy-ui .game-content [class~="text-slate-400"] { color:#64748b; }
.cozy-ui .game-content .ux-action-label { font-size:13px; }
.ux-editor button[aria-label^="บันทึก"] { gap:6px; }
.ux-editor [id^="pet-reserve-"] { scroll-margin-top:140px; }
.ux-editor .pet-slider { min-width:0; max-width:100%; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch; }
.ux-editor .pet-slider.is-dragging { scroll-snap-type:none; scroll-behavior:auto; user-select:none; cursor:grabbing; }
.cozy-ui :is(a,button,input,summary):focus-visible { outline:3px solid #8c65ad; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .ux-tabs *, .ux-chip { transition:none; } }
.decision-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 10px}
.decision-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #cbb8d7;border-radius:13px;background:#fffaf3;color:#604576;font-size:13px;font-weight:700;text-decoration:none;box-shadow:0 2px 0 #e7ddec}
.decision-nav a:focus-visible,.collection-focus-goal:focus-visible{outline:3px solid #765293;outline-offset:3px}
.decision-note{font-size:12px;line-height:1.7;color:#655b6c;margin:10px 0}
.decision-note a{color:#684583;font-weight:700;text-decoration:underline}
.draw-payment-note{display:flex;flex-direction:column;gap:3px;margin-top:12px;padding:10px 12px;border:1px solid #c8dcd2;border-radius:12px;background:#f0faf4;font-size:12px;line-height:1.6;color:#3d6554}
.draw-payment-note strong{font-size:14px}
.draw-payment-note .draw-shortage{color:#9b3554;font-weight:700}
#draw-popup .game-popup__panel{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px}
.draw-game-page [id^="draw-tier-"],.guild-page [id^="clan-"],.guild-page #team-quests{scroll-margin-top:140px}
.rank-period{display:block;font-size:12px;line-height:1.7;color:#6d6076;font-weight:400}
.rank-player-record>p{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #e0d3e5}
.rank-player-record>p span small{display:block;font-size:12px;color:#6d6076}
.rank-player-record>p b{font-size:17px;text-align:right;overflow-wrap:anywhere}
.collection-focus{margin:16px 0;padding:16px;border:1px solid #bba273;border-top:3px solid #9a7baf;border-radius:18px;background:linear-gradient(135deg,#fff9eb,#f5eef9);box-shadow:0 3px 0 #e3d6c0}
.collection-focus h2{font-size:18px;font-weight:800;color:#604576;margin-bottom:8px}
.collection-focus-goal{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #dfd0e5;color:#604576;text-decoration:none;min-height:60px}
.collection-focus-goal span{min-width:0}
.collection-focus-goal strong{display:block;font-size:14px}
.collection-focus-goal small{display:block;color:#6d6076;font-size:12px;line-height:1.6}
.collection-focus-goal b{font-size:14px;flex-shrink:0}
.team-tools>summary{cursor:pointer;font-weight:800;color:#604576;min-height:44px;padding:10px 0}
.team-tools>summary small{display:block;font-size:12px;font-weight:400;color:#6d6076}
[data-home-preview]{position:relative}
#home-editor{scroll-margin-top:140px}
[data-home-preview] .pet-home-room{aspect-ratio:.85}
.home-slot-controls{position:absolute;inset:0;z-index:4;pointer-events:none}
.home-slot-controls button{position:absolute;transform:translate(-50%,-45%);width:28%;height:16%;min-width:44px;min-height:44px;border:1px dashed #76529399;border-radius:14px;background:#fffaf31a;text-align:left;vertical-align:top;font-size:12px;color:#604576;font-weight:700;padding:4px;pointer-events:auto}
.home-slot-controls button:focus-visible,.home-slot-controls button:hover,.home-slot-controls button.is-selected{background:#efe2fa55;border:2px solid #765293}
.home-edit-state{padding:10px 12px;border:1px solid #a9c5b7;border-radius:12px;background:#eef8f2;color:#37624c;font-size:13px;font-weight:700}
.home-edit-state.is-dirty{border-color:#d9b66b;background:#fff4d9;color:#7b571c}
.inbox-next-actions{margin:16px 0;padding:14px;border:1px solid #b79d67;border-top:3px solid #8b6b9c;border-radius:18px;background:linear-gradient(135deg,#fff4dc,#f5eef9);color:#604576}
.inbox-next-actions h2{font-size:18px;font-weight:800}
.inbox-next-actions>p{font-size:12px;line-height:1.7;margin:6px 0;color:#716177}
.inbox-next-actions>a{display:flex;align-items:center;gap:8px;min-height:52px;padding:10px 0;border-top:1px solid #ded0dc;font-size:14px;font-weight:600}
.inbox-next-actions>a>span{flex:1;min-width:0}.inbox-next-actions>a>strong{flex-shrink:0}
.stat-growth-preview{margin-top:12px;padding:12px;border:1px solid #c7b2d5;border-radius:12px;background:#fffaf3;font-size:12px;color:#604576}
.stat-growth-preview>.stat-growth-row{display:flex;justify-content:space-between;gap:8px;margin:6px 0}
.stat-growth-preview [data-growth-status]{margin-top:10px;color:#6d6076;line-height:1.7}
.stat-alloc-form .stat-alloc-plus{min-height:44px}
.guild-page .guild-identity-card{padding:18px}
.guild-page .guild-identity-card h1{margin-top:10px}
@media(max-width:360px){.rank-player-record>p b{font-size:14px;max-width:55%}.collection-focus{padding:12px}.decision-nav{gap:6px}}
