/* One magical welcome scene; no hard panel edges. */
.dashboard .party-welcome{background:#eef5f8;border-color:#e6d0a4}
.dashboard .party-welcome::before{inset:0;background:linear-gradient(90deg,#fff7eade 0%,#f9f4ebb0 27%,#edf7ff44 56%,#eae4ffd9 100%),url('/rpg/school/party-v539/welcome-party.webp') center/cover;opacity:1;filter:none}
.dashboard .party-welcome>.welcome-copy{position:relative;z-index:2;background:transparent}
.dashboard .party-welcome .welcome-school-party{background:transparent;border-radius:0;overflow:visible}
.dashboard .party-welcome .welcome-school-party>img{mask-image:linear-gradient(90deg,transparent,#000 12%,#000 85%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 85%,transparent)}
.dashboard .party-welcome .welcome-school-party::after{inset:0 -24px;background:linear-gradient(0deg,#f4f2f0 0%,transparent 17%,transparent 88%,#eef3f244);box-shadow:none}
.dashboard .party-welcome #petStage{background:transparent;border:0;position:relative;z-index:2}
.dashboard .party-welcome .companion-play-ring{background:radial-gradient(ellipse,#fffbeacc,#b8eaff77 50%,#ceb1f338 72%);box-shadow:0 0 30px 12px #dbd5f473,inset 0 0 22px #fff9}
.dashboard .party-welcome figcaption{background:#334c6adb;backdrop-filter:blur(8px);border-color:#fff1c3}
.dashboard .party-welcome h2{text-shadow:0 2px 12px #fff,0 0 24px #fffa}
.dashboard .party-welcome #welcomeLine{color:#374b6c;text-shadow:0 1px 5px #fff}
/* The earned/equipped identity is the first item in the Arena lobby. */
#wordforgeDialog .wf-player-identity{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:clamp(16px,3vw,38px);min-height:150px;padding:12px 26px;margin:0 0 16px;border:1px solid #a3ddff;border-radius:24px;background:radial-gradient(ellipse at 8% 30%,#7947a5,transparent 45%),radial-gradient(ellipse at 82% 100%,#225f89,transparent 55%),linear-gradient(110deg,#202e59,#18283f);box-shadow:inset 0 0 0 4px #82c5f01a,0 6px 20px #28406133;color:#fff3d4}
#wordforgeDialog .wf-player-identity::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 30% 15%,#fff6ae 0 1.5px,transparent 2.5px),radial-gradient(circle at 71% 28%,#98e9ff 0 2px,transparent 3px),radial-gradient(circle at 92% 75%,#ffe396 0 1.5px,transparent 2.5px),linear-gradient(135deg,transparent 48%,#8adeff12 50%,transparent 53%);background-size:auto,auto,auto,200px 200px}
#wordforgeDialog .wf-identity-crest{flex:0 0 210px;position:relative;filter:drop-shadow(0 0 16px #c298ff80)}
#wordforgeDialog .wf-identity-crest .wf-title-badge{width:210px;height:130px;min-height:0;background:none;border:0;box-shadow:none;overflow:visible}
#wordforgeDialog .wf-identity-crest .wf-title-badge img{width:210px;height:130px;object-fit:contain}
#wordforgeDialog .wf-identity-crest .wf-title-badge>b{display:none}
#wordforgeDialog .wf-identity-crest .wf-title-badge>span{font-size:70px}
#wordforgeDialog .wf-identity-copy{min-width:0;flex:1}
#wordforgeDialog .wf-identity-copy>small{color:#aedffa;letter-spacing:2px;font-size:10px;font-weight:900}
#wordforgeDialog .wf-identity-copy h2{margin:7px 0;font-family:var(--quest-display);font-size:38px;font-size:clamp(25px,2.8vw,43px);line-height:1.15;color:#ffe6a4;text-shadow:0 2px #45345d,0 0 20px #e6aa6044;overflow-wrap:anywhere}
#wordforgeDialog .wf-identity-copy p{margin:0;color:#dfedff;font-size:14px}
#wordforgeDialog .wf-identity-copy p>span{color:#7eb7de;padding:0 8px}
#wordforgeDialog .wf-identity-change{border-color:#a3c8ed;background:#304a6d;color:#fff5d4;min-height:46px;flex-shrink:0}
/* 15% more board/frame space, bounded by the available column width. */
#wordforgeDialog .wf-board-shell{width:min(100%,max(333.5px,calc(115svh - 483px)),655.5px)}
#wordforgeDialog .wf-board-shell.ornate{width:min(100%,max(391px,calc(115svh - 310.5px)),736px)}
#wordforgeDialog .wf-meaning-example>strong{display:block;color:#58719a;font-size:10px;letter-spacing:1px;text-transform:uppercase;margin-bottom:4px}
@media (max-width:1199px){.dashboard .party-welcome .welcome-school-party>img{mask-image:linear-gradient(90deg,transparent,#000 10%,#000 93%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 93%,transparent)}}
@media (max-width:760px){#wordforgeDialog .wf-board-shell{width:min(100%,483px)}#wordforgeDialog .wf-board-shell.ornate{width:min(100%,540.5px)}#wordforgeDialog .wf-player-identity{min-height:126px;padding:12px 16px;gap:12px;flex-wrap:wrap}#wordforgeDialog .wf-identity-crest{flex-basis:94px}#wordforgeDialog .wf-identity-crest .wf-title-badge,#wordforgeDialog .wf-identity-crest .wf-title-badge img{width:94px;height:85px}#wordforgeDialog .wf-identity-crest .wf-title-badge>span{font-size:48px}#wordforgeDialog .wf-identity-copy h2{font-size:26px}#wordforgeDialog .wf-identity-copy p{font-size:12px}#wordforgeDialog .wf-identity-change{margin-left:auto;padding:8px 14px;min-height:40px}}
@media (max-width:700px){.dashboard .party-welcome::before{background:linear-gradient(180deg,#fff6e8e8,#eaf6fcba 50%,#e6dcf9c9),url('/rpg/school/party-v539/welcome-party.webp') center/cover}.dashboard .party-welcome .welcome-school-party>img{mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);-webkit-mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent)}.dashboard .party-welcome .welcome-school-party::after{background:none}.dashboard .party-welcome #petStage{border:0}.dashboard .party-welcome .welcome-school-party{border-radius:0}}
.game-music-control{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;padding:9px 13px;border:1px solid #ffebbaaa;border-radius:12px;color:#fff8d9;background:#26265880;box-shadow:inset 0 1px #fff2;font:800 13px/1.2 var(--quest-font,system-ui);cursor:pointer}
.game-music-control:hover{background:#434090}.game-music-control:focus-visible{outline:3px solid #ffea9d;outline-offset:3px}.game-music-control[aria-pressed=false]{background:#272842;color:#dfd9ee}
.ia-topbar .game-music-control{margin-left:auto;margin-right:46px}.synonym-hero .game-music-control,.grammar-hero .game-music-control{margin-left:8px;margin-right:42px}
@media (max-width:600px){.game-music-control{font-size:12px;padding:8px 10px;min-height:40px}.ia-topbar .game-music-control{margin:6px 44px 0 0}.synonym-hero .game-music-control,.grammar-hero .game-music-control{margin:8px 40px 0 0}}
