@import url("style.css");

:root{
  --v11-ink:#17212b;
  --v11-muted:#69737d;
  --v11-paper:#f7f4ec;
  --v11-card:#fffdf8;
  --v11-line:#dedbd2;
  --v11-red:#e34d45;
  --v11-red-dark:#bd3933;
  --v11-green:#23735a;
  --v11-shadow:0 18px 60px rgba(33,42,49,.10);
}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.v11-page{min-height:100vh;margin:0;background:var(--v11-paper);color:var(--v11-ink);font-family:Inter,"Segoe UI",system-ui,sans-serif;overflow-x:hidden}
.v11-page::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.32;background-image:linear-gradient(rgba(23,33,43,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(23,33,43,.025) 1px,transparent 1px);background-size:28px 28px}
.v11-page *{box-sizing:border-box}.v11-page button,.v11-page input,.v11-page select{font:inherit}.v11-page a{color:inherit}.v11-page .shell{width:min(1180px,calc(100% - 40px));margin-inline:auto}
.v11-nav{position:relative;z-index:4;min-height:84px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid var(--v11-line)}
.v11-brand{display:inline-flex;align-items:center;gap:11px;width:max-content;text-decoration:none}.v11-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--v11-red);color:#fff;font-size:13px;font-weight:900;letter-spacing:-.04em;box-shadow:inset 0 -3px 0 rgba(0,0,0,.12)}
.v11-brand>span:last-child{display:flex;align-items:baseline;gap:5px}.v11-brand strong{font-size:17px;letter-spacing:-.04em}.v11-brand small{color:var(--v11-red);font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.v11-nav nav{display:flex;align-items:center;gap:30px}.v11-nav nav a{position:relative;padding:31px 0 28px;color:var(--v11-muted);font-size:13px;font-weight:750;text-decoration:none}.v11-nav nav a:hover,.v11-nav nav a.is-active{color:var(--v11-ink)}.v11-nav nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;border-radius:3px;background:var(--v11-red)}
.v11-account-link{justify-self:end;display:inline-flex;align-items:center;gap:8px;padding:10px 15px;border:1px solid var(--v11-line);border-radius:12px;background:rgba(255,255,255,.55);font-size:12px;font-weight:800;text-decoration:none}.v11-account-link span{color:var(--v11-green);font-size:9px}
.v11-home-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,500px);gap:70px;align-items:start;padding:74px 0 54px}.v11-intro{padding-top:18px}
.v11-eyebrow,.v11-kicker{color:var(--v11-muted);font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.v11-eyebrow{display:flex;align-items:center;gap:9px}.v11-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--v11-green);box-shadow:0 0 0 5px rgba(35,115,90,.1)}
.v11-intro h1{max-width:680px;margin:22px 0 18px;font-size:clamp(48px,6.2vw,78px);line-height:.94;letter-spacing:-.065em}.v11-intro h1 span{color:var(--v11-red)}.v11-lead{max-width:630px;margin:0;color:var(--v11-muted);font-size:17px;line-height:1.7}
.v11-proof{display:flex;flex-wrap:wrap;gap:20px;margin-top:31px}.v11-proof span{display:flex;align-items:center;gap:8px;color:#4c5862;font-size:12px;font-weight:800}.v11-proof b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e9e6dd;color:var(--v11-red);font-size:9px}
.v11-pokemon-line{position:relative;height:175px;margin:38px 0 25px;border-bottom:1px solid var(--v11-line)}.v11-pokemon-line::before{content:"";position:absolute;left:4%;right:4%;bottom:17px;height:1px;background:var(--v11-line)}
.v11-pokemon-line>div{position:absolute;bottom:18px;display:flex;flex-direction:column;align-items:center;gap:3px}.v11-pokemon-line>div:nth-child(1){left:5%}.v11-pokemon-line>div:nth-child(2){left:39%}.v11-pokemon-line>div:nth-child(3){right:8%}.v11-pokemon-line img{width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 13px 10px rgba(38,46,51,.12))}.v11-pokemon-line .is-featured img{width:142px;height:142px}.v11-pokemon-line span{padding:4px 8px;border-radius:7px;background:var(--v11-card);color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.v11-side-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}.v11-join-card,.v11-stat-card{min-height:132px;padding:18px;border:1px solid var(--v11-line);border-radius:17px;background:rgba(255,253,248,.74)}
.v11-join-card{display:grid;grid-template-columns:1fr 120px 44px;gap:8px}.v11-join-card>div{grid-column:1/-1}.v11-join-card h2{margin:3px 0 8px;font-size:18px;letter-spacing:-.035em}.v11-form-error{grid-column:1/-1;margin:3px 0 0;color:var(--v11-red-dark);font-size:11px;font-weight:700}
.v11-input{width:100%;height:44px;padding:0 13px;border:1px solid var(--v11-line);border-radius:11px;outline:none;background:#fffdf8;color:var(--v11-ink);font-size:13px}.v11-input:focus{border-color:var(--v11-red);box-shadow:0 0 0 3px rgba(227,77,69,.1)}.v11-code-input{text-align:center;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.v11-icon-button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:11px;background:var(--v11-ink);color:#fff;font-size:19px;font-weight:900;cursor:pointer}.v11-icon-button:hover{background:var(--v11-red)}
.v11-stat-card{display:flex;flex-direction:column;text-decoration:none}.v11-stat-card strong{margin-top:6px;font-size:16px;line-height:1.25}.v11-stat-card small{margin-top:auto;color:var(--v11-muted);font-size:11px;line-height:1.35}.v11-stat-card small b{float:right;color:var(--v11-red);font-size:16px}
.v11-start-card{overflow:hidden;border:1px solid var(--v11-line);border-radius:24px;background:var(--v11-card);box-shadow:var(--v11-shadow)}.v11-start-card>header{display:flex;align-items:center;gap:14px;padding:25px 28px 21px;border-bottom:1px solid var(--v11-line)}
.v11-step{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--v11-ink);color:#fff;font-size:12px;font-weight:900}.v11-start-card h2{margin:3px 0 0;font-size:22px;letter-spacing:-.04em}
.v11-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:18px 28px 0}.v11-mode-switch label{cursor:pointer}.v11-mode-switch input{position:absolute;opacity:0;pointer-events:none}.v11-mode-switch span{display:block;padding:12px 13px;border:1px solid var(--v11-line);border-radius:13px;color:var(--v11-muted)}.v11-mode-switch b,.v11-mode-switch small{display:block}.v11-mode-switch b{color:var(--v11-ink);font-size:13px}.v11-mode-switch small{margin-top:2px;font-size:10px}.v11-mode-switch input:checked+span{border-color:var(--v11-red);background:rgba(227,77,69,.055);box-shadow:inset 0 0 0 1px var(--v11-red)}
.v11-form-section{padding:20px 28px 26px}.v11-route-preview{display:grid;grid-template-columns:28px 1fr 14px 28px 1fr 14px 28px 1fr;gap:8px;align-items:center;padding:20px 0 25px}.v11-route-number{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#eeebe3;color:var(--v11-red);font-size:10px;font-weight:900}.v11-route-preview b,.v11-route-preview small{display:block}.v11-route-preview b{font-size:11px}.v11-route-preview small{margin-top:2px;color:var(--v11-muted);font-size:9px;line-height:1.25}.v11-route-preview>span:not(.v11-route-number){color:#a6aaa9;font-size:12px}
.v11-primary-button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;padding:0 18px;border:0;border-radius:14px;background:var(--v11-red);color:#fff!important;font-size:13px;font-weight:900;text-decoration:none;cursor:pointer;box-shadow:inset 0 -3px 0 rgba(0,0,0,.13)}.v11-primary-button:hover{background:var(--v11-red-dark)}.v11-primary-button b{font-size:20px}.v11-privacy-note{margin:11px 0 0;text-align:center;color:var(--v11-muted);font-size:10px}
.v11-upload{display:flex;align-items:center;gap:13px;padding:15px;border:1px dashed #bbb8af;border-radius:14px;background:#faf8f2;cursor:pointer}.v11-upload input{position:absolute;opacity:0;pointer-events:none}.v11-upload-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#e8e5dc;color:var(--v11-red);font-weight:900}.v11-upload b,.v11-upload small{display:block}.v11-upload b{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.v11-upload small{margin-top:2px;color:var(--v11-muted);font-size:10px}.v11-rom-meta{margin:7px 0;color:var(--v11-muted);font-family:ui-monospace,monospace;font-size:9px}
.v11-fields{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:9px;margin:15px 0}.v11-fields label>span{display:block;margin:0 0 6px;color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v11-rules{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 17px;padding:0;border:0}.v11-rules legend{width:100%;margin-bottom:5px;color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v11-rules label{cursor:pointer}.v11-rules input{position:absolute;opacity:0}.v11-rules span{display:block;padding:8px 10px;border:1px solid var(--v11-line);border-radius:9px;color:var(--v11-muted);font-size:10px;font-weight:800}.v11-rules input:checked+span{border-color:#8eb7a8;background:#edf5f1;color:var(--v11-green)}
.v11-secondary-link{display:block;margin-top:12px;text-align:center;color:var(--v11-red)!important;font-size:11px;font-weight:850;text-decoration:none}.v11-start-card>footer{display:flex;align-items:center;gap:8px;padding:15px 28px;border-top:1px solid var(--v11-line);background:#f4f1e9;color:var(--v11-muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.v11-start-card>footer b{color:var(--v11-ink)}.v11-start-card>footer i{margin-left:auto;color:var(--v11-green);font-style:normal}.v11-start-card>footer small{font-size:9px}
.v11-footer{position:relative;z-index:1;display:flex;justify-content:space-between;padding:22px 0 28px;border-top:1px solid var(--v11-line);color:var(--v11-muted);font-size:10px}.v11-footer b{color:var(--v11-red)}.v11-page .hidden{display:none!important}
@media (max-width:980px){.v11-home-grid{grid-template-columns:1fr;gap:35px;padding-top:42px}.v11-intro{max-width:760px;margin:auto}.v11-start-card{width:min(100%,620px);margin:auto}.v11-intro h1{font-size:clamp(48px,9vw,74px)}}
@media (max-width:680px){.v11-page .shell{width:min(100% - 24px,1180px)}.v11-nav{min-height:69px;grid-template-columns:1fr auto}.v11-nav nav{position:fixed;z-index:10;left:12px;right:12px;bottom:10px;justify-content:space-around;gap:4px;padding:7px;border:1px solid var(--v11-line);border-radius:16px;background:rgba(255,253,248,.94);box-shadow:0 12px 35px rgba(0,0,0,.15);backdrop-filter:blur(14px)}.v11-nav nav a{padding:9px 12px;font-size:11px}.v11-nav nav a.is-active::after{display:none}.v11-account-link{font-size:0}.v11-account-link::after{content:"Konto";font-size:11px}.v11-home-grid{padding:32px 0 30px}.v11-intro{padding-top:6px}.v11-intro h1{margin-top:18px;font-size:45px}.v11-lead{font-size:14px;line-height:1.55}.v11-proof{gap:9px;margin-top:22px}.v11-proof span{font-size:10px}.v11-pokemon-line{height:140px;margin-top:25px}.v11-pokemon-line img{width:82px;height:82px}.v11-pokemon-line .is-featured img{width:108px;height:108px}.v11-side-actions{grid-template-columns:1fr}.v11-join-card,.v11-stat-card{min-height:auto}.v11-start-card{border-radius:19px}.v11-start-card>header,.v11-form-section{padding-left:18px;padding-right:18px}.v11-mode-switch{padding-left:18px;padding-right:18px}.v11-route-preview{grid-template-columns:27px 1fr;gap:7px 10px}.v11-route-preview>span:not(.v11-route-number){display:none}.v11-fields{grid-template-columns:1fr}.v11-start-card>footer{flex-wrap:wrap;padding-left:18px;padding-right:18px}.v11-start-card>footer i{margin-left:0}.v11-footer{padding-bottom:90px;flex-direction:column;gap:6px}}

/* Account and leaderboard */
.v11-account-shell,.v11-board-shell{position:relative;z-index:1;padding:58px 0 80px}.v11-loading-card{display:flex;align-items:center;justify-content:center;gap:13px;min-height:340px;color:var(--v11-muted)}.v11-loading-card span{width:18px;height:18px;border:2px solid var(--v11-line);border-top-color:var(--v11-red);border-radius:50%;animation:v11spin .8s linear infinite}@keyframes v11spin{to{transform:rotate(360deg)}}
.v11-auth-layout{display:grid;grid-template-columns:1.05fr minmax(360px,460px);gap:80px;align-items:center;min-height:620px}.v11-auth-copy h1{margin:24px 0 18px;font-size:clamp(48px,6vw,72px);line-height:.96;letter-spacing:-.06em}.v11-auth-copy h1 span{color:var(--v11-red)}.v11-auth-copy p{max-width:610px;color:var(--v11-muted);font-size:16px;line-height:1.7}.v11-auth-benefits{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.v11-auth-benefits span{padding:9px 12px;border:1px solid var(--v11-line);border-radius:10px;background:rgba(255,255,255,.5);font-size:11px;font-weight:800}
.v11-auth-card{padding:26px;border:1px solid var(--v11-line);border-radius:22px;background:var(--v11-card);box-shadow:var(--v11-shadow)}.v11-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:24px;padding:4px;border-radius:12px;background:#eeebe3}.v11-auth-tabs button{height:39px;border:0;border-radius:9px;background:transparent;color:var(--v11-muted);font-size:11px;font-weight:850;cursor:pointer}.v11-auth-tabs button.is-active{background:var(--v11-card);color:var(--v11-ink);box-shadow:0 3px 11px rgba(0,0,0,.07)}.v11-auth-card form{display:grid;gap:14px}.v11-auth-card label>span{display:block;margin-bottom:6px;color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.v11-auth-card .v11-primary-button{margin-top:6px}.v11-auth-error{margin:13px 0 0;padding:10px;border-radius:9px;background:#fdecea;color:var(--v11-red-dark);font-size:11px;font-weight:700}.v11-auth-note{display:block;margin-top:16px;color:var(--v11-muted);font-size:9px;line-height:1.5}
.v11-profile-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:30px}.v11-profile-head h1{margin:12px 0 0;font-size:52px;line-height:1;letter-spacing:-.055em}.v11-profile-head p{margin:6px 0 0;color:var(--v11-muted);font-size:12px}.v11-profile-actions{display:flex;gap:8px}.v11-outline-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:1px solid var(--v11-line);border-radius:11px;background:var(--v11-card);color:var(--v11-ink)!important;font-size:11px;font-weight:850;text-decoration:none;cursor:pointer}.v11-outline-button:hover{border-color:var(--v11-red);color:var(--v11-red)!important}
.v11-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.v11-stat-grid article{padding:20px;border:1px solid var(--v11-line);border-radius:16px;background:var(--v11-card)}.v11-stat-grid article.is-accent{border-color:var(--v11-red);background:var(--v11-red);color:#fff}.v11-stat-grid span,.v11-stat-grid small,.v11-stat-grid strong{display:block}.v11-stat-grid span{color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.v11-stat-grid strong{margin:13px 0 7px;font-size:31px;letter-spacing:-.05em}.v11-stat-grid small{color:var(--v11-muted);font-size:9px}.v11-stat-grid .is-accent span,.v11-stat-grid .is-accent small{color:rgba(255,255,255,.75)}
.v11-profile-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-top:14px}.v11-data-card{padding:23px;border:1px solid var(--v11-line);border-radius:18px;background:var(--v11-card)}.v11-data-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.v11-data-card h2{margin:4px 0 0;font-size:20px;letter-spacing:-.04em}.v11-data-card>header>strong{color:var(--v11-red);font-size:12px}.v11-achievement-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v11-achievement-grid article{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--v11-line);border-radius:12px;opacity:.5}.v11-achievement-grid article>span{display:grid;place-items:center;flex:0 0 33px;height:33px;border-radius:10px;background:#e9e6dd;color:var(--v11-muted);font-size:10px;font-weight:900}.v11-achievement-grid b,.v11-achievement-grid small{display:block}.v11-achievement-grid b{font-size:11px}.v11-achievement-grid small{margin-top:2px;color:var(--v11-muted);font-size:9px;line-height:1.3}.v11-achievement-grid article.is-unlocked{border-color:#a9cbbd;background:#f0f7f4;opacity:1}.v11-achievement-grid article.is-unlocked>span{background:var(--v11-green);color:#fff}
.v11-run-list{display:grid;gap:7px}.v11-run-list article{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:11px;border-bottom:1px solid var(--v11-line)}.v11-run-list article:last-child{border-bottom:0}.v11-run-game{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#edeae2;color:var(--v11-red);font-size:9px;font-weight:900}.v11-run-list b,.v11-run-list small{display:block}.v11-run-list b{font-size:11px}.v11-run-list small{margin-top:2px;color:var(--v11-muted);font-size:9px}.v11-run-list time{font:800 10px ui-monospace,monospace}.v11-empty-state{padding:35px 10px;text-align:center;color:var(--v11-muted);font-size:11px}
.v11-board-head{display:flex;align-items:center;justify-content:space-between;min-height:190px}.v11-board-head h1{margin:13px 0 10px;font-size:54px;letter-spacing:-.06em}.v11-board-head p{max-width:610px;margin:0;color:var(--v11-muted);font-size:14px}.v11-board-head img{width:170px;height:170px;object-fit:contain;filter:drop-shadow(0 15px 10px rgba(0,0,0,.12))}.v11-board-tabs{display:flex;gap:6px;margin:22px 0 12px;overflow:auto;padding-bottom:3px}.v11-board-tabs button{flex:0 0 auto;height:40px;padding:0 14px;border:1px solid var(--v11-line);border-radius:11px;background:var(--v11-card);color:var(--v11-muted);font-size:10px;font-weight:850;cursor:pointer}.v11-board-tabs button.is-active{border-color:var(--v11-ink);background:var(--v11-ink);color:#fff}.v11-board-card{overflow:hidden;border:1px solid var(--v11-line);border-radius:18px;background:var(--v11-card);box-shadow:0 13px 38px rgba(0,0,0,.055)}.v11-board-card>header,.v11-board-rows article{display:grid;grid-template-columns:80px 1fr 210px;align-items:center}.v11-board-card>header{padding:13px 20px;border-bottom:1px solid var(--v11-line);background:#f0ede5;color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.v11-board-card>header span:last-child{text-align:right}.v11-board-rows article{min-height:65px;padding:8px 20px;border-bottom:1px solid var(--v11-line)}.v11-board-rows article:last-child{border-bottom:0}.v11-board-rows article.is-you{background:#fff8e6}.v11-rank{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#eeebe3;color:var(--v11-muted);font-size:11px;font-weight:900}.v11-rank.rank-1{background:var(--v11-yellow);color:#5d4813}.v11-rank.rank-2{background:#dce1e4;color:#4b5961}.v11-rank.rank-3{background:#e5c4a4;color:#6a4528}.v11-board-name{display:flex;align-items:center;gap:10px}.v11-board-name i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--v11-ink);color:#fff;font-size:11px;font-style:normal;font-weight:900}.v11-board-name b{font-size:12px}.v11-board-name small{padding:3px 5px;border-radius:5px;background:var(--v11-red);color:#fff;font-size:7px;font-weight:900}.v11-board-rows article>strong{text-align:right;font-size:15px}.v11-board-empty{padding:55px 20px;text-align:center;color:var(--v11-muted);font-size:11px}.v11-board-note{margin:13px 3px 0;color:var(--v11-muted);font-size:9px}
@media (max-width:820px){.v11-auth-layout{grid-template-columns:1fr;gap:35px;min-height:0}.v11-auth-copy{text-align:center}.v11-auth-copy p{margin-inline:auto}.v11-auth-benefits{justify-content:center}.v11-auth-card{width:min(100%,480px);margin:auto}.v11-stat-grid{grid-template-columns:1fr 1fr}.v11-profile-columns{grid-template-columns:1fr}.v11-board-head img{width:120px;height:120px}}
@media (max-width:560px){.v11-account-shell,.v11-board-shell{padding-top:34px;padding-bottom:100px}.v11-auth-copy h1{font-size:43px}.v11-auth-copy p{font-size:13px}.v11-profile-head{align-items:start;flex-direction:column}.v11-profile-head h1{font-size:42px}.v11-profile-actions{width:100%}.v11-profile-actions>*{flex:1}.v11-stat-grid{gap:8px}.v11-stat-grid article{padding:15px}.v11-stat-grid strong{font-size:23px}.v11-achievement-grid{grid-template-columns:1fr}.v11-board-head{min-height:0}.v11-board-head h1{font-size:42px}.v11-board-head img{display:none}.v11-board-card>header,.v11-board-rows article{grid-template-columns:50px 1fr 100px}.v11-board-card>header,.v11-board-rows article{padding-left:12px;padding-right:12px}.v11-board-name i{display:none}.v11-board-rows article>strong{font-size:12px}}

/* Integrated randomizer */
.v11-randomizer-shell{position:relative;z-index:1;padding:34px 0 100px}.v11-randomizer-head{display:flex;align-items:end;justify-content:space-between;gap:35px;margin-bottom:20px}.v11-randomizer-head h1{margin:12px 0 7px;font-size:45px;letter-spacing:-.055em}.v11-randomizer-head p{max-width:660px;margin:0;color:var(--v11-muted);font-size:13px}.v11-randomizer-steps{display:flex;align-items:center;gap:8px;min-width:max-content}.v11-randomizer-steps span{display:flex;align-items:center;gap:6px;color:var(--v11-muted);font-size:9px;font-weight:850}.v11-randomizer-steps span b{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e7e4dc;color:var(--v11-muted);font-size:8px}.v11-randomizer-steps span.is-active{color:var(--v11-ink)}.v11-randomizer-steps span.is-active b{background:var(--v11-red);color:#fff}.v11-randomizer-steps i{width:24px;height:1px;background:var(--v11-line)}
.v11-engine-frame{overflow:hidden;height:calc(100vh - 225px);min-height:620px;padding:0!important;border:1px solid var(--v11-line);border-radius:18px;background:var(--v11-card);box-shadow:var(--v11-shadow)}.v11-engine-frame iframe{display:block;width:100%;height:100%;border:0}.v11-engine-missing{padding:80px 30px!important;border:1px solid var(--v11-line);border-radius:18px;background:var(--v11-card);text-align:center}.v11-result-bar{position:fixed;z-index:30;left:50%;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:30px;width:min(760px,calc(100% - 28px));padding:10px 11px 10px 15px;border:1px solid #34424e;border-radius:15px;background:var(--v11-ink);color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.28);transform:translateX(-50%)}.v11-result-bar>div{display:flex;align-items:center;gap:10px;min-width:0}.v11-result-bar>div>span{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:9px;background:var(--v11-green);font-weight:900}.v11-result-bar p{min-width:0;margin:0}.v11-result-bar p b,.v11-result-bar p small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v11-result-bar p b{font-size:10px}.v11-result-bar p small{margin-top:2px;color:#9aabb8;font-size:8px}.v11-result-bar button{height:40px;padding:0 14px;border:0;border-radius:10px;background:var(--v11-red);color:#fff;font-size:9px;font-weight:900;white-space:nowrap;cursor:pointer}.v11-result-bar button b{margin-left:7px;font-size:14px}.v11-run-setup-dialog{width:min(560px,calc(100% - 24px))}.v11-run-setup-dialog .v11-fields{grid-template-columns:1.3fr 1fr;margin-top:4px}
@media (max-width:760px){.v11-randomizer-head{align-items:start;flex-direction:column}.v11-randomizer-head h1{font-size:38px}.v11-randomizer-steps{width:100%;justify-content:space-between}.v11-engine-frame{height:calc(100vh - 275px);min-height:560px;border-radius:13px}.v11-result-bar{bottom:78px}.v11-result-bar p small{display:none}}
@media (max-width:520px){.v11-randomizer-shell{padding-top:24px}.v11-randomizer-steps i{width:10px}.v11-engine-frame{width:100%!important;height:calc(100vh - 250px);border-left:0;border-right:0;border-radius:0}.v11-result-bar{gap:8px}.v11-result-bar button{padding:0 10px}.v11-run-setup-dialog .v11-fields{grid-template-columns:1fr}}

/* Adventure room */
.v11-room-page{background:#eeece5}.v11-room-page::before{display:none}.v11-room-nav{position:sticky;z-index:20;top:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:68px;padding:0 22px;border-bottom:1px solid #2c3945;background:var(--v11-ink);color:#fff}.v11-room-nav .v11-brand{color:#fff}.v11-room-nav .v11-brand-mark{width:36px;height:36px;border-radius:11px}.v11-room-heading{text-align:center}.v11-room-heading span,.v11-room-heading b{display:block}.v11-room-heading span{color:#8fa0ae;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.v11-room-heading span i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--v11-green)}.v11-room-heading b{margin-top:3px;font-size:12px}.v11-room-nav-actions{justify-self:end;display:flex;align-items:center;gap:8px}.v11-room-code{display:flex;align-items:center;gap:7px;height:38px;padding:0 11px;border:1px solid #42505c;border-radius:10px;background:#202c37;color:#fff;cursor:pointer}.v11-room-code span{color:#8495a3;font-size:7px;font-weight:900;letter-spacing:.1em}.v11-room-code b{font:900 11px ui-monospace,monospace;letter-spacing:.12em}.v11-room-share,.v11-room-exit{display:grid;place-items:center;width:38px;height:38px;border:1px solid #42505c;border-radius:10px;color:#fff!important;text-decoration:none}.v11-room-share{background:#217e54;font-size:8px;font-weight:900;letter-spacing:.05em}.v11-room-exit{font-size:20px}
.v11-room-shell{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;align-items:start;padding:12px}.v11-room-main,.v11-tracker{min-width:0}.v11-room-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:9px 12px;border:1px solid var(--v11-line);border-radius:14px;background:var(--v11-card)}.v11-room-stats{display:flex;align-items:center;gap:0}.v11-room-stats>span{min-width:80px;padding:0 13px;border-right:1px solid var(--v11-line)}.v11-room-stats>span:last-child{border-right:0}.v11-room-stats small,.v11-room-stats b{display:block}.v11-room-stats small{color:var(--v11-muted);font-size:7px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.v11-room-stats b{margin-top:3px;font:900 12px ui-monospace,monospace}.v11-game-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.v11-room-action{display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 10px;border:1px solid var(--v11-line);border-radius:9px;background:#f4f1e9;color:var(--v11-ink);font-size:9px;font-weight:850;white-space:nowrap;cursor:pointer}.v11-room-action input{position:absolute;opacity:0;pointer-events:none}.v11-room-action:hover:not(:disabled){border-color:var(--v11-red);color:var(--v11-red)}.v11-room-action:disabled{cursor:not-allowed;opacity:.42}.v11-room-action.is-primary{border-color:var(--v11-red);background:var(--v11-red);color:#fff}.v11-room-action.is-finish:not(:disabled){border-color:var(--v11-green);background:#eaf4ef;color:var(--v11-green)}
.v11-coop-bar{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;margin-top:8px;padding:9px 12px;border:1px solid #bdd2c9;border-radius:12px;background:#f1f7f4}.v11-coop-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--v11-green);color:#fff;font-weight:900}.v11-coop-bar b,.v11-coop-bar small{display:block}.v11-coop-bar b{font-size:10px}.v11-coop-bar small{margin-top:2px;color:var(--v11-muted);font-size:8px}.v11-coop-state{padding:5px 7px;border-radius:6px;background:#e0e5e2;color:var(--v11-muted);font-size:7px;font-weight:900;letter-spacing:.1em}.v11-coop-state.is-online{background:var(--v11-green);color:#fff}
.v11-player-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:8px}.v11-player-grid[data-players="2"]{grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr)}.v11-player-card{overflow:hidden;border:1px solid #d2cfc7;border-radius:15px;background:var(--v11-card)}.v11-player-card>header{display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:7px 10px;border-bottom:1px solid var(--v11-line)}.v11-player-identity{display:flex;align-items:center;gap:9px}.player-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--v11-red);color:#fff;font-size:11px;font-weight:900}.v11-player-card:not(.is-local) .player-avatar{background:var(--v11-green)}.v11-player-identity small,.v11-player-identity b{display:block}.v11-player-identity small{color:var(--v11-muted);font-size:7px;font-weight:900;letter-spacing:.09em}.v11-player-identity b{margin-top:2px;font-size:11px}.v11-player-live{display:flex;align-items:center;gap:6px;color:var(--v11-muted);font-size:8px}.v11-player-live i{width:6px;height:6px;border-radius:50%;background:#aeb5b3}.v11-player-card.is-running .v11-player-live i,.v11-player-card.is-connected .v11-player-live i{background:var(--v11-green);box-shadow:0 0 0 4px rgba(35,115,90,.1)}
.v11-game-frame{padding:10px 10px 7px;background:var(--v11-ink)}.v11-game-screen{position:relative;overflow:hidden;aspect-ratio:3/2;border:2px solid #43515d;border-radius:8px;background:#0b1015;box-shadow:inset 0 0 0 1px #091016}.v11-game-screen canvas{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;background:#090d11}.v11-screen-wait{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#101923;color:#fff}.v11-screen-wait::before{content:"";width:34px;height:34px;margin-bottom:12px;border:2px solid #576570;border-top-color:var(--v11-red);border-radius:50%}.v11-screen-wait b{font-size:10px;letter-spacing:.13em}.v11-screen-wait small{margin-top:5px;color:#8797a4;font-size:8px}.v11-player-card.is-running .v11-screen-wait,.v11-player-card.is-direct-ready .v11-screen-wait{display:none}.v11-screen-hud{position:absolute;left:7px;right:7px;bottom:6px;display:flex;justify-content:space-between;pointer-events:none}.v11-screen-hud span{padding:4px 6px;border-radius:5px;background:rgba(10,16,21,.8);color:#e8edf0;font-size:7px;font-weight:800}.v11-game-label{display:flex;justify-content:space-between;align-items:center;padding:7px 2px 0;color:#82929e;font-size:7px;font-weight:900;letter-spacing:.1em}.v11-game-label span{display:flex;align-items:center;gap:5px}.v11-game-label i{width:5px;height:5px;border-radius:50%;background:var(--v11-red)}.v11-player-card.is-remote .v11-game-frame,.v11-player-card.is-remote>.v11-touch-controls,.v11-player-card.is-remote>.local-card-team{display:none}.v11-player-card.is-local>.v11-remote-dashboard{display:none}
.v11-touch-controls{display:none;align-items:center;justify-content:space-between;min-height:116px;padding:10px 15px;background:#e8e5de;touch-action:none}.v11-dpad{position:relative;width:100px;height:88px}.v11-dpad button,.v11-ab-buttons button,.v11-center-buttons button{border:0;background:var(--v11-ink);color:#fff;font-weight:900;touch-action:none;user-select:none}.v11-dpad button{position:absolute;width:34px;height:34px;font-size:10px}.v11-dpad button[data-input="up"]{left:33px;top:0;border-radius:7px 7px 2px 2px}.v11-dpad button[data-input="left"]{left:0;top:27px;border-radius:7px 2px 2px 7px}.v11-dpad button[data-input="right"]{right:0;top:27px;border-radius:2px 7px 7px 2px}.v11-dpad button[data-input="down"]{left:33px;bottom:0;border-radius:2px 2px 7px 7px}.v11-center-buttons{display:flex;gap:8px;align-self:end;padding-bottom:4px}.v11-center-buttons button{padding:5px 8px;border-radius:9px;background:#7e898f;font-size:6px}.v11-ab-buttons{display:flex;gap:8px;transform:rotate(-12deg)}.v11-ab-buttons button{width:43px;height:43px;border-radius:50%;background:var(--v11-red);font-size:13px}.v11-card-team{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:8px;border-top:1px solid var(--v11-line)}.v11-card-team .mon-slot{min-width:0;min-height:0;padding:5px 2px;border:0;border-radius:8px;background:#f0ede6}.v11-card-team .mon-art-wrap{width:38px;height:38px}.v11-card-team .mon-copy b{max-width:58px;font-size:7px}.v11-card-team .mon-copy small{font-size:6px}
.v11-system-line{display:grid;grid-template-columns:12px minmax(180px,1fr) auto;align-items:center;gap:9px;margin-top:8px;padding:10px 12px;border:1px solid var(--v11-line);border-radius:12px;background:var(--v11-card)}.v11-state-dot{width:8px;height:8px;border-radius:50%;background:#aeb5b3;box-shadow:0 0 0 4px rgba(116,125,130,.1)}.v11-state-dot.ok{background:var(--v11-green)}.v11-state-dot.busy{border:2px solid #d0c090;border-top-color:var(--v11-yellow);background:transparent;animation:v11spin .8s linear infinite}.v11-state-dot.error,.v11-state-dot.warn{background:var(--v11-red)}.v11-system-line>div:nth-child(2) b,.v11-system-line>div:nth-child(2) small{display:block}.v11-system-line>div:nth-child(2) b{font-size:9px}.v11-system-line>div:nth-child(2) small{margin-top:2px;color:var(--v11-muted);font-size:7px}.v11-rom-facts{display:flex;gap:20px}.v11-rom-facts span{min-width:70px}.v11-rom-facts small,.v11-rom-facts b{display:block}.v11-rom-facts small{color:var(--v11-muted);font-size:6px;font-weight:900;letter-spacing:.1em}.v11-rom-facts b{max-width:130px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}
.v11-tracker{display:grid;gap:8px;max-height:calc(100vh - 92px);overflow:auto;padding-right:2px}.v11-tracker-profile{position:relative;display:flex;align-items:center;min-height:85px;padding:16px;border:1px solid var(--v11-line);border-radius:15px;background:var(--v11-card);overflow:hidden}.v11-tracker-profile b,.v11-tracker-profile small{display:block}.v11-tracker-profile b{margin-top:4px;font-size:16px}.v11-tracker-profile small{margin-top:3px;color:var(--v11-muted);font-size:8px}.v11-tracker-profile img{position:absolute;right:8px;bottom:-5px;width:87px;height:87px;object-fit:contain}.v11-tracker-card{padding:14px;border:1px solid var(--v11-line);border-radius:14px;background:var(--v11-card)}.v11-tracker-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.v11-tracker-card h2{margin:2px 0 0;font-size:14px}.v11-tracker-card>header>span,.v11-tracker-card>header>strong{color:var(--v11-red);font-size:8px;font-weight:900;letter-spacing:.08em}.v11-team-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.v11-team-list .mon-slot{display:grid;grid-template-columns:39px 1fr;align-items:center;gap:5px;min-width:0;min-height:48px;padding:4px;border:1px solid #e8e4dc;border-radius:9px;background:#f7f4ed}.v11-team-list .mon-art-wrap{width:38px;height:38px}.v11-team-list .mon-copy b{max-width:75px;font-size:8px}.v11-team-list .mon-copy small{font-size:7px}.mon-copy{min-width:0}.mon-name-line{display:flex;align-items:baseline;justify-content:space-between;gap:4px;min-width:0}.mon-name-line>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mon-name-line .mon-level{flex:none;margin:0;color:#6f7880;font-size:6px;font-weight:900;white-space:nowrap}.mon-name-line .mon-cap{flex:none;margin:0;color:#9c6500;font-size:6px;font-weight:1000;white-space:nowrap}.mon-hp{display:grid;grid-template-columns:auto minmax(20px,1fr) auto;align-items:center;gap:3px;margin-top:4px}.mon-hp-label{color:#d99817;font-size:6px;font-weight:1000;line-height:1}.mon-hp-track{position:relative;display:block;height:7px;padding:1px;border:1px solid #263238;border-radius:4px;background:#263238;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}.mon-hp-fill{display:block;height:100%;min-width:0;border-radius:2px;background:#45b96b;box-shadow:inset 0 1px 0 rgba(255,255,255,.3);transition:width .22s ease,background-color .18s ease}.mon-hp-fill.is-mid{background:#ee9c2f}.mon-hp-fill.is-low{background:#df4b42}.mon-hp-value{color:#59636b;font:900 6px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}.mon-status{display:block;margin-top:3px;color:var(--v11-muted);font-size:6px;font-weight:800}.mon-status.is-lost{color:var(--v11-red-dark)}.mon-slot.dead .mon-hp-fill{background:#df4b42}.v11-card-team .mon-hp{grid-template-columns:auto minmax(13px,1fr);gap:2px;margin-top:3px}.v11-card-team .mon-hp-value{grid-column:1/-1;text-align:center;font-size:5px}.v11-card-team .mon-hp-track{height:6px}.v11-card-team .mon-name-line{justify-content:center}.v11-card-team .mon-level{display:none}.v11-team-list .mon-hp-track{height:7px}.v11-team-list .mon-hp-value{font-size:6px}
.v11-badge-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.v11-badge-grid span{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--v11-line);border-radius:50%;background:#efede7;color:#aab0af;font-size:9px}.v11-badge-grid span.done{border-color:var(--v11-yellow);background:var(--v11-yellow);color:#5d4813;box-shadow:0 3px 8px rgba(115,86,12,.18)}.v11-route-list{display:grid;gap:5px;max-height:180px;overflow:auto}.v11-route-row{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:7px;padding:7px;border-radius:8px;background:#f1efe9}.v11-route-row>span{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#dedbd3;color:#939b9b;font-size:8px}.v11-route-row.is-caught>span{background:var(--v11-green);color:#fff}.v11-route-row b,.v11-route-row small{display:block}.v11-route-row b{font-size:8px}.v11-route-row small{margin-top:1px;color:var(--v11-muted);font-size:7px}.v11-route-row>strong{font-size:7px}.v11-tracker-empty{padding:16px 4px;text-align:center;color:var(--v11-muted);font-size:8px;line-height:1.45}
.v11-log-card{padding:0}.v11-log-card summary{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;list-style:none;cursor:pointer}.v11-log-card summary::-webkit-details-marker{display:none}.v11-log-card summary span span,.v11-log-card summary b{display:block}.v11-log-card summary b{margin-top:2px;font-size:11px}.v11-log-card summary>i{color:var(--v11-red);font-style:normal;font-size:16px}.v11-log-card[open] summary>i{transform:rotate(45deg)}.v11-event-feed{display:grid;gap:5px;max-height:180px;overflow:auto;padding:0 12px 12px}.v11-event-row{padding:7px;border-left:2px solid var(--v11-line);background:#f5f2eb;font-size:8px;line-height:1.35}.v11-event-row.catch{border-color:var(--v11-green)}.v11-event-row.badge{border-color:var(--v11-yellow)}.v11-event-row.death{border-color:var(--v11-red)}.v11-event-row time{display:block;margin-top:2px;color:var(--v11-muted);font-size:6px}.v11-active-rules{display:flex;flex-wrap:wrap;gap:5px;padding:0 12px 10px}.v11-active-rules span{padding:5px 6px;border-radius:6px;background:#eef5f2;color:var(--v11-green);font-size:7px;font-weight:800}.v11-debug{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0 12px 10px}.v11-debug span{padding:6px;border-radius:6px;background:#f1efe9;color:var(--v11-muted);font-size:6px}.v11-debug b{display:block;margin-top:2px;color:var(--v11-ink);font-size:7px}.v11-log-card .v11-outline-button{margin:0 12px 12px;min-height:32px;font-size:8px}
.v11-dialog{width:min(440px,calc(100% - 24px));padding:27px;border:0;border-radius:20px;background:var(--v11-card);color:var(--v11-ink);box-shadow:0 30px 90px rgba(0,0,0,.3)}.v11-dialog::backdrop{background:rgba(12,19,25,.65);backdrop-filter:blur(4px)}.v11-dialog-close{position:absolute;right:12px;top:12px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:9px;background:#eeebe3;color:var(--v11-muted);font-size:18px;cursor:pointer}.v11-dialog>.v11-step{margin-bottom:15px}.v11-dialog h2{margin:5px 0 12px;font-size:28px;letter-spacing:-.05em}.v11-dialog>p{color:var(--v11-muted);font-size:11px;line-height:1.5}.v11-dialog-rom{margin:18px 0;padding:13px;border:1px solid var(--v11-line);border-radius:12px;background:#f4f1e9}.v11-dialog-rom b,.v11-dialog-rom small{display:block}.v11-dialog-rom b{font-size:12px}.v11-dialog-rom small{margin-top:3px;color:var(--v11-muted);font-size:9px}.v11-dialog-actions{display:grid;gap:8px;margin:17px 0 13px}.v11-dialog-actions .v11-outline-button{min-height:46px}.v11-dialog>small{display:block;color:var(--v11-muted);font-size:8px;line-height:1.45}.v11-dialog form{display:grid;gap:13px}.v11-dialog form label>span{display:block;margin-bottom:6px;color:var(--v11-muted);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.v11-remote-dashboard{display:grid;gap:9px;padding:10px;background:#f4f1e9}.v11-remote-focus{padding:12px;border-radius:11px;background:var(--v11-ink);color:#fff}.v11-remote-focus span,.v11-remote-focus b{display:block}.v11-remote-focus span{color:#91a0ab;font-size:7px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.v11-remote-focus b{margin-top:5px;font-size:13px}.v11-remote-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.v11-remote-stats span{min-width:0;padding:8px;border:1px solid var(--v11-line);border-radius:9px;background:#fff}.v11-remote-stats small,.v11-remote-stats b{display:block}.v11-remote-stats small{color:var(--v11-muted);font-size:6px;text-transform:uppercase}.v11-remote-stats b{margin-top:3px;font:900 9px ui-monospace,monospace}.v11-remote-dashboard>section{padding:10px;border:1px solid var(--v11-line);border-radius:11px;background:#fff}.v11-remote-dashboard>section>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.v11-remote-dashboard>section>header span,.v11-remote-dashboard>section>header small{font-size:7px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v11-remote-dashboard>section>header small{color:var(--v11-green)}.v11-remote-dashboard .v11-card-team{padding:0;border:0;background:transparent}.v11-remote-dashboard .v11-route-list{max-height:145px}.v11-event-toast{position:fixed;z-index:80;right:18px;bottom:18px;display:flex;align-items:center;gap:11px;width:min(360px,calc(100% - 28px));padding:13px 15px;border:1px solid #d7d2c8;border-radius:14px;background:#fffdf8;box-shadow:0 22px 60px rgba(16,27,36,.22);opacity:0;pointer-events:none;transform:translateY(18px);transition:.24s ease}.v11-event-toast.is-visible{opacity:1;transform:translateY(0)}.v11-event-toast>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:var(--v11-green);color:#fff;font-size:17px;font-weight:900}.v11-event-toast.is-death>span,.v11-event-toast.is-rule>span{background:var(--v11-red)}.v11-event-toast.is-badge>span{background:var(--v11-yellow);color:#5d4813}.v11-event-toast b,.v11-event-toast small{display:block}.v11-event-toast b{font-size:11px}.v11-event-toast small{margin-top:3px;color:var(--v11-muted);font-size:8px;line-height:1.4}.v11-rule-dialog{border-top:6px solid var(--v11-red)}.v11-rule-dialog .v11-step{background:var(--v11-red)}.v11-rule-dialog .v11-primary-button{margin-top:20px}
@media (max-width:1180px){.v11-room-shell{grid-template-columns:1fr}.v11-tracker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}.v11-tracker-profile,.v11-tracker-card{min-width:0}.v11-log-card{align-self:start}}
@media (max-width:920px){.v11-room-nav{grid-template-columns:1fr auto}.v11-room-heading{display:none}.v11-room-toolbar{align-items:stretch;flex-direction:column}.v11-room-stats{display:grid;grid-template-columns:repeat(4,1fr)}.v11-room-stats>span{min-width:0}.v11-game-actions{justify-content:flex-start}.v11-player-grid[data-players="2"]{grid-template-columns:1fr}.v11-touch-controls{display:flex}.v11-player-card:not(.is-local) .v11-touch-controls{display:none}.v11-card-team{grid-template-columns:repeat(6,1fr)}.v11-tracker{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.v11-room-nav{min-height:59px;padding:0 10px}.v11-room-nav .v11-brand>span:last-child{display:none}.v11-room-code{height:35px}.v11-room-share,.v11-room-exit{width:35px;height:35px}.v11-room-shell{padding:7px;gap:7px}.v11-room-toolbar{padding:8px}.v11-room-stats>span{padding:0 7px}.v11-room-stats b{font-size:10px}.v11-game-actions{display:grid;grid-template-columns:repeat(4,1fr)}.v11-room-action{padding:0 5px}.v11-room-action.is-primary{grid-column:span 2}.v11-room-action.is-finish{grid-column:span 2}.v11-coop-bar{grid-template-columns:30px 1fr}.v11-coop-state{display:none}.v11-coop-bar small{line-height:1.35}.v11-player-card{border-radius:12px}.v11-game-frame{padding:7px}.v11-touch-controls{min-height:106px;padding:8px 10px}.v11-center-buttons{flex-direction:column;gap:5px}.v11-card-team{grid-template-columns:repeat(3,1fr)}.v11-card-team .mon-slot{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:3px}.v11-system-line{grid-template-columns:10px 1fr}.v11-rom-facts{grid-column:1/-1;justify-content:space-between;padding-top:8px;border-top:1px solid var(--v11-line)}.v11-tracker{grid-template-columns:1fr}.v11-tracker-profile{min-height:74px}.v11-team-list{grid-template-columns:1fr 1fr}.v11-event-toast{right:14px;bottom:14px}.v11-remote-stats{grid-template-columns:1fr 1fr}}

/* Run customization: named saves, screen size and remappable keyboard */
.v11-room-select{appearance:auto;min-width:82px;padding-right:4px;font-family:inherit}.v11-room-select:focus{outline:2px solid rgba(199,55,53,.2);outline-offset:1px}
.v11-player-grid[data-players="1"][data-screen="compact"]{max-width:620px;margin-left:auto;margin-right:auto}.v11-player-grid[data-players="1"][data-screen="normal"]{max-width:820px;margin-left:auto;margin-right:auto}.v11-player-grid[data-players="1"][data-screen="large"]{max-width:none}.v11-player-grid[data-players="2"][data-screen="compact"]{grid-template-columns:minmax(0,1fr) minmax(310px,.72fr)}.v11-player-grid[data-players="2"][data-screen="large"]{grid-template-columns:minmax(0,1.7fr) minmax(330px,.62fr)}
.v11-dialog-field{display:block;margin:12px 0}.v11-dialog-field>span{display:block;margin-bottom:6px;color:var(--v11-muted);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v11-save-slot-list{display:grid;gap:6px;max-height:180px;margin:12px 0;overflow:auto}.v11-save-slot-list>button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px;border:1px solid var(--v11-line);border-radius:10px;background:#f6f3ec;color:var(--v11-ink);text-align:left;cursor:pointer}.v11-save-slot-list>button:hover{border-color:var(--v11-red)}.v11-save-slot-list b,.v11-save-slot-list small{display:block}.v11-save-slot-list b{font-size:9px}.v11-save-slot-list small{color:var(--v11-muted);font-size:7px}.v11-controls-dialog{width:min(540px,calc(100% - 24px))}.v11-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:16px 0}.v11-control-grid button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:7px 9px;border:1px solid var(--v11-line);border-radius:10px;background:#f5f2eb;color:var(--v11-ink);cursor:pointer}.v11-control-grid button:hover,.v11-control-grid button.is-listening{border-color:var(--v11-red);background:#fff4f1}.v11-control-grid span{font-size:8px;font-weight:900;text-transform:uppercase}.v11-control-grid b{padding:5px 7px;border-radius:6px;background:var(--v11-ink);color:#fff;font:800 8px ui-monospace,monospace}.v11-control-grid .is-listening b{background:var(--v11-red)}.v11-control-hint{min-height:18px!important;margin:0 0 12px!important;color:var(--v11-muted)!important;font-size:8px!important}.v11-dialog-inline-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px}.v11-dialog-inline-actions .v11-outline-button,.v11-dialog-inline-actions .v11-primary-button{min-height:44px}
@media (max-width:920px){.v11-player-grid[data-players="2"][data-screen]{grid-template-columns:1fr}}
@media (max-width:520px){.v11-control-grid{grid-template-columns:1fr}.v11-room-select{min-width:0}.v11-save-slot-list>button{align-items:flex-start;flex-direction:column;gap:3px}}

/* v11.4 · Ranked vs. eigener Run */
.v11-run-type-switch{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:20px 28px 0}.v11-run-type-switch label{cursor:pointer}.v11-run-type-switch input{position:absolute;opacity:0;pointer-events:none}.v11-run-type-switch span{position:relative;display:block;min-height:86px;padding:15px 72px 14px 15px;border:1px solid var(--v11-line);border-radius:15px;background:#fbf9f3;color:var(--v11-muted);transition:.18s ease}.v11-run-type-switch strong,.v11-run-type-switch small{display:block}.v11-run-type-switch strong{color:var(--v11-ink);font-size:15px}.v11-run-type-switch small{margin-top:5px;font-size:10px;line-height:1.35}.v11-run-type-switch em{position:absolute;right:12px;top:12px;padding:5px 7px;border-radius:999px;background:#ece8df;color:#746f66;font-size:7px;font-style:normal;font-weight:950;letter-spacing:.08em}.v11-run-type-switch input:checked+span{border-color:var(--v11-red);background:#fff5f2;box-shadow:inset 0 0 0 1px var(--v11-red)}.v11-run-type-switch input:checked+span em{background:var(--v11-red);color:#fff}
.v11-ranked-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px;padding:16px 17px;border-radius:15px;background:linear-gradient(135deg,#17212b,#293744);color:#fff}.v11-ranked-banner>div span,.v11-ranked-banner>div b,.v11-ranked-banner>div small{display:block}.v11-ranked-banner>div span{color:#f1afa9;font-size:8px;font-weight:950;letter-spacing:.12em}.v11-ranked-banner>div b{margin-top:4px;font-size:16px}.v11-ranked-banner>div small{margin-top:4px;color:#b8c1c8;font-size:9px}.v11-ranked-banner>strong{font-size:24px}
.v11-fixed-rules{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}.v11-fixed-rules article{padding:11px 12px;border:1px solid var(--v11-line);border-radius:11px;background:#faf8f2}.v11-fixed-rules b{font-size:10px}.v11-fixed-rules p{margin:4px 0 0;color:var(--v11-muted);font-size:8px;line-height:1.4}.v11-fixed-rules.compact{margin:10px 0}.v11-ranked-note,.v11-custom-note{margin:0 0 14px;padding:11px 12px;border-radius:11px;font-size:9px;line-height:1.45}.v11-ranked-note{border:1px solid #efc2bd;background:#fff4f1;color:#7e4b47}.v11-custom-note{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--v11-line);background:#f4f1e9;color:var(--v11-muted)}.v11-custom-note b{flex:0 0 auto;color:var(--v11-ink)}
.v11-ranked-lock{position:relative;z-index:2;display:flex;align-items:center;gap:12px;margin-top:12px;margin-bottom:-16px;padding:12px 15px;border:1px solid #d7d2c8;border-radius:13px;background:#fff8ef;box-shadow:0 8px 24px rgba(30,35,40,.06)}.v11-ranked-lock>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#17212b;color:#fff}.v11-ranked-lock b,.v11-ranked-lock small{display:block}.v11-ranked-lock b{font-size:11px}.v11-ranked-lock small{margin-top:3px;color:var(--v11-muted);font-size:8px;line-height:1.4}.v11-randomizer-page.is-ranked .v11-engine-frame{border-color:#c9beb1}.is-ranked-room #roomStatus{color:#ffd0cb}.is-ranked-room .v11-room-action.is-finish{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
@media (max-width:620px){.v11-run-type-switch{grid-template-columns:1fr;padding:14px 18px 0}.v11-fixed-rules{grid-template-columns:1fr}.v11-start-card .v11-form-section{padding-left:18px;padding-right:18px}.v11-ranked-lock{width:calc(100% - 28px)}.v11-custom-note{flex-direction:column}}


/* v11.5: Duo invitation gate */
.v11-duo-invite-dialog{width:min(500px,calc(100% - 24px))}
.v11-duo-invite-status{display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:11px;margin:17px 0;padding:14px;border:1px solid #e4c991;border-radius:13px;background:#fff7e7}
.v11-duo-invite-status .v11-duo-status-dot{width:10px;height:10px;border-radius:50%;background:#d99a24;box-shadow:0 0 0 4px rgba(217,154,36,.12)}
.v11-duo-invite-status b,.v11-duo-invite-status small{display:block}
.v11-duo-invite-status b{font-size:10px}.v11-duo-invite-status small{margin-top:3px;color:var(--v11-muted);font-size:8px;line-height:1.4}
.v11-duo-invite-status strong{padding:6px 8px;border-radius:7px;background:#f0d9aa;color:#795817;font-size:7px;letter-spacing:.1em}
.v11-duo-invite-status.is-ready{border-color:#a8d3bc;background:#eef8f2}.v11-duo-invite-status.is-ready .v11-duo-status-dot{background:var(--v11-green);box-shadow:0 0 0 4px rgba(33,126,84,.12)}.v11-duo-invite-status.is-ready strong{background:var(--v11-green);color:#fff}
.v11-invite-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.v11-invite-link-row .v11-input{min-width:0;font:700 9px ui-monospace,monospace}.v11-invite-link-row .v11-outline-button{min-height:42px;white-space:nowrap}
.v11-whatsapp-button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;margin:0 0 8px;padding:0 15px;border-radius:11px;background:#217e54;color:#fff!important;text-decoration:none;font-size:10px;font-weight:900}.v11-whatsapp-button b{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.16);font-size:8px}
.v11-duo-invite-dialog>.v11-primary-button{width:100%;margin-bottom:11px}
@media (max-width:620px){.v11-invite-link-row{grid-template-columns:1fr}.v11-invite-link-row .v11-outline-button{width:100%}.v11-duo-invite-status{grid-template-columns:12px 1fr}.v11-duo-invite-status strong{grid-column:2;justify-self:start}}

/* v11.6: Emerald DirectStart + Ranked speed lock */
#speedGame.is-fixed-speed:disabled{opacity:1;cursor:default;border-color:#c9a84b;background:#fff8df;color:#6f5714}body.is-ranked-room #speedGame.is-fixed-speed:disabled:hover{border-color:#c9a84b;color:#6f5714}.v11-screen-wait::before{animation:v11BootSpin .8s linear infinite}@keyframes v11BootSpin{to{transform:rotate(360deg)}}

/* v12.5 – mobile-safe Randomizer handoff dialog */
html.v11-dialog-lock,
html.v11-dialog-lock body{overflow:hidden!important;overscroll-behavior:none}
.v11-dialog-fallback-backdrop{position:fixed;z-index:9998;inset:0;background:rgba(12,19,25,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.v11-run-setup-dialog.is-mobile-fallback{display:block!important;position:fixed!important;z-index:9999!important;top:max(12px,env(safe-area-inset-top))!important;right:12px!important;bottom:auto!important;left:12px!important;width:auto!important;max-width:560px!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;margin:0 auto!important;overflow-x:hidden!important;overflow-y:auto!important;transform:none!important;-webkit-overflow-scrolling:touch}
@supports not (height:100dvh){.v11-run-setup-dialog.is-mobile-fallback{max-height:calc(100vh - 32px)!important}}
@media (max-width:760px){
  .v11-run-setup-dialog.is-mobile-fallback{top:max(8px,env(safe-area-inset-top))!important;right:8px!important;left:8px!important;padding:22px 18px calc(18px + env(safe-area-inset-bottom))!important;border-radius:16px!important}
  .v11-run-setup-dialog.is-mobile-fallback h2{font-size:24px}
  .v11-run-setup-dialog.is-mobile-fallback .v11-fixed-rules{max-height:none}
}

/* v12.8 – getrennte Ranked-/Custom-Erfolge */
.v11-achievement-card{min-width:0}.v11-achievement-groups{display:grid;gap:16px}.v11-achievement-group{padding:14px;border:1px solid var(--v11-line);border-radius:14px;background:#faf8f2}.v11-achievement-group.is-ranked{border-color:#d7c7b8;background:#fffaf3}.v11-achievement-group.is-custom{background:#f7f6f1}.v11-achievement-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.v11-achievement-group-head>div{min-width:0}.v11-achievement-group-head small{display:block;margin-top:4px;color:var(--v11-muted);font-size:8px}.v11-achievement-group-head>strong{flex:none;color:var(--v11-red);font-size:10px}.v11-achievement-mode{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;background:var(--v11-ink);color:#fff;font-size:7px;font-weight:950;letter-spacing:.1em}.v11-achievement-group.is-custom .v11-achievement-mode{background:#dedbd2;color:#5d625f}.v11-achievement-group .v11-achievement-grid article{background:rgba(255,255,255,.62)}.v11-achievement-group .v11-achievement-grid article.is-unlocked{background:#f0f7f4}
@media (max-width:560px){.v11-achievement-group{padding:11px}.v11-achievement-group-head{align-items:flex-start}.v11-achievement-group-head small{max-width:210px;line-height:1.35}}

/* v13 run-state and challenge surfaces */
.achievement-steps{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.achievement-steps i{padding:2px 4px;border-radius:5px;background:#ece9e2;color:#89918d;font-size:6px;font-style:normal;font-weight:800}.achievement-steps i.done{background:#d9f2e5;color:#11613c}
.v11-run-type-switch{grid-template-columns:repeat(3,minmax(0,1fr))}.v11-achievement-group.is-challenge{background:#f3f5fb;border-color:#cdd5e8}.v11-achievement-group.is-challenge .v11-achievement-mode{background:#263d68}
.v11-challenge-panel{margin:0 0 18px;padding:18px;border:1px solid rgba(42,65,97,.16);border-radius:18px;background:linear-gradient(135deg,#fffdf7,#f3f7fb);box-shadow:0 12px 30px rgba(31,49,72,.08)}
.v11-challenge-panel>header,.v11-challenge-summary,.v11-challenge-actions{display:flex;align-items:center;gap:12px;justify-content:space-between}.v11-challenge-panel h2{margin:3px 0 0}.v11-challenge-summary{justify-content:flex-start;flex-wrap:wrap;margin:12px 0;color:#5e6d7f}.v11-challenge-summary span{padding:8px 10px;border-radius:10px;background:#fff}.v11-challenge-summary b{color:#20334f}.v11-challenge-ready{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.v11-challenge-ready span{padding:6px 9px;border-radius:999px;background:#e8edf3;color:#5a6878;font-size:.8rem}.v11-challenge-ready .is-ready{background:#d9f2e5;color:#11613c}.v11-challenge-actions{justify-content:flex-start;flex-wrap:wrap;margin-top:12px}.v11-challenge-actions button{min-height:38px}.v11-challenge-live{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.v11-challenge-live article{padding:10px;border-radius:12px;background:#fff;border:1px solid rgba(42,65,97,.1)}.v11-challenge-live article b{display:block}.v11-challenge-live article small{color:#6d7d8e}.v11-route-row.is-missed{border-color:#e9b9b9;background:#fff5f5}.route-art{width:28px;height:28px;object-fit:contain;margin-left:auto}.is-ranked-room #saveGame{border-color:#a37b24}.is-ranked-room #saveGame::after{content:' · Center';font-size:.68rem;color:#8a681b}
@media (max-width:700px){.v11-challenge-live{grid-template-columns:1fr}.v11-challenge-panel>header{align-items:flex-start}.v11-challenge-summary{gap:6px}.v11-challenge-actions{align-items:stretch}.v11-challenge-actions button{flex:1 1 150px}}
@media (max-width:780px){.v11-run-type-switch{grid-template-columns:1fr}}
.route-action{border:1px solid #d9b5b5;border-radius:7px;background:#fff;color:#9b4141;padding:4px 6px;font:700 7px/1 inherit;cursor:pointer}.route-action:hover{background:#fff0f0}.v11-route-row.is-missed .route-action{display:none}
.v11-encounter-status{display:grid;gap:3px;margin:-3px 0 8px;padding:8px 9px;border:1px solid #e9c98c;border-radius:9px;background:#fff8e8;color:#8a641c}.v11-encounter-status b,.v11-encounter-status small{display:block}.v11-encounter-status b{font-size:8px}.v11-encounter-status small{font-size:7px;line-height:1.35;color:#9a7c42}.v11-encounter-status.is-active{border-color:#b9dfc5;background:#effaf2;color:#28704b}.v11-encounter-status.is-active small{color:#5d9470}.v11-encounter-status.is-hidden{display:none}.v11-route-row.is-pending{border:1px solid #e9c98c;background:#fffaf0}.v11-route-row.is-pending>span{background:#e5b44a;color:#fff}.v11-route-row.is-missed>span{background:#d86b6b;color:#fff}

/* v14 player profiles and persistent save library */
.v14-profile-shell,.v14-saves-shell{position:relative;z-index:1;padding:52px 0 78px}.v14-profile-hero{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:24px;margin-bottom:22px}.v14-avatar-hero{position:relative;display:grid;place-items:center;width:150px;height:150px;border:1px solid #d9d3c7;border-radius:32px;background:linear-gradient(145deg,#fffdf8,#eee9df);box-shadow:0 16px 35px rgba(40,47,51,.09)}.v14-avatar-hero img{width:128px;height:128px;object-fit:contain;filter:drop-shadow(0 13px 9px rgba(37,45,51,.15))}.v14-avatar-hero span{position:absolute;right:-8px;bottom:8px;padding:6px 9px;border-radius:8px;background:var(--v11-ink);color:#fff;font-size:9px;font-weight:900}.v14-profile-hero-copy h1{margin:12px 0 0;font-size:52px;line-height:.98;letter-spacing:-.06em}.v14-profile-hero-copy>p:not(.v14-profile-bio){margin:7px 0 0;color:var(--v11-muted);font-size:12px}.v14-profile-hero-copy>small{display:block;margin-top:12px;color:var(--v11-muted);font-size:10px}.v14-profile-bio{max-width:620px;margin:16px 0 0;color:#4f5b63;font-size:13px;line-height:1.55}.v14-profile-hero>.v11-profile-actions{align-self:start}.v14-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.v14-stat-grid article{min-width:0;padding:16px;border:1px solid var(--v11-line);border-radius:15px;background:var(--v11-card)}.v14-stat-grid article>span,.v14-stat-grid article>small,.v14-stat-grid article>strong{display:block}.v14-stat-grid article>span{color:var(--v11-muted);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v14-stat-grid article>strong{margin:11px 0 5px;font-size:25px;letter-spacing:-.05em}.v14-stat-grid article>small{color:var(--v11-muted);font-size:9px;line-height:1.25}.v14-stat-grid article.is-success{border-color:#a8d3bf;background:#f0f8f4}.v14-stat-grid article.is-danger{border-color:#e9b7b2;background:#fff5f3}.v14-stat-grid article.is-accent{border-color:var(--v11-red);background:var(--v11-red);color:#fff}.v14-stat-grid article.is-accent>span,.v14-stat-grid article.is-accent>small{color:rgba(255,255,255,.75)}.v14-profile-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:14px}.v14-profile-main,.v14-profile-side{display:grid;align-content:start;gap:14px;min-width:0}.v14-profile-side{grid-template-rows:auto auto}.v14-card-hint{color:var(--v11-muted);font-size:9px;font-weight:800}.v14-showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.v14-showcase-slot{display:flex;align-items:center;gap:10px;min-height:70px;padding:11px;border:1px dashed #d4cec2;border-radius:13px;background:#faf8f2}.v14-showcase-slot>span{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:11px;background:#ece8df;color:#a49d91;font-size:17px}.v14-showcase-slot.is-filled{border-style:solid;border-color:#b6d2c4;background:#f1f8f4}.v14-showcase-slot.is-filled>span{background:var(--v11-green);color:#fff}.v14-showcase-slot b,.v14-showcase-slot small{display:block}.v14-showcase-slot b{font-size:10px;line-height:1.25}.v14-showcase-slot small{margin-top:4px;color:var(--v11-muted);font-size:8px}.v14-showcase-editor{margin-top:18px;padding-top:15px;border-top:1px solid var(--v11-line)}.v14-showcase-editor>small{display:block;margin-top:9px;color:var(--v11-muted);font-size:9px}.v14-showcase-control{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:8px;margin-top:8px}.v14-showcase-control label{color:var(--v11-muted);font-size:9px;font-weight:900;text-transform:uppercase}.v14-showcase-control .v11-input{height:38px;font-size:10px}.v14-achievement-card .v11-achievement-grid{grid-template-columns:1fr}.v14-achievement-list article{opacity:1;align-items:flex-start}.v14-achievement-list article:not(.is-unlocked){background:#faf8f2}.v14-achievement-copy{min-width:0;flex:1}.v14-achievement-copy>small{line-height:1.35}.v14-progress-track{height:7px;margin-top:8px;border-radius:999px;background:#e7e3db;overflow:hidden}.v14-progress-track i{display:block;height:100%;min-width:0;border-radius:999px;background:linear-gradient(90deg,var(--v11-red),#f49d56);transition:width .25s ease}.is-unlocked .v14-progress-track i{background:linear-gradient(90deg,var(--v11-green),#7ab995)}.v14-progress-label{display:block!important;margin-top:4px;color:var(--v11-muted);font-size:8px!important}.v14-inline-link{color:var(--v11-red)!important;font-size:9px;font-weight:850;text-decoration:none}.v14-profile-form{display:grid;gap:13px}.v14-profile-form label>span{display:block;margin-bottom:6px;color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v14-textarea{height:auto;min-height:78px;padding:11px 13px;resize:vertical;line-height:1.4}.v14-avatar-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.v14-avatar-choice{position:relative;display:grid;place-items:center;min-width:0;padding:5px;border:1px solid var(--v11-line);border-radius:10px;background:#faf8f2;cursor:pointer}.v14-avatar-choice img{width:42px;height:42px;object-fit:contain}.v14-avatar-choice small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--v11-muted);font-size:7px}.v14-avatar-choice.is-selected{border-color:var(--v11-red);box-shadow:inset 0 0 0 1px var(--v11-red);background:#fff5f1}.v14-avatar-choice.is-locked{opacity:.42;cursor:not-allowed}.v14-avatar-choice>b{position:absolute;top:3px;right:4px;font-size:8px}.v14-wall-list{display:grid;gap:0}.v14-wall-post{padding:12px 0;border-bottom:1px solid var(--v11-line)}.v14-wall-post:last-child{border-bottom:0}.v14-wall-post-head{display:flex;align-items:center;gap:7px}.v14-wall-post-head a{min-width:0;color:var(--v11-ink);font-size:10px;text-decoration:none}.v14-wall-post-head time{margin-left:auto;color:var(--v11-muted);font-size:8px}.v14-wall-post-head button{width:21px;height:21px;padding:0;border:0;border-radius:6px;background:#f1e7e3;color:var(--v11-red-dark);cursor:pointer}.v14-wall-post p{margin:7px 0 0;color:#4f5a62;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.v14-wall-form{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--v11-line)}.v14-wall-form .v11-primary-button{min-height:44px;font-size:10px}.v14-login-hint{margin:15px 0 0;color:var(--v11-muted);font-size:10px}.v14-login-hint a{color:var(--v11-red);font-weight:850}.v14-message-card{max-width:580px;margin:45px auto;padding:32px;border:1px solid var(--v11-line);border-radius:20px;background:var(--v11-card);box-shadow:var(--v11-shadow)}.v14-message-card h1{margin:0 0 10px;font-size:30px;letter-spacing:-.05em}.v14-message-card p{margin:0 0 22px;color:var(--v11-muted);font-size:13px;line-height:1.55}.v14-page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.v14-page-head h1{margin:14px 0 10px;font-size:56px;line-height:.95;letter-spacing:-.06em}.v14-page-head p{max-width:660px;margin:0;color:var(--v11-muted);font-size:14px;line-height:1.55}.v14-saves-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px}.v14-saves-summary span{padding:9px 12px;border:1px solid var(--v11-line);border-radius:10px;background:var(--v11-card);color:var(--v11-muted);font-size:9px;font-weight:850}.v14-saves-summary b{color:var(--v11-ink)}.v14-save-list{display:grid;gap:10px}.v14-save-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:18px 20px;border:1px solid var(--v11-line);border-radius:17px;background:var(--v11-card);box-shadow:0 9px 25px rgba(33,42,49,.045)}.v14-save-card.is-active{border-color:#a8d2bd;background:#f3faf6}.v14-save-card.is-completed{border-color:#ded1a5;background:#fffaf0}.v14-save-card.is-lost{border-color:#e6b9b5;background:#fff6f4}.v14-save-main{min-width:0}.v14-save-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.v14-save-head h2{margin:0;font-size:17px;letter-spacing:-.035em}.v14-save-mode,.v14-save-status{padding:4px 7px;border-radius:6px;background:var(--v11-ink);color:#fff;font-size:7px;font-weight:950;letter-spacing:.08em}.v14-save-status{background:var(--v11-green)}.is-completed .v14-save-status{background:#a47b22}.is-lost .v14-save-status{background:var(--v11-red-dark)}.v14-save-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;color:var(--v11-muted);font-size:9px}.v14-save-meta span{display:inline-flex;align-items:center;gap:4px}.v14-save-challenge{margin-top:10px;padding:9px 10px;border-radius:10px;background:#f0f3fb;color:#53627c;font-size:9px}.v14-save-actions{display:flex;align-items:center;gap:7px;justify-content:flex-end}.v14-save-actions a{white-space:nowrap}.v14-save-empty{padding:60px 20px;border:1px dashed #cfc8bc;border-radius:17px;background:rgba(255,253,248,.65);color:var(--v11-muted);text-align:center;font-size:12px}.v14-run-entry small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v14-profile-shell,.v14-saves-shell{position:relative;z-index:1;padding:52px 0 78px}.v14-profile-hero{display:grid;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:24px;margin-bottom:22px}.v14-avatar-hero{position:relative;display:grid;place-items:center;width:150px;height:150px;border:1px solid #d9d3c7;border-radius:32px;background:linear-gradient(145deg,#fffdf8,#eee9df);box-shadow:0 16px 35px rgba(40,47,51,.09)}.v14-avatar-hero img{width:128px;height:128px;object-fit:contain;filter:drop-shadow(0 13px 9px rgba(37,45,51,.15))}.v14-avatar-hero span{position:absolute;right:-8px;bottom:8px;padding:6px 9px;border-radius:8px;background:var(--v11-ink);color:#fff;font-size:9px;font-weight:900}.v14-profile-hero-copy h1{margin:12px 0 0;font-size:52px;line-height:.98;letter-spacing:-.06em}.v14-profile-hero-copy>p:not(.v14-profile-bio){margin:7px 0 0;color:var(--v11-muted);font-size:12px}.v14-profile-hero-copy>small{display:block;margin-top:12px;color:var(--v11-muted);font-size:10px}.v14-profile-bio{max-width:620px;margin:16px 0 0;color:#4f5b63;font-size:13px;line-height:1.55}.v14-profile-hero>.v11-profile-actions{align-self:start}.v14-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.v14-stat-grid article{min-width:0;padding:16px;border:1px solid var(--v11-line);border-radius:15px;background:var(--v11-card)}.v14-stat-grid article>span,.v14-stat-grid article>small,.v14-stat-grid article>strong{display:block}.v14-stat-grid article>span{color:var(--v11-muted);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v14-stat-grid article>strong{margin:11px 0 5px;font-size:25px;letter-spacing:-.05em}.v14-stat-grid article>small{color:var(--v11-muted);font-size:9px;line-height:1.25}.v14-stat-grid article.is-success{border-color:#a8d3bf;background:#f0f8f4}.v14-stat-grid article.is-danger{border-color:#e9b7b2;background:#fff5f3}.v14-stat-grid article.is-accent{border-color:var(--v11-red);background:var(--v11-red);color:#fff}.v14-stat-grid article.is-accent>span,.v14-stat-grid article.is-accent>small{color:rgba(255,255,255,.75)}.v14-profile-columns{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:14px}.v14-profile-main,.v14-profile-side{display:grid;align-content:start;gap:14px;min-width:0}.v14-profile-side{grid-template-rows:auto auto}.v14-card-hint{color:var(--v11-muted);font-size:9px;font-weight:800}.v14-showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.v14-showcase-slot{display:flex;align-items:center;gap:10px;min-height:70px;padding:11px;border:1px dashed #d4cec2;border-radius:13px;background:#faf8f2}.v14-showcase-slot>span{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:11px;background:#ece8df;color:#a49d91;font-size:17px}.v14-showcase-slot.is-filled{border-style:solid;border-color:#b6d2c4;background:#f1f8f4}.v14-showcase-slot.is-filled>span{background:var(--v11-green);color:#fff}.v14-showcase-slot b,.v14-showcase-slot small{display:block}.v14-showcase-slot b{font-size:10px;line-height:1.25}.v14-showcase-slot small{margin-top:4px;color:var(--v11-muted);font-size:8px}.v14-showcase-editor{margin-top:18px;padding-top:15px;border-top:1px solid var(--v11-line)}.v14-showcase-editor>small{display:block;margin-top:9px;color:var(--v11-muted);font-size:9px}.v14-showcase-control{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:8px;margin-top:8px}.v14-showcase-control label{color:var(--v11-muted);font-size:9px;font-weight:900;text-transform:uppercase}.v14-showcase-control .v11-input{height:38px;font-size:10px}.v14-achievement-card .v11-achievement-grid{grid-template-columns:1fr}.v14-achievement-list article{opacity:1;align-items:flex-start}.v14-achievement-list article:not(.is-unlocked){background:#faf8f2}.v14-achievement-copy{min-width:0;flex:1}.v14-achievement-copy>small{line-height:1.35}.v14-progress-track{height:7px;margin-top:8px;border-radius:999px;background:#e7e3db;overflow:hidden}.v14-progress-track i{display:block;height:100%;min-width:0;border-radius:999px;background:linear-gradient(90deg,var(--v11-red),#f49d56);transition:width .25s ease}.is-unlocked .v14-progress-track i{background:linear-gradient(90deg,var(--v11-green),#7ab995)}.v14-progress-label{display:block!important;margin-top:4px;color:var(--v11-muted);font-size:8px!important}.v14-inline-link{color:var(--v11-red)!important;font-size:9px;font-weight:850;text-decoration:none}.v14-profile-form{display:grid;gap:13px}.v14-profile-form label>span{display:block;margin-bottom:6px;color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v14-textarea{height:auto;min-height:78px;padding:11px 13px;resize:vertical;line-height:1.4}.v14-avatar-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.v14-avatar-choice{position:relative;display:grid;place-items:center;min-width:0;padding:5px;border:1px solid var(--v11-line);border-radius:10px;background:#faf8f2;cursor:pointer}.v14-avatar-choice img{width:42px;height:42px;object-fit:contain}.v14-avatar-choice small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--v11-muted);font-size:7px}.v14-avatar-choice.is-selected{border-color:var(--v11-red);box-shadow:inset 0 0 0 1px var(--v11-red);background:#fff5f1}.v14-avatar-choice.is-locked{opacity:.42;cursor:not-allowed}.v14-avatar-choice>b{position:absolute;top:3px;right:4px;font-size:8px}.v14-wall-list{display:grid;gap:0}.v14-wall-post{padding:12px 0;border-bottom:1px solid var(--v11-line)}.v14-wall-post:last-child{border-bottom:0}.v14-wall-post-head{display:flex;align-items:center;gap:7px}.v14-wall-post-head a{min-width:0;color:var(--v11-ink);font-size:10px;text-decoration:none}.v14-wall-post-head time{margin-left:auto;color:var(--v11-muted);font-size:8px}.v14-wall-post-head button{width:21px;height:21px;padding:0;border:0;border-radius:6px;background:#f1e7e3;color:var(--v11-red-dark);cursor:pointer}.v14-wall-post p{margin:7px 0 0;color:#4f5a62;font-size:11px;line-height:1.45;overflow-wrap:anywhere}.v14-wall-form{display:grid;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--v11-line)}.v14-wall-form .v11-primary-button{min-height:44px;font-size:10px}.v14-login-hint{margin:15px 0 0;color:var(--v11-muted);font-size:10px}.v14-login-hint a{color:var(--v11-red);font-weight:850}.v14-message-card{max-width:580px;margin:45px auto;padding:32px;border:1px solid var(--v11-line);border-radius:20px;background:var(--v11-card);box-shadow:var(--v11-shadow)}.v14-message-card h1{margin:0 0 10px;font-size:30px;letter-spacing:-.05em}.v14-message-card p{margin:0 0 22px;color:var(--v11-muted);font-size:13px;line-height:1.55}.v14-page-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.v14-page-head h1{margin:14px 0 10px;font-size:56px;line-height:.95;letter-spacing:-.06em}.v14-page-head p{max-width:660px;margin:0;color:var(--v11-muted);font-size:14px;line-height:1.55}.v14-saves-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px}.v14-saves-summary span{padding:9px 12px;border:1px solid var(--v11-line);border-radius:10px;background:var(--v11-card);color:var(--v11-muted);font-size:9px;font-weight:850}.v14-saves-summary b{color:var(--v11-ink)}
.v14-save-list{display:grid;gap:18px}.v14-save-group{display:grid;gap:10px}.v14-save-group-head{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:0 4px}.v14-save-group-head h2{margin:9px 0 0;color:var(--v11-muted);font-size:12px;font-weight:700}.v14-save-group-head>b{color:var(--v11-ink);font-size:20px}.v14-save-group>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border:1px solid var(--v11-line);border-radius:14px;background:var(--v11-card);list-style:none;cursor:pointer;box-shadow:0 8px 20px rgba(33,42,49,.035)}.v14-save-group>summary::-webkit-details-marker{display:none}.v14-save-group>summary>span{min-width:0}.v14-save-group>summary b,.v14-save-group>summary small{display:block}.v14-save-group>summary b{font-size:13px}.v14-save-group>summary small{margin-top:4px;color:var(--v11-muted);font-size:9px}.v14-save-group>summary>strong{display:flex;align-items:center;gap:9px;color:var(--v11-muted);font-size:11px}.v14-save-group>summary>strong::after{content:'⌄';display:inline-block;color:var(--v11-red);font-size:18px;line-height:1;transition:transform .18s ease}.v14-save-group[open]>summary>strong::after{transform:rotate(180deg)}.v14-save-group-completed>summary{border-color:#ded1a5;background:#fffaf0}.v14-save-group-lost>summary{border-color:#e6b9b5;background:#fff6f4}.v14-save-group-list{display:grid;gap:10px}.v14-save-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:18px 20px;border:1px solid var(--v11-line);border-radius:17px;background:var(--v11-card);box-shadow:0 9px 25px rgba(33,42,49,.045)}.v14-save-card.is-active{border-color:#a8d2bd;background:#f3faf6}.v14-save-card.is-completed{border-color:#ded1a5;background:#fffaf0}.v14-save-card.is-lost{border-color:#e6b9b5;background:#fff6f4}.v14-save-main{min-width:0}.v14-save-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.v14-save-head h2{margin:0;font-size:17px;letter-spacing:-.035em}.v14-save-mode,.v14-save-status{padding:4px 7px;border-radius:6px;background:var(--v11-ink);color:#fff;font-size:7px;font-weight:950;letter-spacing:.08em}.v14-save-status{background:var(--v11-green)}.is-completed .v14-save-status{background:#a47b22}.is-lost .v14-save-status{background:var(--v11-red-dark)}.v14-save-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;color:var(--v11-muted);font-size:9px}.v14-save-meta span{display:inline-flex;align-items:center;gap:4px}.v14-save-challenge{margin-top:10px;padding:9px 10px;border-radius:10px;background:#f0f3fb;color:#53627c;font-size:9px}.v14-save-reason{margin-top:10px;padding:9px 10px;border-radius:10px;background:#fff0ee;color:var(--v11-red-dark);font-size:9px;line-height:1.4}.v14-save-actions{display:flex;align-items:center;gap:7px;justify-content:flex-end}.v14-save-actions a{white-space:nowrap}.v14-save-disabled{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border:1px solid var(--v11-line);border-radius:10px;background:#f1eee7;color:var(--v11-muted);font-size:9px;font-weight:850;white-space:nowrap}.v14-save-empty{padding:60px 20px;border:1px dashed #cfc8bc;border-radius:17px;background:rgba(255,253,248,.65);color:var(--v11-muted);text-align:center;font-size:12px}.v14-run-entry small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:980px){.v14-profile-hero{grid-template-columns:125px minmax(0,1fr)}.v14-avatar-hero{width:125px;height:125px;border-radius:26px}.v14-avatar-hero img{width:108px;height:108px}.v14-profile-hero>.v11-profile-actions{grid-column:2}.v14-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v14-profile-columns{grid-template-columns:1fr}.v14-profile-side{grid-template-columns:1fr 1fr}.v14-saves-shell,.v14-profile-shell{padding-top:40px}}
@media (max-width:680px){.v14-profile-hero{grid-template-columns:90px minmax(0,1fr);gap:14px}.v14-avatar-hero{width:90px;height:90px;border-radius:20px}.v14-avatar-hero img{width:78px;height:78px}.v14-avatar-hero span{right:-6px;bottom:3px;padding:4px 6px;font-size:7px}.v14-profile-hero-copy h1{font-size:35px}.v14-profile-hero-copy>p:not(.v14-profile-bio){font-size:10px}.v14-profile-hero-copy>small{margin-top:7px;font-size:8px}.v14-profile-bio{grid-column:1/-1;margin-top:2px;font-size:11px}.v14-profile-hero>.v11-profile-actions{grid-column:1/-1;width:100%}.v14-profile-hero>.v11-profile-actions>*{flex:1}.v14-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v14-stat-grid article{padding:13px}.v14-stat-grid article>strong{font-size:21px}.v14-profile-side{grid-template-columns:1fr}.v14-showcase-grid{grid-template-columns:1fr}.v14-page-head{align-items:start;flex-direction:column}.v14-page-head h1{font-size:44px}.v14-save-card{grid-template-columns:1fr;gap:12px;padding:15px}.v14-save-actions{justify-content:flex-start}.v14-save-actions a{flex:1}.v14-avatar-picker{grid-template-columns:repeat(5,minmax(0,1fr))}.v14-profile-shell,.v14-saves-shell{padding-bottom:100px}}


/* v14.9 – verbindliche Regelübersicht direkt vor einem neuen Run */
.v11-rules-confirm-dialog{width:min(690px,calc(100% - 24px));max-height:min(86vh,820px);overflow:auto}
.v11-rules-confirm-dialog>p{margin-bottom:14px}
.v11-rules-confirm-meta{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.v11-rules-confirm-meta span{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--v11-line);border-radius:9px;background:#f5f2eb;color:var(--v11-ink);font-size:8px;font-weight:850}
.v11-rules-confirm-meta b{color:var(--v11-muted);font-size:7px;text-transform:uppercase;letter-spacing:.06em}
.v11-rules-confirm-list{display:grid;gap:8px;max-height:390px;padding-right:3px;overflow:auto}
.v11-rules-confirm-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;padding:12px;border:1px solid var(--v11-line);border-radius:12px;background:#faf8f2}
.v11-rules-confirm-number{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--v11-ink);color:#fff;font-size:9px;font-weight:950;letter-spacing:.06em}
.v11-rules-confirm-item b,.v11-rules-confirm-item strong,.v11-rules-confirm-item p,.v11-rules-confirm-item small{display:block}
.v11-rules-confirm-item b{font-size:11px}
.v11-rules-confirm-item strong{margin-top:3px;color:var(--v11-green);font-size:8px;line-height:1.4}
.v11-rules-confirm-item p{margin:6px 0 0;color:var(--v11-muted);font-size:9px;line-height:1.55}
.v11-rules-confirm-item small{margin-top:7px;padding-top:7px;border-top:1px dashed var(--v11-line);color:#6a5b4d;font-size:8px;line-height:1.45}
.v11-rules-confirm-item small em{color:var(--v11-red);font-style:normal;font-weight:950}
.v11-rules-confirm-empty{padding:14px;border:1px dashed var(--v11-line);border-radius:12px;background:#faf8f2}
.v11-rules-confirm-empty b{font-size:10px}.v11-rules-confirm-empty p{margin:4px 0 0;color:var(--v11-muted);font-size:8px;line-height:1.45}
.v11-rules-confirm-protection{display:grid;gap:6px;margin:12px 0 0;padding:10px 11px;border:1px solid #e5c8a8;border-radius:11px;background:#fff7ea}
.v11-rules-confirm-protection p{margin:0;color:#765536;font-size:8px;line-height:1.5}
.v11-rules-confirm-check{display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;padding:12px;border:1px solid var(--v11-line);border-radius:12px;background:#f1f6f3;cursor:pointer}
.v11-rules-confirm-check input{flex:0 0 auto;width:18px;height:18px;margin:1px 0 0;accent-color:var(--v11-green)}
.v11-rules-confirm-check b,.v11-rules-confirm-check small{display:block}.v11-rules-confirm-check b{font-size:9px}.v11-rules-confirm-check small{margin-top:3px;color:var(--v11-muted);font-size:7px;line-height:1.4}
.v11-rules-confirm-actions{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1.6fr);gap:8px;margin-top:12px}
.v11-rules-confirm-actions .v11-outline-button,.v11-rules-confirm-actions .v11-primary-button{min-height:46px}
.v11-rules-confirm-dialog.is-mobile-fallback{display:block!important;position:fixed!important;z-index:9999!important;top:max(10px,env(safe-area-inset-top))!important;right:10px!important;bottom:auto!important;left:10px!important;width:auto!important;max-width:690px!important;max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;margin:0 auto!important;overflow-x:hidden!important;overflow-y:auto!important;transform:none!important;-webkit-overflow-scrolling:touch}
@supports not (height:100dvh){.v11-rules-confirm-dialog.is-mobile-fallback{max-height:calc(100vh - 24px)!important}}
@media (max-width:620px){
  .v11-rules-confirm-dialog{padding:22px 17px calc(18px + env(safe-area-inset-bottom))}
  .v11-rules-confirm-dialog h2{font-size:24px}
  .v11-rules-confirm-list{max-height:none;overflow:visible}
  .v11-rules-confirm-item{grid-template-columns:31px minmax(0,1fr);gap:9px;padding:10px}
  .v11-rules-confirm-number{width:30px;height:30px;border-radius:8px}
  .v11-rules-confirm-actions{grid-template-columns:1fr}
  .v11-rules-confirm-actions .v11-primary-button{order:-1}
}

/* v14.11 save management */
.v14-save-actions button.v11-outline-button{white-space:nowrap;cursor:pointer}.v14-save-actions .v11-outline-button.is-danger{border-color:#e4b1ad;background:#fff5f3;color:var(--v11-red-dark)}.v14-save-actions .v11-outline-button.is-danger:hover{border-color:var(--v11-red);color:var(--v11-red)}


/* v14.13 · Klickbare Run-Statistiken und Fang-/Verlustübersicht */
.v11-room-stats>span.has-action{padding:0}
.v11-stat-button{display:block;width:100%;min-height:43px;padding:5px 13px;border:0;border-radius:9px;background:transparent;color:var(--v11-ink);text-align:left;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.v11-stat-button small,.v11-stat-button b{display:block;pointer-events:none}
.v11-stat-button small{color:var(--v11-muted);font-size:7px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.v11-stat-button b{margin-top:3px;font:900 12px ui-monospace,monospace}
.v11-stat-button:hover,.v11-stat-button:focus-visible{outline:0;background:#fff1ee;color:var(--v11-red)}
.v11-stat-button:hover small,.v11-stat-button:focus-visible small{color:var(--v11-red)}
.v11-stat-button:active{transform:translateY(1px)}
.v11-run-pokemon-dialog{width:min(560px,calc(100% - 24px));border-top:5px solid var(--v11-green)}
.v11-run-pokemon-dialog[data-kind="loss"]{border-top-color:var(--v11-red)}
.v11-run-pokemon-list{display:grid;gap:8px;max-height:min(55vh,520px);margin-top:17px;padding-right:3px;overflow:auto;overscroll-behavior:contain}
.v11-run-pokemon-row{display:grid;grid-template-columns:58px minmax(0,1fr) 34px;align-items:center;gap:11px;min-height:72px;padding:8px 10px;border:1px solid var(--v11-line);border-radius:13px;background:#f8f6f0}
.v11-run-pokemon-row.is-catch{box-shadow:inset 3px 0 0 var(--v11-green)}
.v11-run-pokemon-row.is-loss{box-shadow:inset 3px 0 0 var(--v11-red)}
.v11-run-pokemon-art{display:grid;place-items:center;width:58px;height:58px;border-radius:12px;background:#eeebe3;overflow:hidden}
.v11-run-pokemon-art img{width:54px;height:54px;object-fit:contain;image-rendering:auto}
.v11-run-pokemon-copy{min-width:0}
.v11-run-pokemon-copy>small,.v11-run-pokemon-copy>b,.v11-run-pokemon-copy>span{display:block}
.v11-run-pokemon-copy>small{color:var(--v11-muted);font-size:7px;font-weight:950;letter-spacing:.08em}
.v11-run-pokemon-row.is-catch .v11-run-pokemon-copy>small{color:var(--v11-green)}
.v11-run-pokemon-row.is-loss .v11-run-pokemon-copy>small{color:var(--v11-red)}
.v11-run-pokemon-copy>b{margin-top:3px;overflow:hidden;text-overflow:ellipsis;color:var(--v11-ink);font-size:13px;white-space:nowrap}
.v11-run-pokemon-copy>span{margin-top:4px;overflow:hidden;text-overflow:ellipsis;color:var(--v11-muted);font-size:8px;white-space:nowrap}
.v11-run-pokemon-row>strong{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#e9f4ee;color:var(--v11-green);font-size:15px}
.v11-run-pokemon-row.is-loss>strong{background:#fae9e7;color:var(--v11-red)}
.v11-run-pokemon-empty{padding:28px 18px;border:1px dashed var(--v11-line);border-radius:13px;background:#f8f6f0;text-align:center}
.v11-run-pokemon-empty b,.v11-run-pokemon-empty small{display:block}
.v11-run-pokemon-empty b{font-size:12px}
.v11-run-pokemon-empty small{margin-top:5px;color:var(--v11-muted);font-size:8px;line-height:1.5}
@media (max-width:620px){.v11-stat-button{min-height:40px;padding:4px 7px}.v11-stat-button b{font-size:10px}.v11-run-pokemon-dialog{padding:22px 16px}.v11-run-pokemon-row{grid-template-columns:50px minmax(0,1fr) 28px;gap:8px;padding:7px}.v11-run-pokemon-art{width:50px;height:50px}.v11-run-pokemon-art img{width:47px;height:47px}.v11-run-pokemon-row>strong{width:27px;height:27px}.v11-run-pokemon-copy>b{font-size:11px}.v11-run-pokemon-copy>span{font-size:7px}}

/* v14.15 save persistence + editable local emergency saves */
.v14-save-card.is-local-only{outline:1px dashed #d7a65a;outline-offset:-5px}.v14-save-status.is-local{background:#a46d1f!important}.v14-save-local{margin-top:10px;padding:9px 10px;border-radius:10px;background:#fff5df;color:#79561e;font-size:9px;line-height:1.4}.v14-rename-save-dialog{width:min(500px,calc(100% - 24px))}
@media (max-width:680px){.v14-save-actions button{flex:1}.v14-save-actions{flex-wrap:wrap}.v14-save-status.is-local{font-size:6px}}

/* v14.17 · clickable party + live Pokémon detail sheet */
.mon-slot.is-detail-button{position:relative;width:100%;margin:0;font:inherit;color:inherit;text-align:left;appearance:none;-webkit-appearance:none;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.v11-team-list .mon-slot.is-detail-button:hover,.v11-team-list .mon-slot.is-detail-button:focus-visible{border-color:#ef5148;background:#fff9f6;box-shadow:0 6px 18px rgba(28,38,46,.08);outline:none;transform:translateY(-1px)}
.v11-card-team .mon-slot.is-detail-button:hover,.v11-card-team .mon-slot.is-detail-button:focus-visible{background:#fff9f6;box-shadow:inset 0 0 0 1px rgba(239,81,72,.45);outline:none}
.mon-detail-chevron{position:absolute;right:5px;top:50%;transform:translateY(-50%);color:#a0a7aa;font-size:14px;font-weight:900;line-height:1;pointer-events:none}.v11-card-team .mon-detail-chevron{display:none}
.v11-pokemon-detail-dialog{width:min(620px,calc(100% - 24px));max-height:min(820px,calc(100dvh - 24px));overflow:auto}
.v11-pokemon-detail-dialog>p{margin-top:-5px}.v11-pokemon-detail-body{display:grid;gap:11px;margin-top:16px}
.v11-pokemon-detail-hero{display:grid;grid-template-columns:94px 1fr;gap:12px;padding:13px;border:1px solid var(--v11-line);border-radius:15px;background:#f7f4ed}
.v11-pokemon-detail-art{position:relative;display:grid;place-items:center;width:94px;height:94px;border-radius:18px;background:#e9edf0;overflow:hidden}.v11-pokemon-detail-art img{position:relative;z-index:2;width:84px;height:84px;object-fit:contain;image-rendering:pixelated}.v11-pokemon-detail-art>span{position:absolute;color:#aab2b6;font-size:28px;font-weight:1000}
.v11-pokemon-detail-overview{display:grid;grid-template-columns:1fr 1fr;gap:7px}.v11-pokemon-detail-overview>span{min-width:0;padding:9px;border-radius:10px;background:#fff}.v11-pokemon-detail-overview small,.v11-pokemon-detail-overview b{display:block}.v11-pokemon-detail-overview small{color:var(--v11-muted);font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.v11-pokemon-detail-overview b{margin-top:3px;overflow:hidden;text-overflow:ellipsis;color:var(--v11-ink);font-size:10px;white-space:nowrap}.v11-pokemon-detail-overview b.is-loss{color:var(--v11-red-dark)}
.v11-pokemon-detail-hp{grid-column:1/-1;padding:9px 10px;border-radius:11px;background:#fff}.v11-pokemon-detail-hp>div{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.v11-pokemon-detail-hp span{font-size:8px;font-weight:1000}.v11-pokemon-detail-hp b{font:1000 10px ui-monospace,SFMono-Regular,Consolas,monospace}.v11-pokemon-detail-hp .mon-hp-track{height:10px}
.v11-pokemon-detail-section{padding:13px;border:1px solid var(--v11-line);border-radius:15px;background:#fff}.v11-pokemon-detail-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.v11-pokemon-detail-section>header>span{font-size:10px;font-weight:1000}.v11-pokemon-detail-section>header>small{color:var(--v11-muted);font-size:7px;font-weight:900;letter-spacing:.08em}
.v11-pokemon-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.v11-pokemon-stat{display:grid;min-width:0;padding:10px;border-radius:11px;background:#f4f1e9}.v11-pokemon-stat small{color:var(--v11-muted);font-size:7px;font-weight:1000}.v11-pokemon-stat b{margin-top:2px;font:1000 17px ui-monospace,SFMono-Regular,Consolas,monospace}.v11-pokemon-stat em{margin-top:2px;overflow:hidden;color:#7f888d;font-size:6px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.v11-pokemon-move-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.v11-pokemon-move{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;min-width:0;padding:9px;border-radius:11px;background:#f4f1e9}.v11-pokemon-move>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--v11-ink);color:#fff;font-size:8px;font-weight:1000}.v11-pokemon-move>div{min-width:0}.v11-pokemon-move b,.v11-pokemon-move small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v11-pokemon-move b{font-size:9px}.v11-pokemon-move>div small{margin-top:2px;color:var(--v11-muted);font-size:6px}.v11-pokemon-move>strong{display:grid;justify-items:end;font:1000 11px ui-monospace,SFMono-Regular,Consolas,monospace}.v11-pokemon-move>strong small{color:var(--v11-muted);font:900 6px Inter,Arial,sans-serif}
.v11-pokemon-detail-advanced{padding:0;border:1px solid var(--v11-line);border-radius:15px;background:#fff;overflow:hidden}.v11-pokemon-detail-advanced summary{display:flex;align-items:center;justify-content:space-between;padding:13px;cursor:pointer;list-style:none}.v11-pokemon-detail-advanced summary::-webkit-details-marker{display:none}.v11-pokemon-detail-advanced summary span{font-size:9px;font-weight:1000}.v11-pokemon-detail-advanced summary b{font-size:15px}.v11-pokemon-detail-advanced[open] summary b{transform:rotate(45deg)}.v11-pokemon-ivev-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;padding:1px;background:var(--v11-line)}.v11-pokemon-ivev-grid>span{display:grid;gap:2px;padding:9px;background:#faf8f3}.v11-pokemon-ivev-grid small{color:var(--v11-muted);font-size:6px;font-weight:900}.v11-pokemon-ivev-grid b{font-size:8px}.v11-pokemon-ivev-grid em{color:#788187;font-size:7px;font-style:normal}.v11-pokemon-detail-empty{padding:15px;border-radius:11px;background:#f4f1e9;color:var(--v11-muted);font-size:8px;line-height:1.5;text-align:center}
@media(max-width:620px){.v11-pokemon-detail-dialog{width:calc(100% - 14px);max-height:calc(100dvh - 14px);padding:20px 16px}.v11-pokemon-detail-dialog h2{padding-right:35px;font-size:24px}.v11-pokemon-detail-hero{grid-template-columns:76px 1fr}.v11-pokemon-detail-art{width:76px;height:76px}.v11-pokemon-detail-art img{width:69px;height:69px}.v11-pokemon-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v11-pokemon-move-list{grid-template-columns:1fr}.v11-pokemon-ivev-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v14.20 canonical live statistics grouped by mode */
.v20-profile-stats{display:grid;gap:10px;margin-bottom:14px}.v20-stats-overview{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:3px 2px 5px}.v20-stats-overview h2{margin:4px 0 0;font-size:22px;letter-spacing:-.04em}.v20-stats-overview p{margin:0;color:var(--v11-muted);font-size:9px}.v20-stats-overview p b,.v20-stats-overview p strong{color:var(--v11-ink)}.v20-stat-group{display:block;padding:14px;border:1px solid var(--v11-line);border-radius:17px;background:var(--v11-card)}details.v20-stat-group>summary,.v20-stat-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}.v20-stat-group>header{cursor:default}.v20-stat-group>summary::-webkit-details-marker{display:none}.v20-stat-group>summary>div,.v20-stat-group>header>div{display:flex;align-items:center;gap:9px;min-width:0}.v20-stat-group>summary small,.v20-stat-group>header small{color:var(--v11-muted);font-size:8px}.v20-stat-group>summary>strong,.v20-stat-group>header>strong{display:flex;align-items:center;gap:5px;flex:none;color:var(--v11-muted);font-size:9px}.v20-stat-group>summary>strong b,.v20-stat-group>header>strong b{color:var(--v11-ink);font-size:13px}.v20-stat-group>summary>strong i{font-style:normal;transition:transform .18s ease}.v20-stat-group[open]>summary>strong i{transform:rotate(180deg)}.v20-mode-pill{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:var(--v11-ink);color:#fff;font-size:7px;font-weight:950;letter-spacing:.11em}.v20-stat-group.is-ranked{border-color:#d8c5b3;background:#fffaf3;box-shadow:0 8px 24px rgba(37,44,49,.035)}.v20-stat-group.is-ranked .v20-mode-pill{background:#b74737}.v20-stat-group.is-custom{background:#faf9f5}.v20-stat-group.is-custom .v20-mode-pill{background:#747b7c}.v20-stat-group.is-coop{border-color:#bfd6ca;background:#f5faf7}.v20-stat-group.is-coop .v20-mode-pill{background:#327a5c}.v20-stat-group.is-challenge{border-color:#cdd5e8;background:#f5f7fc}.v20-stat-group.is-challenge .v20-mode-pill{background:#263d68}.v20-mode-stat-grid{margin:13px 0 0;grid-template-columns:repeat(4,minmax(0,1fr))}.v20-stat-group:not([open]) .v20-mode-stat-grid{display:none}.v20-stat-group.is-ranked .v20-mode-stat-grid{display:grid}.v20-mode-stat-grid article{background:rgba(255,255,255,.68)}
@media (max-width:980px){.v20-mode-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:680px){.v20-stats-overview{align-items:flex-start;flex-direction:column;gap:6px}.v20-stat-group{padding:11px}.v20-stat-group>summary,.v20-stat-group>header{align-items:flex-start}.v20-stat-group>summary>div,.v20-stat-group>header>div{align-items:flex-start;flex-direction:column;gap:5px}.v20-mode-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v20-mode-stat-grid article{padding:11px}.v20-mode-stat-grid article>strong{font-size:19px}}

/* v14.22 · Account actions, Logout & Admin */
.v22-account-cluster{justify-self:end;display:flex;align-items:center;gap:7px;min-width:0}
.v22-account-cluster .v11-account-link{justify-self:auto}
.v22-nav-session-actions{display:flex;align-items:center;gap:7px}
.v22-admin-link,.v22-logout-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;border:1px solid var(--v11-line);border-radius:11px;background:rgba(255,255,255,.55);color:var(--v11-ink);font:800 11px/1 Inter,"Segoe UI",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.v22-admin-link:hover{border-color:#a7bdb4;background:#edf5f1;color:var(--v11-green)}
.v22-logout-button:hover{border-color:#efb1ac;background:#fff2f0;color:var(--v11-red-dark)}
.v22-logout-button:disabled{opacity:.55;cursor:wait}

/* Admin dashboard */
.v22-admin-shell{position:relative;z-index:1;padding:52px 0 70px}
.v22-admin-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.v22-admin-hero h1{margin:10px 0 6px;font-size:clamp(34px,5vw,58px);letter-spacing:-.055em}
.v22-admin-hero p{margin:0;color:var(--v11-muted);font-size:14px;line-height:1.55}
.v22-admin-hero .v11-outline-button{width:auto;min-width:120px}
.v22-admin-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.v22-admin-overview article{padding:17px 18px;border:1px solid var(--v11-line);border-radius:15px;background:var(--v11-card);box-shadow:0 8px 28px rgba(33,42,49,.045)}
.v22-admin-overview span,.v22-admin-overview strong{display:block}.v22-admin-overview span{color:var(--v11-muted);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.v22-admin-overview strong{margin-top:5px;font-size:27px;letter-spacing:-.05em}
.v22-admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:19px 0 11px}
.v22-admin-tabs{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid var(--v11-line);border-radius:13px;background:#efebe2}
.v22-admin-tabs button{min-height:34px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--v11-muted);font-size:10px;font-weight:900;cursor:pointer}.v22-admin-tabs button.is-active{background:var(--v11-card);color:var(--v11-ink);box-shadow:0 3px 12px rgba(0,0,0,.07)}
.v22-admin-search{width:min(390px,48%)}
.v22-admin-panel{margin-top:0}.v22-admin-panel>header{display:flex;align-items:center;justify-content:space-between;gap:15px}
.v22-table-wrap{overflow:auto;margin:0 -1px -1px;border-radius:0 0 16px 16px}
.v22-admin-table{width:100%;min-width:880px;border-collapse:collapse;font-size:11px}.v22-admin-table th,.v22-admin-table td{padding:12px 13px;border-top:1px solid var(--v11-line);text-align:left;vertical-align:middle}.v22-admin-table th{position:sticky;top:0;z-index:1;background:#f3f0e8;color:var(--v11-muted);font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}.v22-admin-table tbody tr:hover{background:#fbf8f1}.v22-admin-table strong,.v22-admin-table small{display:block}.v22-admin-table small{margin-top:2px;color:var(--v11-muted);font-size:8px}.v22-admin-table code{font-size:9px;font-weight:800;word-break:break-all}.v22-table-link{color:var(--v11-red)!important;font-size:9px;font-weight:900;text-decoration:none;white-space:nowrap}.v22-empty-cell{padding:28px!important;text-align:center!important;color:var(--v11-muted)}
.v22-admin-status{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;background:#ece9e1;color:#6f6b63;font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.05em}.v22-admin-status.is-live{background:#eaf4ef;color:var(--v11-green)}.v22-admin-status.is-danger{background:#fff0ee;color:var(--v11-red-dark)}.v22-admin-status.is-success{background:#eaf4ef;color:var(--v11-green)}

@media (max-width:920px){.v22-admin-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.v22-admin-hero{align-items:flex-start;flex-direction:column}.v22-admin-toolbar{align-items:stretch;flex-direction:column}.v22-admin-search{width:100%}}
@media (max-width:680px){.v22-account-cluster{gap:5px}.v22-nav-session-actions{gap:5px}.v22-admin-link,.v22-logout-button{min-height:38px;padding:0 9px;font-size:9px}.v22-account-cluster .v11-account-link{padding-left:10px;padding-right:10px}.v22-admin-shell{padding-top:30px;padding-bottom:100px}.v22-admin-overview{grid-template-columns:1fr 1fr;gap:7px}.v22-admin-overview article{padding:13px}.v22-admin-overview strong{font-size:22px}.v22-admin-tabs{width:100%}.v22-admin-tabs button{flex:1;padding:0 8px}}

/* v14.26 · profile Pokédex */
.v26-pokedex-stat{position:relative;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.v26-pokedex-stat:hover,.v26-pokedex-stat:focus-visible{transform:translateY(-2px);border-color:#9ecbb8!important;background:#f3fbf7!important;box-shadow:0 8px 24px rgba(39,100,75,.10);outline:none}.v26-pokedex-stat:after{content:'DEX';position:absolute;right:9px;top:8px;padding:3px 5px;border-radius:999px;background:#e5f3ec;color:#327a5c;font-size:5px;font-weight:1000;letter-spacing:.1em}.v26-pokedex-stat small{padding-right:24px}
.v26-pokedex-dialog{width:min(920px,calc(100% - 24px));max-height:min(900px,calc(100dvh - 24px));overflow:auto}.v26-pokedex-dialog>p{margin-bottom:12px}.v26-pokedex-tabs{display:flex;gap:6px;position:sticky;top:-1px;z-index:4;margin:10px 0;padding:7px;border:1px solid var(--v11-line);border-radius:13px;background:rgba(247,244,236,.96);backdrop-filter:blur(8px)}.v26-pokedex-tabs button{flex:1;min-height:34px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--v11-muted);font-size:8px;font-weight:950;cursor:pointer}.v26-pokedex-tabs button.is-active{background:var(--v11-ink);color:#fff;box-shadow:0 4px 12px rgba(25,33,39,.12)}
.v26-pokedex-progress{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin:11px 0 13px}.v26-pokedex-progress>strong{font:1000 12px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}.v26-pokedex-progress>span{height:9px;border-radius:99px;background:#e7e3da;overflow:hidden}.v26-pokedex-progress>span>i{display:block;width:0;height:100%;border-radius:inherit;background:#4eaa7d;transition:width .25s ease}
.v26-pokedex-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;max-height:62vh;padding:2px 3px 5px 1px;overflow:auto;overscroll-behavior:contain}.v26-dex-entry{position:relative;display:grid;justify-items:center;min-width:0;padding:7px 5px 8px;border:1px solid var(--v11-line);border-radius:12px;background:#f7f5ef;text-align:center;overflow:hidden}.v26-dex-entry.is-missing{background:#efeee9}.v26-dex-number{justify-self:start;color:var(--v11-muted);font:900 6px ui-monospace,SFMono-Regular,Consolas,monospace}.v26-dex-sprite{display:grid;place-items:center;width:64px;height:57px}.v26-dex-sprite img{width:58px;height:58px;object-fit:contain;image-rendering:pixelated;transition:filter .18s ease,opacity .18s ease,transform .18s ease}.v26-dex-entry.is-missing .v26-dex-sprite img{filter:grayscale(1) brightness(.55) contrast(.8);opacity:.24}.v26-dex-entry.is-caught{border-color:#a9d6bf;background:#f5fbf7;box-shadow:inset 0 0 0 1px rgba(78,170,125,.12)}.v26-dex-entry.is-caught:hover .v26-dex-sprite img{transform:translateY(-2px) scale(1.05)}.v26-dex-entry>b{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--v11-ink);font-size:7px;white-space:nowrap}.v26-dex-entry.is-missing>b{color:#aaa8a1}.v26-dex-entry>i{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#3f996d;color:#fff;font-size:9px;font-style:normal;font-weight:1000}.v26-dex-entry>i.is-lock{background:#d9d6ce;color:#aaa79f;font-size:10px}
@media(max-width:900px){.v26-pokedex-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:680px){.v26-pokedex-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:19px 13px}.v26-pokedex-tabs{gap:3px;padding:4px}.v26-pokedex-tabs button{min-height:32px;padding:0 5px;font-size:7px}.v26-pokedex-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-height:66vh}.v26-dex-entry{padding:5px 3px 7px;border-radius:10px}.v26-dex-sprite{width:54px;height:50px}.v26-dex-sprite img{width:50px;height:50px}.v26-dex-entry>b{font-size:6px}}

/* v14.32 Ranked recovery actions */
.v11-screen-wait-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:14px;max-width:92%;pointer-events:auto}.v11-screen-wait-button{border:1px solid #5a6b79;border-radius:7px;background:#1b2a36;color:#f3f6f8;padding:7px 10px;font:800 8px/1.1 inherit;letter-spacing:.03em;cursor:pointer}.v11-screen-wait-button:hover{border-color:#93a4b1;background:#243746}.v11-screen-wait-button.is-danger{border-color:#d95a52;background:#a93632;color:#fff}.v11-screen-wait-button:disabled{opacity:.55;cursor:wait}

/* ========================================================================== 
   v14.42 · POKÉMON DESIGN OVERHAUL
   Readability pass + stronger game identity across all PokéLocke surfaces.
   ========================================================================== */
:root{
  --v11-ink:#172a46;
  --v11-muted:#5d6e83;
  --v11-paper:#eaf4ff;
  --v11-card:#ffffff;
  --v11-line:#b9d3ec;
  --v11-red:#e64b4b;
  --v11-red-dark:#bd3434;
  --v11-green:#2f9f65;
  --v11-yellow:#ffcb05;
  --v11-blue:#2a75bb;
  --v11-blue-dark:#174f8c;
  --v11-blue-deep:#102f56;
  --v11-sky:#dbeeff;
  --v11-shadow:0 20px 55px rgba(23,67,110,.16),0 3px 0 rgba(23,79,140,.08);
}

html{font-size:16px}
.v11-page{
  background:
    radial-gradient(circle at 12% 12%,rgba(255,203,5,.18),transparent 18rem),
    radial-gradient(circle at 88% 20%,rgba(42,117,187,.16),transparent 24rem),
    linear-gradient(180deg,#eef8ff 0,#e8f3ff 54%,#f8fbff 100%);
  color:var(--v11-ink);
  font-family:"Trebuchet MS",Inter,"Segoe UI",system-ui,sans-serif;
  font-size:15px;
}
.v11-page::before{
  opacity:.55;
  background-image:
    linear-gradient(rgba(42,117,187,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(42,117,187,.04) 1px,transparent 1px);
  background-size:34px 34px;
}
.v11-page::after{
  content:"";
  position:fixed;
  z-index:-1;
  right:-170px;
  bottom:-210px;
  width:520px;
  height:520px;
  border:42px solid rgba(42,117,187,.045);
  border-radius:50%;
  box-shadow:inset 0 0 0 34px rgba(255,255,255,.28);
  pointer-events:none;
}
.v11-page .shell{width:min(1280px,calc(100% - 48px))}
.v11-page p,.v11-page li{line-height:1.6}
.v11-page small{font-size:12px;line-height:1.45}

/* Top navigation / brand ---------------------------------------------------- */
.v11-nav{
  position:relative;
  z-index:40;
  min-height:92px;
  margin-top:14px;
  padding:0 22px;
  border:1px solid rgba(255,203,5,.74);
  border-bottom:4px solid var(--v11-yellow);
  border-radius:22px;
  background:linear-gradient(135deg,var(--v11-blue-deep),var(--v11-blue) 72%,#3b86c8);
  box-shadow:0 18px 45px rgba(17,62,103,.22),inset 0 1px 0 rgba(255,255,255,.14);
}
.v11-brand{gap:13px;color:#fff}
.v11-brand-mark{
  position:relative;
  width:48px;
  height:48px;
  flex:0 0 48px;
  border:3px solid #10243b;
  border-radius:50%;
  background:linear-gradient(#ed4d4d 0 44%,#172a46 44% 56%,#fff 56% 100%);
  color:transparent;
  font-size:0;
  box-shadow:0 4px 0 rgba(0,0,0,.16),0 0 0 3px rgba(255,255,255,.16);
}
.v11-brand-mark::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:14px;height:14px;
  transform:translate(-50%,-50%);
  border:4px solid #172a46;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 2px #dce7f0;
}
.v11-brand>span:last-child{gap:6px}
.v11-brand strong{font-size:21px;letter-spacing:-.035em;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.12)}
.v11-brand small{font-size:13px;color:var(--v11-yellow);letter-spacing:.11em;text-shadow:0 1px 0 rgba(0,0,0,.15)}
.v11-nav nav{gap:10px}
.v11-nav nav a{
  min-height:48px;
  display:flex;
  align-items:center;
  padding:0 16px;
  border-radius:13px;
  color:#dcecff;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
}
.v11-nav nav a:hover{background:rgba(255,255,255,.1);color:#fff}
.v11-nav nav a.is-active{background:var(--v11-yellow);color:#193759;box-shadow:0 4px 0 #d8a900}
.v11-nav nav a.is-active::after{display:none}
.v11-account-link,.v22-admin-link,.v22-logout-button{
  min-height:46px;
  padding:0 15px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:13px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:13px;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.v11-account-link span{font-size:11px;color:#8ff0b7}
.v22-admin-link:hover,.v11-account-link:hover{background:rgba(255,255,255,.2);color:#fff;border-color:rgba(255,255,255,.42)}
.v22-logout-button:hover{background:#c53d3d;color:#fff;border-color:#ff8d8d}

/* Universal readable labels / badges -------------------------------------- */
.v11-eyebrow,.v11-kicker{
  font-size:12px;
  letter-spacing:.105em;
  color:#47647f;
}
.v11-eyebrow{gap:10px}
.v11-eyebrow i{width:10px;height:10px;background:var(--v11-yellow);box-shadow:0 0 0 5px rgba(255,203,5,.22)}
.v11-step{
  width:50px;height:50px;
  border-radius:15px;
  background:linear-gradient(145deg,var(--v11-blue),var(--v11-blue-dark));
  color:#fff;
  font-size:14px;
  box-shadow:0 5px 0 #103f74;
}
.v20-mode-pill,.v11-achievement-mode,.v22-admin-status{
  min-height:30px;
  padding:0 11px;
  font-size:10px;
  letter-spacing:.09em;
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.12);
}
.v11-page [class*="badge"],.v11-page [class*="pill"]{font-weight:900}
.v11-page button[aria-label*="Info"],
.v11-page button[title*="Info"],
.v11-page [data-info],
.v11-page .info-button,
.v11-page .v11-info-button{
  min-width:38px!important;
  min-height:38px!important;
  font-size:16px!important;
  border-radius:50%!important;
}

/* Inputs / buttons --------------------------------------------------------- */
.v11-input{
  height:50px;
  padding:0 15px;
  border:2px solid #c2d7eb;
  border-radius:13px;
  background:#fff;
  color:var(--v11-ink);
  font-size:15px;
  font-weight:700;
  box-shadow:inset 0 2px 5px rgba(27,68,108,.035);
}
.v11-input:focus{border-color:var(--v11-blue);box-shadow:0 0 0 4px rgba(42,117,187,.14)}
.v11-primary-button{
  min-height:60px;
  padding:0 20px;
  border:2px solid #b82f2f;
  border-radius:15px;
  background:linear-gradient(180deg,#ef5a58,#dd3f40);
  font-size:15px;
  letter-spacing:.01em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 5px 0 #b43133,0 10px 22px rgba(185,49,51,.18);
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease;
}
.v11-primary-button:hover{background:linear-gradient(180deg,#f46260,#e54445);transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 7px 0 #b43133,0 14px 25px rgba(185,49,51,.22)}
.v11-primary-button:active{transform:translateY(2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 2px 0 #a92e30}
.v11-primary-button b{font-size:24px}
.v11-outline-button{
  min-height:46px!important;
  padding:0 15px!important;
  border:2px solid #afcbe5!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--v11-blue-dark)!important;
  font-size:13px!important;
  font-weight:900!important;
}
.v11-outline-button:hover{border-color:var(--v11-blue)!important;background:#eef7ff!important}
.v11-icon-button{
  width:50px;height:50px;
  border:2px solid #123f70;
  border-radius:14px;
  background:linear-gradient(145deg,var(--v11-blue),var(--v11-blue-dark));
  font-size:24px;
  box-shadow:0 4px 0 #103d6c;
}
.v11-icon-button:hover{background:linear-gradient(145deg,#3989cb,#1d62a2)}
.v11-secondary-link,.v14-inline-link,.v22-table-link{font-size:13px!important;color:var(--v11-blue-dark)!important;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.v11-privacy-note,.v11-form-error,.v11-rom-meta{font-size:12px}

/* Cards ------------------------------------------------------------------- */
.v11-data-card,.v14-message-card,.v11-board-card,.v11-auth-card,
.v14-stat-grid article,.v20-stat-group,.v22-admin-overview article{
  border:2px solid #c4d9ed;
  background:rgba(255,255,255,.94);
  box-shadow:0 13px 34px rgba(31,79,123,.09);
}
.v11-data-card,.v11-board-card,.v11-auth-card{border-radius:20px}
.v11-data-card>header,.v11-board-card>header{
  border-bottom-color:#d7e5f2;
  background:linear-gradient(180deg,#fff,#f5faff);
}
.v11-data-card h2,.v11-board-card h2{font-size:24px}

/* Home -------------------------------------------------------------------- */
.v11-home-grid{grid-template-columns:minmax(0,1.1fr) minmax(420px,520px);gap:64px;padding:68px 0 60px}
.v11-intro{position:relative;padding-top:12px}
.v11-intro::before{
  content:"TRAINER HUB";
  position:absolute;
  z-index:-1;
  top:160px;
  left:-78px;
  transform:rotate(-90deg);
  color:rgba(42,117,187,.075);
  font-size:56px;
  font-weight:1000;
  letter-spacing:.09em;
}
.v11-intro h1{
  max-width:760px;
  margin:22px 0 20px;
  font-size:clamp(54px,6.4vw,84px);
  line-height:.92;
  color:var(--v11-blue-deep);
  text-shadow:0 4px 0 rgba(255,255,255,.8);
}
.v11-intro h1 span{color:var(--v11-blue);position:relative}
.v11-intro h1 span::after{
  content:"";
  position:absolute;
  left:2px;right:0;bottom:-8px;
  height:8px;
  border-radius:99px;
  background:var(--v11-yellow);
  box-shadow:0 3px 0 #d8aa00;
}
.v11-lead{max-width:680px;color:#526a80;font-size:18px;line-height:1.65;font-weight:600}
.v11-proof{gap:11px;margin-top:30px}
.v11-proof span{
  min-height:40px;
  padding:6px 12px 6px 6px;
  border:1px solid #c5daee;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  color:#385772;
  font-size:13px;
  box-shadow:0 5px 15px rgba(37,87,132,.06);
}
.v11-proof b{
  width:29px;height:29px;
  border-radius:50%;
  background:var(--v11-yellow);
  color:#193759;
  font-size:11px;
}
.v11-pokemon-line{height:195px;margin:36px 0 28px;border-bottom:0}
.v11-pokemon-line::before{left:2%;right:2%;bottom:18px;height:16px;border-radius:50%;background:rgba(42,117,187,.08);filter:blur(5px)}
.v11-pokemon-line img{width:124px;height:124px;filter:drop-shadow(0 15px 10px rgba(24,65,100,.18));image-rendering:auto;transition:transform .18s ease}
.v11-pokemon-line .is-featured img{width:162px;height:162px}
.v11-pokemon-line>div:hover img{transform:translateY(-6px) scale(1.05)}
.v11-pokemon-line span{
  padding:6px 11px;
  border:2px solid #c5dbee;
  border-radius:999px;
  background:#fff;
  color:var(--v11-blue-dark);
  font-size:11px;
  box-shadow:0 5px 14px rgba(27,75,118,.08);
}
.v11-side-actions{gap:14px}
.v11-join-card,.v11-stat-card{
  min-height:150px;
  padding:20px;
  border:2px solid #c2d9ee;
  border-radius:19px;
  background:rgba(255,255,255,.94);
  box-shadow:0 12px 28px rgba(30,78,121,.09);
}
.v11-join-card{grid-template-columns:1fr 126px 50px}
.v11-join-card h2{font-size:21px;color:var(--v11-blue-deep)}
.v11-stat-card strong{font-size:19px;color:var(--v11-blue-deep)}
.v11-stat-card small{font-size:12px}

.v11-start-card{
  position:relative;
  overflow:hidden;
  border:3px solid #1f5f9c;
  border-top-color:var(--v11-yellow);
  border-radius:28px;
  background:#fff;
  box-shadow:0 24px 60px rgba(25,77,123,.2),0 7px 0 #174f8c;
}
.v11-start-card::before{
  content:"";
  position:absolute;
  z-index:3;
  right:18px;top:17px;
  width:14px;height:14px;
  border-radius:50%;
  background:#7bdc9e;
  box-shadow:22px 0 0 #ffcb05,44px 0 0 #ef5a58;
}
.v11-start-card>header{
  min-height:92px;
  padding:25px 28px 21px;
  border-bottom:2px solid #cfe0ef;
  background:linear-gradient(115deg,#eef7ff,#fff 65%);
}
.v11-start-card h2{font-size:25px;color:var(--v11-blue-deep)}
.v11-run-type-switch{padding:18px 24px 0!important;gap:10px!important}
.v11-run-type-switch span{
  min-height:90px!important;
  padding:15px!important;
  border:2px solid #c3d8eb!important;
  border-radius:16px!important;
  background:#f8fbff!important;
}
.v11-run-type-switch strong{font-size:15px!important;color:var(--v11-blue-deep)!important}
.v11-run-type-switch small{margin-top:4px!important;font-size:11px!important;line-height:1.35!important}
.v11-run-type-switch em{font-size:9px!important;min-height:23px!important;padding:0 7px!important}
.v11-run-type-switch input:checked+span{border-color:var(--v11-blue)!important;background:#edf7ff!important;box-shadow:inset 0 0 0 2px rgba(42,117,187,.12),0 8px 20px rgba(42,117,187,.1)!important}
.v11-form-section{padding:23px 28px 30px}
.v11-ranked-banner,.v11-custom-note{
  border:2px solid #bdd5eb!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#f3f9ff,#fff)!important;
}
.v11-ranked-banner b,.v11-custom-note b{font-size:14px!important}
.v11-ranked-banner small,.v11-custom-note span{font-size:11px!important}
.v11-fixed-rules{gap:9px!important}
.v11-fixed-rules article{padding:13px!important;border:1px solid #cfe0ee!important;border-radius:13px!important;background:#f8fbff!important}
.v11-fixed-rules b{font-size:12px!important;color:var(--v11-blue-dark)!important}
.v11-fixed-rules p{font-size:11px!important;line-height:1.45!important}
.v11-ranked-note{font-size:12px!important;line-height:1.55!important}
.v11-mode-switch span{min-height:76px;padding:14px;border:2px solid #c9dceb;border-radius:15px}
.v11-mode-switch b{font-size:15px}.v11-mode-switch small{font-size:11px;line-height:1.35}
.v11-mode-switch input:checked+span{border-color:var(--v11-blue);background:#eef7ff;box-shadow:inset 0 0 0 1px var(--v11-blue)}
.v11-route-number{width:34px;height:34px;border-radius:50%;background:var(--v11-yellow);color:#193759;font-size:12px;box-shadow:0 3px 0 #d7aa00}
.v11-route-preview{grid-template-columns:34px 1fr 18px 34px 1fr 18px 34px 1fr;gap:10px;padding:22px 0 27px}
.v11-route-preview b{font-size:13px}.v11-route-preview small{font-size:11px}
.v11-upload{padding:16px;border:2px dashed #8eb6d9;border-radius:15px;background:#f5faff}.v11-upload-icon{width:46px;height:46px;border-radius:14px;background:var(--v11-blue);color:#fff;font-size:20px}.v11-upload b{font-size:14px}.v11-upload small{font-size:11px}
.v11-fields label>span,.v11-rules legend{font-size:11px}.v11-rules{gap:9px}.v11-rules span{padding:10px 12px;border:2px solid #caddea;border-radius:11px;font-size:12px;background:#fff}.v11-rules input:checked+span{border-color:#68b78e;background:#effaf4;color:#267b50}
.v11-start-card>footer{min-height:58px;padding:15px 28px;border-top:2px solid #cfe0ef;background:#edf6ff;color:#5b7187;font-size:11px}.v11-start-card>footer small{font-size:11px}.v11-start-card>footer i{color:var(--v11-green);font-size:14px}

/* Leaderboard / tables ----------------------------------------------------- */
.v11-board-shell,.v11-account-shell,.v14-profile-shell,.v14-saves-shell,.v22-admin-shell{padding-top:58px}
.v11-board-head h1,.v14-page-head h1,.v22-admin-hero h1{color:var(--v11-blue-deep);text-shadow:0 3px 0 #fff}
.v11-board-tabs,.v22-admin-tabs,.v26-pokedex-tabs{
  padding:7px!important;
  border:2px solid #c0d6ea!important;
  border-radius:15px!important;
  background:#e7f2fb!important;
}
.v11-board-tabs button,.v22-admin-tabs button,.v26-pokedex-tabs button{
  min-height:42px!important;
  padding:0 14px!important;
  border-radius:10px!important;
  font-size:12px!important;
}
.v11-board-tabs button.is-active,.v22-admin-tabs button.is-active,.v26-pokedex-tabs button.is-active{
  background:var(--v11-blue)!important;color:#fff!important;box-shadow:0 4px 0 var(--v11-blue-dark)!important;
}
.v11-board-rows{gap:8px!important}
.v11-board-row{
  min-height:70px!important;
  padding:11px 14px!important;
  border:2px solid #cbddec!important;
  border-radius:15px!important;
  background:#fff!important;
  font-size:13px!important;
}
.v11-board-row:hover{border-color:#79a9d2!important;transform:translateY(-1px)}
.v11-board-row small{font-size:11px!important}

/* Account ---------------------------------------------------------------- */
.v11-auth-copy h1{color:var(--v11-blue-deep)}
.v11-auth-copy p,.v11-auth-note{font-size:13px!important}
.v11-auth-benefits{gap:10px!important}
.v11-auth-benefits article{padding:13px!important;border:2px solid #c9ddec!important;border-radius:14px!important;background:rgba(255,255,255,.8)!important}
.v11-auth-benefits b{font-size:13px!important}.v11-auth-benefits small{font-size:11px!important}
.v11-auth-tabs button{min-height:45px!important;font-size:13px!important}
.v11-auth-card label>span{font-size:11px!important}

/* Profile / achievements / saves ----------------------------------------- */
.v14-avatar-hero{
  width:164px;height:164px;
  border:3px solid var(--v11-blue);
  border-radius:34px;
  background:radial-gradient(circle at 50% 40%,#fff 0,#eef7ff 68%,#d9ebfa 100%);
  box-shadow:0 16px 38px rgba(31,80,122,.16),0 6px 0 var(--v11-blue-dark);
}
.v14-avatar-hero img{width:140px;height:140px}.v14-avatar-hero span{padding:7px 10px;border-radius:10px;background:var(--v11-blue-deep);font-size:11px}
.v14-profile-hero-copy h1{color:var(--v11-blue-deep)}
.v14-profile-hero-copy>p:not(.v14-profile-bio){font-size:14px}.v14-profile-hero-copy>small{font-size:12px}.v14-profile-bio{font-size:15px}
.v14-stat-grid{gap:12px}.v14-stat-grid article{padding:18px;border-radius:17px}.v14-stat-grid article>span{font-size:10px}.v14-stat-grid article>strong{font-size:29px}.v14-stat-grid article>small{font-size:11px}
.v20-stat-group{padding:16px;border-radius:19px}.v20-stat-group>summary small,.v20-stat-group>header small{font-size:11px}.v20-stat-group>summary>strong,.v20-stat-group>header>strong{font-size:11px}.v20-stat-group>summary>strong b,.v20-stat-group>header>strong b{font-size:15px}
.v20-stat-group.is-ranked{border-color:#e6c56c;background:#fffaf0}.v20-stat-group.is-ranked .v20-mode-pill{background:#dc4b45}.v20-stat-group.is-custom .v20-mode-pill{background:#60768c}.v20-stat-group.is-coop .v20-mode-pill{background:#349a66}.v20-stat-group.is-challenge .v20-mode-pill{background:var(--v11-blue)}
.v14-card-hint{font-size:11px}.v14-showcase-slot{min-height:82px;padding:13px;border-radius:15px}.v14-showcase-slot b{font-size:12px}.v14-showcase-slot small{font-size:10px}.v14-showcase-slot>span{width:42px;height:42px;font-size:20px}
.v14-achievement-list article{padding:13px!important;border-radius:14px!important}.v14-achievement-copy b{font-size:13px!important}.v14-achievement-copy>small{font-size:11px!important}.v14-progress-label{font-size:10px!important}.v14-progress-track{height:10px}
.v14-profile-form label>span{font-size:11px}.v14-avatar-choice{padding:7px;border:2px solid #caddec;border-radius:12px}.v14-avatar-choice img{width:50px;height:50px}.v14-avatar-choice small{font-size:9px}
.v14-wall-post-head a{font-size:12px}.v14-wall-post-head time{font-size:10px}.v14-wall-post p{font-size:13px}.v14-login-hint{font-size:12px}
.v14-page-head p{font-size:15px}.v14-saves-summary{gap:10px}.v14-saves-summary span{padding:10px 13px;border:2px solid #c7dbed;border-radius:12px;font-size:11px}
.v14-save-card{border-width:2px!important;border-color:#c4d9eb!important;border-radius:18px!important;box-shadow:0 10px 26px rgba(29,75,116,.08)!important}.v14-save-card h2,.v14-save-card strong{font-size:inherit}.v14-save-card small{font-size:11px!important}

/* Pokédex ---------------------------------------------------------------- */
.v26-pokedex-dialog{border-top:8px solid var(--v11-red)!important}
.v26-pokedex-stat:after{right:11px;top:10px;padding:5px 8px;font-size:9px;background:var(--v11-blue);color:#fff}
.v26-pokedex-progress>strong{font-size:14px}.v26-pokedex-progress>span{height:12px}.v26-pokedex-progress>span>i{background:linear-gradient(90deg,var(--v11-blue),#42a2df)}
.v26-pokedex-grid{gap:9px}.v26-dex-entry{padding:9px 7px 10px;border:2px solid #cbddeb;border-radius:14px;background:#f8fbff}.v26-dex-number{font-size:9px}.v26-dex-sprite{width:72px;height:66px}.v26-dex-sprite img{width:66px;height:66px}.v26-dex-entry>b{font-size:10px}.v26-dex-entry.is-caught{border-color:#72bc97;background:#f1fbf6}.v26-dex-entry>i{width:20px;height:20px;font-size:11px}

/* Room / live tracker ------------------------------------------------------ */
.v11-room-page{
  background:
    radial-gradient(circle at 50% -20%,rgba(86,172,255,.26),transparent 42%),
    linear-gradient(180deg,#102d50,#0d223c 58%,#0a1a2e);
  color:#f6fbff;
}
.v11-room-page::before{opacity:.32;background-size:30px 30px;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px)}
.v11-room-page .v11-room-header{
  border-color:#4f81ac!important;
  background:linear-gradient(180deg,#173f6b,#123354)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.22)!important;
}
.v11-room-page .v11-room-brand strong,.v11-room-page .v11-room-header b{font-size:14px!important}.v11-room-page .v11-room-header small{font-size:10px!important}
.v11-room-page .v11-room-code,.v11-room-page .v11-player-live,.v11-room-page .v11-coop-state{font-size:11px!important;min-height:30px!important}
.v11-room-page .v11-game-frame,.v11-room-page .v11-sidebar-card,.v11-room-page .v11-player-card{border-width:2px!important;border-radius:16px!important}
.v11-room-page .v11-sidebar-card{background:#f8fbff!important;color:var(--v11-ink)!important;border-color:#9fc2e2!important}
.v11-room-page .v11-sidebar-card h2,.v11-room-page .v11-sidebar-card h3{font-size:15px!important}
.v11-room-page .v11-sidebar-card small,.v11-room-page .v11-sidebar-card p{font-size:11px!important}
.v11-room-page .v11-game-actions button,.v11-room-page .v11-game-actions a{min-height:40px!important;font-size:11px!important;border-radius:10px!important}
.v11-room-page .v11-screen-wait-button{min-height:40px;padding:9px 13px;border-radius:10px;font-size:11px}
.v11-badge-grid{gap:8px}.v11-badge-grid span{min-width:32px;min-height:32px;font-size:12px;border-width:2px}.v11-route-list{gap:7px;max-height:230px}.v11-route-row{grid-template-columns:34px 1fr auto;gap:9px;padding:10px;border-radius:11px}.v11-route-row>span{width:30px;height:30px;border-radius:9px;font-size:10px}.v11-route-row b{font-size:11px}.v11-route-row small{font-size:10px}.v11-route-row>strong{font-size:10px}.v11-tracker-empty{font-size:11px}
.v11-log-card summary{padding:15px 16px}.v11-log-card summary b{font-size:13px}.v11-event-feed{gap:7px;max-height:220px}.v11-event-row{padding:10px;border-left-width:4px;border-radius:0 9px 9px 0;font-size:11px}.v11-event-row time{font-size:9px}.v11-active-rules{gap:7px}.v11-active-rules span{padding:7px 9px;border-radius:8px;font-size:10px}.v11-debug span{padding:8px;font-size:9px}.v11-debug b{font-size:10px}.v11-log-card .v11-outline-button{min-height:38px;font-size:10px}
.v11-remote-focus span{font-size:10px}.v11-remote-focus b{font-size:15px}.v11-remote-stats small{font-size:9px}.v11-remote-stats b{font-size:11px}.v11-remote-dashboard>section>header span,.v11-remote-dashboard>section>header small{font-size:10px}
.v11-event-toast{width:min(410px,calc(100% - 28px));padding:15px 17px;border:2px solid #bcd3e7}.v11-event-toast>span{width:44px;height:44px;flex-basis:44px;font-size:20px}.v11-event-toast b{font-size:13px}.v11-event-toast small{font-size:11px}

/* Pokémon party / HP readability */
.mon-slot{border-width:2px!important;border-radius:13px!important}.mon-name-line,.mon-copy b,.mon-copy strong{font-size:12px!important}.mon-level,.mon-cap,.mon-status,.mon-hp-label,.mon-hp-value{font-size:9px!important}.mon-hp-track{height:9px!important;border-radius:999px!important}.mon-detail-chevron{font-size:16px!important}.v11-team-list .mon-slot.is-detail-button:hover,.v11-team-list .mon-slot.is-detail-button:focus-visible{border-color:var(--v11-blue)!important;background:#f2f8ff!important}

/* Dialogs / popups --------------------------------------------------------- */
.v11-dialog{
  width:min(500px,calc(100% - 24px));
  padding:30px;
  border:3px solid var(--v11-blue);
  border-top:9px solid var(--v11-red);
  border-radius:23px;
  background:#fff;
  box-shadow:0 32px 90px rgba(5,27,49,.42),0 7px 0 var(--v11-blue-dark);
}
.v11-dialog::backdrop{background:rgba(4,22,39,.73);backdrop-filter:blur(7px)}
.v11-dialog-close{
  right:14px;top:14px;
  width:44px;height:44px;
  border:2px solid #c7d9e9;
  border-radius:50%;
  background:#eef6fc;
  color:var(--v11-blue-deep);
  font-size:26px;
  font-weight:900;
}
.v11-dialog-close:hover{background:#ffecec;border-color:#e98c8c;color:var(--v11-red-dark)}
.v11-dialog h2{font-size:32px;color:var(--v11-blue-deep)}.v11-dialog>p{font-size:13px}.v11-dialog>small{font-size:11px}.v11-dialog-rom{padding:15px;border:2px solid #c8dced;border-radius:14px;background:#f5faff}.v11-dialog-rom b{font-size:14px}.v11-dialog-rom small{font-size:11px}.v11-dialog form label>span,.v11-dialog-field>span{font-size:11px}.v11-save-slot-list{gap:8px;max-height:240px}.v11-save-slot-list>button{padding:13px;border:2px solid #c7daea;border-radius:12px}.v11-save-slot-list b{font-size:12px}.v11-save-slot-list small{font-size:10px}.v11-control-grid{gap:9px}.v11-control-grid button{min-height:50px;padding:9px 11px;border:2px solid #c7daea;border-radius:12px}.v11-control-grid span{font-size:11px}.v11-control-grid b{font-size:11px}.v11-control-hint{font-size:11px!important}

/* Admin ------------------------------------------------------------------- */
.v22-admin-hero p{font-size:15px}.v22-admin-overview span{font-size:11px}.v22-admin-overview strong{font-size:31px}.v22-admin-table{font-size:13px}.v22-admin-table th,.v22-admin-table td{padding:14px}.v22-admin-table th{font-size:10px;background:#eaf4fc}.v22-admin-table small{font-size:10px}.v22-admin-table code{font-size:11px}

/* Randomizer -------------------------------------------------------------- */
.v11-randomizer-page .v11-randomizer-shell{padding-top:52px!important}
.v11-randomizer-page .v11-randomizer-card,.v11-randomizer-page .v11-data-card{border-width:2px!important}
.v11-randomizer-page label>span,.v11-randomizer-page .v11-kicker{font-size:11px!important}
.v11-randomizer-page .v11-randomizer-help,.cute-randomizer-help{font-size:12px!important}

/* Footer ------------------------------------------------------------------ */
.v11-footer{margin-top:18px;padding:26px 0 32px;border-top:2px solid rgba(42,117,187,.16);color:#647a8f;font-size:12px}.v11-footer b{color:var(--v11-blue-dark)}

/* Responsive -------------------------------------------------------------- */
@media(max-width:1080px){
  .v11-home-grid{grid-template-columns:1fr;gap:42px}.v11-start-card{width:min(100%,720px);margin:auto}.v11-intro{max-width:900px;margin:auto}
}
@media(max-width:760px){
  .v11-page{font-size:14px}.v11-page .shell{width:min(100% - 20px,1280px)}
  .v11-nav{min-height:76px;margin-top:8px;padding:0 13px;border-radius:18px;grid-template-columns:1fr auto}
  .v11-brand-mark{width:42px;height:42px;flex-basis:42px}.v11-brand strong{font-size:18px}.v11-brand small{font-size:11px}
  .v11-nav nav{left:8px;right:8px;bottom:8px;gap:5px;padding:7px;border:2px solid #87afd2;border-bottom:4px solid var(--v11-yellow);border-radius:17px;background:rgba(17,54,88,.97);box-shadow:0 14px 35px rgba(0,0,0,.28)}
  .v11-nav nav a{min-height:46px;padding:0 12px;color:#dcecff;font-size:12px}.v11-nav nav a.is-active{color:#183654}
  .v11-account-link{min-height:44px;font-size:0;padding:0 13px}.v11-account-link::after{content:"Konto";font-size:12px}.v22-admin-link,.v22-logout-button{min-height:42px;font-size:10px;padding:0 9px}
  .v11-home-grid{padding:36px 0 28px}.v11-intro::before{display:none}.v11-intro h1{font-size:clamp(46px,13vw,62px);margin-top:18px}.v11-intro h1 span::after{height:6px;bottom:-5px}.v11-lead{font-size:16px}
  .v11-proof span{font-size:12px}.v11-pokemon-line{height:160px}.v11-pokemon-line img{width:92px;height:92px}.v11-pokemon-line .is-featured img{width:120px;height:120px}.v11-pokemon-line span{font-size:9px;padding:5px 8px}
  .v11-side-actions{grid-template-columns:1fr}.v11-join-card{grid-template-columns:1fr 118px 50px}.v11-join-card,.v11-stat-card{min-height:auto}
  .v11-start-card{border-radius:22px}.v11-start-card::before{right:14px;top:14px;width:11px;height:11px;box-shadow:18px 0 0 #ffcb05,36px 0 0 #ef5a58}.v11-start-card>header{padding:22px 18px}.v11-start-card h2{font-size:22px}.v11-run-type-switch{padding:14px 16px 0!important;grid-template-columns:1fr!important}.v11-run-type-switch span{min-height:auto!important}.v11-form-section{padding:18px 16px 24px}.v11-mode-switch{padding-left:16px;padding-right:16px}.v11-route-preview{grid-template-columns:34px 1fr;gap:10px}.v11-route-preview>span:not(.v11-route-number){display:none}.v11-route-preview b{font-size:12px}.v11-route-preview small{font-size:10px}.v11-fields{grid-template-columns:1fr}.v11-start-card>footer{padding:14px 16px;flex-wrap:wrap}
  .v14-profile-hero{grid-template-columns:110px 1fr;gap:17px}.v14-avatar-hero{width:110px;height:110px;border-radius:25px}.v14-avatar-hero img{width:94px;height:94px}.v14-profile-hero-copy h1{font-size:39px}.v14-profile-hero>.v11-profile-actions{grid-column:1/-1}.v14-stat-grid,.v20-mode-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v14-profile-columns{grid-template-columns:1fr}.v14-showcase-grid{grid-template-columns:1fr}.v14-page-head{align-items:flex-start;flex-direction:column}.v14-page-head h1{font-size:46px}
  .v26-pokedex-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.v26-dex-entry{padding:7px 4px 8px}.v26-dex-sprite{width:58px;height:56px}.v26-dex-sprite img{width:55px;height:55px}.v26-dex-entry>b{font-size:9px}.v26-dex-number{font-size:8px}
  .v22-admin-overview{grid-template-columns:1fr 1fr}.v22-admin-table{font-size:12px}
  .v11-footer{padding-bottom:94px}
}
@media(max-width:440px){
  .v11-brand>span:last-child small{display:none}.v11-brand{gap:9px}.v11-brand strong{font-size:17px}
  .v11-intro h1{font-size:43px}.v11-lead{font-size:15px}.v11-pokemon-line>div:nth-child(1){left:1%}.v11-pokemon-line>div:nth-child(2){left:35%}.v11-pokemon-line>div:nth-child(3){right:1%}
  .v11-join-card{grid-template-columns:1fr 104px 50px;padding:16px}.v11-input{font-size:14px}.v11-primary-button{font-size:14px}
  .v14-stat-grid,.v20-mode-stat-grid{grid-template-columns:1fr 1fr}.v14-stat-grid article{padding:13px}.v14-stat-grid article>strong{font-size:24px}.v14-stat-grid article>span{font-size:9px}
  .v26-pokedex-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v11-dialog{padding:25px 18px}.v11-dialog h2{font-size:28px}
}

/* v14.73 — ensure light live-tracker cards never inherit white text. */
.v11-room-page .v11-system-line,
.v11-room-page .v11-tracker-profile,
.v11-room-page .v11-tracker-card{color:#173e62!important}
.v11-room-page .v11-system-line b,
.v11-room-page .v11-tracker-profile b,
.v11-room-page .v11-tracker-card h2,
.v11-room-page .v11-log-card summary b,
.v11-room-page .v11-route-row b{color:#173e62!important}
.v11-room-page .v11-system-line small,
.v11-room-page .v11-tracker-profile small,
.v11-room-page .v11-route-row small,
.v11-room-page .v11-log-card summary .v11-kicker{color:#526f89!important}
.v11-room-page .v11-rom-facts small{color:#607d97!important}
.v11-room-page .v11-rom-facts b{color:#173e62!important}
.v11-room-page .v11-tracker-profile{background:#f8fbff!important}
.v11-room-page .v11-tracker-card{background:#fff!important}

/* v14.42 readability safety net: legacy UI contained many 5–9px labels. */
body.v11-page small{font-size:11px!important;line-height:1.4!important}
body.v11-page :is(
  .v11-board-note,.v11-room-heading span,.v11-room-code span,.v11-room-share,.v11-room-action,
  .v11-coop-state,.v11-player-live,.v11-screen-hud span,.v11-game-label,.v11-center-buttons button,
  .v11-system-line>div:nth-child(2) b,.v11-rom-facts b,.v11-tracker-profile span,
  .v11-tracker-card>header>span,.v11-tracker-card>header>strong,.mon-name-line .mon-level,
  .mon-name-line .mon-cap,.mon-hp-label,.mon-status,.v11-event-row time,.v11-active-rules span,
  .v11-debug span,.v11-debug b,.v11-remote-focus span,.v11-remote-stats b,
  .v11-remote-dashboard>section>header span,.v11-remote-dashboard>section>header small,
  .v11-run-type-switch em,.v11-ranked-banner>div span,.v11-whatsapp-button b,
  .v11-achievement-mode,.achievement-steps i,.v11-encounter-status b,.v14-save-mode,.v14-save-status,
  .v14-save-meta,.v14-save-challenge,.v14-save-reason,.v14-save-disabled,.v14-save-local,
  .v11-rules-confirm-meta span,.v11-rules-confirm-meta b,.v11-rules-confirm-number,
  .v11-rules-confirm-item strong,.v11-rules-confirm-item p,.v11-rules-confirm-check b,
  .v11-stat-button span,.v11-run-pokemon-copy>span,.v11-pokemon-detail-overview span,
  .v11-pokemon-detail-hp span,.v11-pokemon-stat span,.v11-pokemon-stat em,.v11-pokemon-move>span,
  .v11-pokemon-move b,.v11-pokemon-detail-advanced summary span,.v11-pokemon-ivev-grid b,
  .v11-pokemon-ivev-grid em,.v11-pokemon-detail-empty,.v26-dex-number,.v26-dex-entry>b,
  .v22-admin-status
){font-size:10px!important;line-height:1.3!important}
body.v11-page :is(.v11-room-action,.v11-room-share,.v11-center-buttons button,.v11-result-bar button,.v11-stat-button){min-height:38px!important;padding:7px 10px!important}
body.v11-page :is(.v11-room-code,.v11-coop-state,.v11-player-live,.v14-save-mode,.v14-save-status,.v22-admin-status){min-height:27px!important;padding:4px 9px!important;border-radius:999px!important}
body.v11-page .achievement-steps i{min-width:21px!important;min-height:21px!important;display:inline-grid!important;place-items:center!important}
body.v11-page .v11-pokemon-detail-dialog{width:min(620px,calc(100% - 22px))!important}
body.v11-page .v11-pokemon-detail-art{min-width:112px!important;min-height:112px!important}
body.v11-page .v11-pokemon-detail-art img{width:104px!important;height:104px!important}

@media(max-width:760px){
  body.v11-page small{font-size:10px!important}
  body.v11-page :is(.v11-room-heading span,.v11-room-code span,.v11-room-action,.v11-coop-state,.v11-player-live,.v11-game-label,.v14-save-mode,.v14-save-status,.v22-admin-status){font-size:9px!important}
}

/* v14.45 — focused room HUD layout --------------------------------------- */
@media (min-width:1181px){
  .v11-room-shell{
    width:min(1540px,100%);
    margin:0 auto;
    grid-template-columns:minmax(0,1fr) 312px;
    gap:14px;
    padding:12px 16px 18px;
  }
  .v11-room-toolbar{
    position:sticky;
    top:80px;
    z-index:15;
    min-height:64px;
    border:2px solid rgba(133,184,229,.78);
    box-shadow:0 10px 28px rgba(3,19,35,.18);
  }
  .v11-player-grid[data-players="1"][data-screen="compact"]{max-width:760px}
  .v11-player-grid[data-players="1"][data-screen="normal"]{max-width:1020px;margin-left:auto;margin-right:auto}
  .v11-player-grid[data-players="1"][data-screen="large"]{max-width:none}
  .v11-tracker{gap:10px;max-height:calc(100vh - 92px);position:sticky;top:80px}
}

/* HUD metrics */
.v11-room-stats{overflow:hidden;border:1px solid rgba(130,170,205,.45);border-radius:12px;background:#f7fbff}
.v11-room-stats>span{min-width:92px;padding:7px 15px!important}
.v11-room-stats small,.v11-stat-button small{font-size:10px!important;letter-spacing:.08em!important;color:#668096!important}
.v11-room-stats b,.v11-stat-button b{font-size:15px!important;color:#102d50!important}
.v11-stat-button{min-height:42px!important}
.v11-game-actions{gap:7px}
.v11-room-action{min-height:40px!important;padding:0 12px!important;font-size:10px!important}

/* One team only: the party directly belongs to the emulator card. */
.v11-player-card.is-local>.local-card-team{
  position:relative;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
  padding:10px;
  border-top:2px solid #b7cfe4;
  background:linear-gradient(180deg,#f9fcff,#edf5fb);
}
.v11-player-card.is-local>.local-card-team::before{
  content:"DEIN TEAM";
  position:absolute;
  left:14px;
  top:-10px;
  padding:2px 8px;
  border:1px solid #a8c7e2;
  border-radius:999px;
  background:#fff;
  color:#315b7d;
  font-size:9px;
  font-weight:1000;
  letter-spacing:.1em;
}
.v11-card-team .mon-slot{
  min-height:74px!important;
  padding:8px 6px!important;
  border:1px solid #caddea!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(18,48,74,.06);
}
.v11-card-team .mon-art-wrap{width:48px!important;height:48px!important;margin:0 auto 2px}
.v11-card-team .mon-art{width:46px!important;height:46px!important}
.v11-card-team .mon-copy b{max-width:none!important;font-size:10px!important}
.v11-card-team .mon-status,.v11-card-team .mon-hp-label,.v11-card-team .mon-hp-value{font-size:8px!important}
.v11-card-team .mon-hp-track{height:8px!important}

/* Compact information rail */
.v145-tracker-profile{min-height:112px!important;padding:14px 112px 14px 15px!important}
.v145-tracker-profile>img{width:104px!important;height:104px!important;right:4px!important}
.v145-tracker-copy{min-width:0;width:100%}
.v145-tracker-copy>b{font-size:17px!important}
.v145-tracker-copy>small{font-size:11px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v145-tracker-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.v145-tracker-meta>span{min-width:0;padding:7px 8px;border:1px solid #c7dae9;border-radius:9px;background:#f1f7fc}
.v145-tracker-meta small,.v145-tracker-meta b{display:block!important;margin:0!important}
.v145-tracker-meta small{font-size:8px!important;color:#69859a!important;font-weight:900;letter-spacing:.08em}
.v145-tracker-meta b{margin-top:2px!important;font-size:9px!important;color:#173e62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v11-tracker-card{padding:12px!important}
.v11-tracker-card>header{margin-bottom:8px!important}
.v11-tracker-card h2{font-size:13px!important}
.v11-badge-grid{gap:6px!important}
.v11-badge-grid span{min-width:28px!important;min-height:28px!important;font-size:10px!important}
.v11-route-list{max-height:210px!important}
.v11-route-row{padding:8px!important}
.v11-log-card summary{padding:11px 12px!important}

/* Emulator gets visual priority */
.v11-player-card{box-shadow:0 18px 44px rgba(1,18,34,.22)!important}
.v11-player-card>header{min-height:54px!important;padding:9px 12px!important}
.v11-player-identity b{font-size:13px!important}
.v11-player-identity small,.v11-player-live{font-size:9px!important}
.v11-game-frame{padding:10px!important}
.v11-game-screen{border-color:#6289aa!important;box-shadow:inset 0 0 0 1px #07111a,0 0 0 1px rgba(120,178,226,.16)!important}
.v11-screen-hud span{font-size:9px!important;padding:5px 8px!important}
.v11-game-label{font-size:9px!important;padding-top:8px!important}

/* Tablet/mobile: keep one team, stack cleanly, toolbar no longer sticky. */
@media (max-width:1180px){
  .v11-room-toolbar{position:static}
  .v145-tracker-profile{grid-column:1/-1}
}
@media (max-width:720px){
  .v11-player-card.is-local>.local-card-team{grid-template-columns:repeat(3,1fr);gap:6px;padding-top:12px}
  .v11-card-team .mon-slot{min-height:68px!important}
  .v11-room-stats>span{min-width:0;padding:6px 7px!important}
  .v11-room-stats small,.v11-stat-button small{font-size:8px!important}
  .v11-room-stats b,.v11-stat-button b{font-size:12px!important}
  .v145-tracker-profile{padding-right:92px!important}
  .v145-tracker-profile>img{width:86px!important;height:86px!important}
}


/* v14.46 — room scaling + single-team cleanup --------------------------- */
@media (min-width:1181px){
  .v11-room-shell{grid-template-columns:minmax(0,1fr) 330px!important;gap:16px!important;}
  .v11-room-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:10px!important;position:sticky;top:80px;z-index:15;}
  .v11-game-actions{justify-content:flex-start!important;}
  .v11-room-stats{width:100%;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));}
  .v11-room-stats>span{min-width:0!important;}
}
@media (min-width:1181px) and (max-width:1500px){
  .v11-game-actions{display:grid!important;grid-template-columns:repeat(5,minmax(0,max-content));gap:8px!important;}
}
.v11-player-grid[data-players="1"] + .v11-system-line{margin-top:10px!important;}
/* Single-player: only one visible local team, always under the emulator. */
.v11-player-grid[data-players="1"] #localTeam,
.v11-player-grid[data-players="1"] .v11-team-list,
.v11-player-grid[data-players="1"] .v11-tracker-card--team,
.v11-player-grid[data-players="1"] .v11-team-panel{display:none!important;}
.v145-tracker-meta{grid-template-columns:1fr 1fr!important;}
.v145-tracker-meta > span:last-child small{color:#6d7f93!important;}
.v145-tracker-meta > span:last-child b{color:#214969!important;}
.v11-player-card.is-local>.local-card-team{margin-top:0!important;}
.v11-player-card.is-local>.local-card-team::before{content:"TEAM"!important;}
@media (max-width:1180px){
  .v11-room-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  .v11-room-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));}
  .v11-game-actions{justify-content:flex-start!important;}
}
@media (max-width:760px){
  .v11-game-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));}
  .v11-room-action.is-primary{grid-column:span 3!important;}
  .v11-room-action.is-finish{grid-column:span 3!important;}
  .v145-tracker-meta{grid-template-columns:1fr!important;}
}


/* v14.47 — toolbar must never overlay the emulator while scrolling */
.v11-room-page .v11-room-toolbar{
  position:relative!important;
  top:auto!important;
  z-index:2!important;
}
@media (min-width:1181px){
  .v11-room-page .v11-room-toolbar{
    position:relative!important;
    top:auto!important;
  }
  .v11-room-page .v11-tracker{
    position:sticky;
    top:80px;
  }
}


/* v14.48 — free manual emulator scaling -------------------------------- */
.v148-emulator-scale{
  display:inline-grid;
  grid-template-columns:auto minmax(90px,150px) 42px;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 10px;
  border:1px solid #bfd3e5;
  border-radius:10px;
  background:#f5f9fc;
  color:#315b7d;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.v148-emulator-scale>span{letter-spacing:.05em;text-transform:uppercase}
.v148-emulator-scale>b{font:900 10px ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;color:#143a5d}
.v148-emulator-scale input[type="range"]{
  width:100%;
  min-width:90px;
  accent-color:#ef5148;
  cursor:ew-resize;
}
.v11-player-grid[data-players="1"][data-screen="custom"]{
  width:var(--emulator-grid-width,68%);
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
@media (max-width:1180px){
  .v11-player-grid[data-players="1"][data-screen="custom"]{width:min(100%,var(--emulator-grid-width,86%));}
}
@media (max-width:760px){
  .v148-emulator-scale{grid-column:1/-1;grid-template-columns:auto minmax(100px,1fr) 42px;width:100%;box-sizing:border-box}
  .v11-player-grid[data-players="1"][data-screen="custom"]{width:100%!important;}
}

/* v14.49 — profile, Pokédex, mode cards, navigation & room settings ------ */

/* Header account cluster: Profile + account settings + logout are distinct. */
.v149-account-cluster{justify-self:end;display:flex;align-items:center;gap:7px;min-width:0}
.v149-account-cluster .v11-account-link{justify-self:auto;min-height:44px;padding:6px 11px;display:grid;grid-template-columns:18px auto;grid-template-rows:auto auto;column-gap:7px;align-items:center;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.10);color:#fff!important}
.v149-account-cluster .v11-account-link .v149-nav-user-icon{grid-row:1/3;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#39b879;color:transparent;box-shadow:0 0 0 4px rgba(57,184,121,.13)}
.v149-account-cluster .v11-account-link b{font-size:11px;line-height:1.05;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v149-account-cluster .v11-account-link small{font-size:8px;line-height:1;color:rgba(255,255,255,.66);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.v149-session-actions{display:flex;align-items:center;gap:6px}
.v149-nav-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 11px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.09);color:#fff!important;font-size:10px;font-weight:900;text-decoration:none;cursor:pointer;transition:.16s ease}
.v149-nav-action span{font-size:13px}.v149-nav-action:hover,.v149-nav-action.is-active{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.18);transform:translateY(-1px)}
.v149-nav-action.is-logout{border-color:rgba(255,128,121,.35);background:rgba(181,48,48,.18)}.v149-nav-action.is-logout:hover{background:#bd3e3b;border-color:#ffaaa4}.v149-nav-action:disabled{opacity:.55;cursor:wait;transform:none}
.v149-account-page-actions{flex-wrap:wrap}.v149-account-page-actions .v11-outline-button{gap:7px}.v149-page-logout{border-color:#e6aaa6!important;color:#a63330!important;background:#fff5f4!important}.v149-page-logout:hover{background:#c94440!important;color:#fff!important;border-color:#c94440!important}

/* Profile: direct editing at the content itself. */
.v149-avatar-hero{overflow:visible!important;background:transparent!important}
.v149-avatar-hero img{position:relative;z-index:1}
.v149-avatar-edit{position:absolute;z-index:3;right:-10px;bottom:-8px;display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 11px;border:2px solid #fff;border-radius:999px;background:var(--v11-blue-deep);color:#fff;box-shadow:0 8px 20px rgba(13,50,81,.26);font-size:10px;font-weight:950;cursor:pointer}.v149-avatar-edit span{position:static!important;padding:0!important;background:transparent!important;font-size:15px!important}.v149-avatar-edit:hover{background:var(--v11-blue);transform:translateY(-1px)}
.v149-bio-head{display:flex;align-items:center;gap:7px;margin-top:17px;color:#60788f;font-size:10px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}.v149-inline-edit{display:grid;place-items:center;width:29px;height:29px;border:1px solid #bfd2e2;border-radius:9px;background:#f2f8fc;color:#24577f;font-size:13px;cursor:pointer}.v149-inline-edit:hover{border-color:var(--v11-blue);background:#e7f4ff}
.v14-profile-bio{margin-top:6px!important;padding:8px 10px 8px 0;border-radius:10px;cursor:default}.v14-profile-bio:not(.hidden):hover{background:rgba(42,117,187,.05)}.v14-profile-bio.is-editing{opacity:.45}
.v149-bio-editor{max-width:650px;margin-top:8px;padding:12px;border:2px solid #bed8eb;border-radius:14px;background:#f7fbff}.v149-bio-editor textarea{min-height:92px;resize:vertical}.v149-bio-editor>div{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}.v149-bio-editor>small{display:block;margin-top:7px}
.v149-account-action{gap:7px!important}
.v149-avatar-dialog{width:min(760px,calc(100% - 24px))}.v149-avatar-dialog>p{max-width:630px}.v149-avatar-picker{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(84px,1fr))!important;gap:9px!important;max-height:55vh;padding:4px;overflow:auto}.v149-avatar-picker .v14-avatar-choice{min-height:94px;background:transparent!important;box-shadow:none!important}.v149-avatar-picker .v14-avatar-choice img{width:62px!important;height:62px!important;object-fit:contain}.v149-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

/* Showcase: editor is an explicit, usable control. */
.v149-showcase-head-actions{display:flex;align-items:center;gap:9px}.v149-showcase-edit{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:0 10px;border:1px solid #b9cfe1;border-radius:9px;background:#eff7fd;color:#275979;font-size:9px;font-weight:950;cursor:pointer}.v149-showcase-edit:hover,.v149-showcase-edit.is-active{border-color:var(--v11-blue);background:#dff1ff;color:#164a70}.v14-showcase-editor{padding:14px!important;border:2px solid #c2d9ea!important;border-radius:14px!important;background:#f7fbff!important}.v14-showcase-control{grid-template-columns:80px minmax(0,1fr)!important;gap:10px!important}.v14-showcase-control .v11-input{height:44px!important;font-size:11px!important;background:#fff!important}.v14-showcase-slot{transition:.16s ease}.v14-showcase-slot.is-filled{box-shadow:0 7px 18px rgba(49,120,84,.08)}

/* Pokédex: robust auto-fit cards instead of brittle fixed 8/6/4 columns. */
.v26-pokedex-dialog{width:min(1080px,calc(100% - 28px))!important;max-height:calc(100dvh - 28px)!important;overflow:hidden!important;padding:28px 28px 22px!important;display:none;grid-template-rows:auto auto auto auto minmax(0,1fr)}
.v26-pokedex-dialog[open]{display:grid!important}
.v26-pokedex-dialog>h2{margin-bottom:4px!important}.v26-pokedex-dialog>p{margin:0 0 10px!important;font-size:12px!important}
.v26-pokedex-tabs{position:static!important;margin:6px 0 8px!important;padding:5px!important}.v26-pokedex-tabs button{min-height:40px!important;font-size:10px!important}
.v26-pokedex-progress{margin:4px 0 12px!important}.v26-pokedex-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(108px,1fr))!important;align-content:start;gap:9px!important;max-height:none!important;min-height:0;overflow:auto!important;padding:3px 6px 8px 2px!important}
.v26-dex-entry{min-height:126px!important;padding:9px 7px 10px!important;border-radius:14px!important}.v26-dex-number{justify-self:start!important;font-size:9px!important}.v26-dex-sprite{width:72px!important;height:68px!important;background:transparent!important;border:0!important}.v26-dex-sprite img{width:66px!important;height:66px!important;background:transparent!important}.v26-dex-entry>b{font-size:10px!important;white-space:normal!important;line-height:1.2!important;min-height:24px}.v26-dex-entry.is-missing{background:#f5f6f7!important;border-color:#d7dfe5!important}.v26-dex-entry.is-missing .v26-dex-sprite img{opacity:.16!important}.v26-dex-entry>i{top:7px!important;right:7px!important}

/* Pokémon sprites: no artificial placeholder discs/tiles behind the artwork. */
.mon-art-wrap,.v11-run-pokemon-art,.v11-pokemon-detail-art,.v26-dex-sprite{background:transparent!important;box-shadow:none!important}
.mon-art-wrap>img+span,.v11-pokemon-detail-art>img+span{display:none!important}
.mon-art-wrap>span{background:transparent!important;border:0!important;box-shadow:none!important;color:#9fb1c0!important}
.v11-card-team .mon-art-wrap,.v11-team-list .mon-art-wrap{border:0!important}
.v11-run-pokemon-art{border:0!important}

/* Start mode cards: GEWERTET / FREI / DUELL keep their size and alignment. */
.v11-run-type-switch{gap:12px!important;align-items:stretch}
.v11-run-type-switch .v149-run-mode>span{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:112px!important;height:100%;padding:14px!important;border:2px solid #c9dbea!important;border-radius:17px!important;background:#f8fbfe!important;color:inherit!important}
.v11-run-type-switch .v149-mode-copy{display:block!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important}
.v11-run-type-switch .v149-mode-copy strong,.v11-run-type-switch .v149-mode-copy small{display:block!important}.v11-run-type-switch .v149-mode-copy strong{font-size:15px!important}.v11-run-type-switch .v149-mode-copy small{margin-top:4px!important;font-size:10px!important;line-height:1.4!important}
.v149-mode-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e8f1f8;color:#244f70;font-size:22px;font-style:normal;font-weight:1000;box-shadow:inset 0 0 0 1px #ccdfed}
.v11-run-type-switch .v149-run-mode em{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:74px!important;min-height:30px!important;padding:0 9px!important;border-radius:999px!important;font-size:9px!important;line-height:1!important;white-space:nowrap!important}
.v149-run-mode.is-ranked em{background:#ffe8e5!important;color:#b63d37!important}.v149-run-mode.is-ranked .v149-mode-icon{background:#fff0ee;color:#ce4841}
.v149-run-mode.is-custom em{background:#e8f2fb!important;color:#396a91!important}.v149-run-mode.is-custom .v149-mode-icon{background:#eaf5ff;color:#3674a4}
.v149-run-mode.is-challenge em{background:#efeaff!important;color:#624ca0!important}.v149-run-mode.is-challenge .v149-mode-icon{background:#f1edff;color:#6853a8}
.v11-run-type-switch .v149-run-mode input:checked+span{border-color:var(--v11-blue)!important;background:#edf7ff!important;box-shadow:0 10px 24px rgba(42,117,187,.12),inset 0 0 0 1px rgba(42,117,187,.15)!important}.v11-run-type-switch .v149-run-mode input:checked+span em{background:var(--v11-blue-deep)!important;color:#fff!important}.v11-run-type-switch .v149-run-mode input:checked+span .v149-mode-icon{background:var(--v11-blue)!important;color:#fff!important;box-shadow:none!important}

/* Room: settings are behind a single cog icon, while core actions stay visible. */
.v149-settings-trigger{gap:6px!important;min-width:118px}.v149-settings-trigger span{font-size:15px}.v149-settings-trigger b{font:inherit}.v149-room-settings-dialog{width:min(620px,calc(100% - 24px))}.v149-room-settings-dialog>p{font-size:12px!important;line-height:1.55!important}.v149-settings-section{margin-top:13px;padding:14px;border:2px solid #c8ddeb;border-radius:15px;background:#f8fbfe}.v149-settings-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.v149-settings-section>header span,.v149-settings-section>header small{display:block}.v149-settings-section>header span{font-size:12px;font-weight:950;color:#173e62}.v149-settings-section>header small{margin-top:2px;font-size:9px;color:#6c8193}.v149-settings-field{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:12px}.v149-settings-field>span{font-size:10px;font-weight:900;color:#526d84}.v149-settings-field .v11-input{height:44px!important}.v149-settings-scale{display:grid!important;grid-template-columns:120px minmax(120px,1fr) 50px!important;width:100%;box-sizing:border-box;margin-top:9px;min-height:48px!important;padding:0!important;border:0!important;background:transparent!important}.v149-settings-scale>span{text-transform:none!important;letter-spacing:0!important;font-size:10px!important;color:#526d84!important}.v149-settings-scale>b{font-size:11px!important}.v149-settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.v149-settings-actions .v11-outline-button{min-height:45px;gap:7px}.v149-room-settings-dialog>.v11-primary-button{width:100%;margin-top:14px}.v11-game-actions{align-items:center}

@media(max-width:900px){
  .v149-account-cluster .v11-account-link b{max-width:80px}.v149-nav-action b{display:none}.v149-nav-action{width:42px;padding:0}.v149-account-cluster{gap:5px}.v149-session-actions{gap:4px}
  .v26-pokedex-grid{grid-template-columns:repeat(auto-fill,minmax(94px,1fr))!important}.v26-dex-entry{min-height:116px!important}
}
@media(max-width:680px){
  .v149-account-cluster .v11-account-link{min-height:40px;padding:5px 8px;grid-template-columns:15px auto}.v149-account-cluster .v11-account-link b{display:none}.v149-account-cluster .v11-account-link small{font-size:9px}.v149-nav-action{width:38px;min-height:40px}.v149-nav-action span{font-size:14px}
  .v14-profile-hero{grid-template-columns:100px minmax(0,1fr)!important}.v149-avatar-hero{width:100px!important;height:100px!important}.v149-avatar-hero img{width:92px!important;height:92px!important}.v149-avatar-edit{right:-7px;bottom:-8px;width:36px;height:36px;min-height:36px;padding:0;justify-content:center}.v149-avatar-edit b{display:none}.v149-bio-head{margin-top:13px}.v149-bio-editor>div{display:grid;grid-template-columns:1fr 1fr}.v149-showcase-head-actions{align-items:flex-end;flex-direction:column;gap:5px}.v14-showcase-control{grid-template-columns:1fr!important}.v149-dialog-actions{display:grid;grid-template-columns:1fr 1fr}
  .v26-pokedex-dialog{width:calc(100% - 10px)!important;max-height:calc(100dvh - 10px)!important;padding:22px 12px 12px!important}.v26-pokedex-tabs button{min-height:38px!important;padding:0 4px!important;font-size:9px!important}.v26-pokedex-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.v26-dex-entry{min-height:104px!important;padding:6px 3px 7px!important}.v26-dex-sprite{width:58px!important;height:55px!important}.v26-dex-sprite img{width:55px!important;height:55px!important}.v26-dex-entry>b{font-size:8px!important;min-height:20px}.v26-dex-number{font-size:8px!important}
  .v11-run-type-switch .v149-run-mode>span{grid-template-columns:42px minmax(0,1fr) auto!important;gap:9px!important;min-height:92px!important;padding:11px!important}.v149-mode-icon{width:40px;height:40px;border-radius:11px;font-size:18px}.v11-run-type-switch .v149-run-mode em{min-width:62px!important;min-height:27px!important;font-size:8px!important}.v11-run-type-switch .v149-mode-copy strong{font-size:14px!important}.v11-run-type-switch .v149-mode-copy small{font-size:9px!important}
  .v149-settings-trigger{min-width:44px!important;width:44px!important;padding:0!important}.v149-settings-trigger b{display:none}.v149-settings-field,.v149-settings-scale{grid-template-columns:1fr!important;gap:7px!important}.v149-settings-scale>b{text-align:left!important}.v149-settings-actions{grid-template-columns:1fr}
}

/* v14.74 — final Room contrast lock. Keep this block last intentionally. */
body.v11-room-page .v11-tracker :is(h1,h2,h3,b,strong){color:#143a5d!important;opacity:1!important}
body.v11-room-page .v11-tracker :is(.v11-kicker,small){color:#496984!important;opacity:1!important}
body.v11-room-page .v11-tracker-card header div h2,
body.v11-room-page .v11-log-card summary b,
body.v11-room-page #localTrainerName,
body.v11-room-page .v11-route-row b{color:#143a5d!important;text-shadow:none!important;opacity:1!important}
body.v11-room-page .v11-route-row>strong{color:#365b79!important;opacity:1!important}
body.v11-room-page .v11-player-card>header :is(b,small){color:#274d6d!important;opacity:1!important}
body.v11-room-page .v11-system-line :is(b,strong){color:#143a5d!important;opacity:1!important}
body.v11-room-page .v11-system-line small{color:#526f89!important;opacity:1!important}
body.v11-room-page .v11-game-screen .v11-screen-hud{top:7px!important;bottom:auto!important;align-items:flex-start!important}
body.v11-room-page .v11-game-screen .v11-screen-hud .hud-route{margin-right:auto!important}
body.v11-room-page .v11-game-screen .v11-screen-hud .hud-sync{margin-left:auto!important}

/* v14.76 — interactive trophy cabinets. */
.v14-showcase-card{overflow:hidden;background:linear-gradient(180deg,#fff 0,#f7fbff 100%)!important}
.v14-showcase-grid{gap:14px!important;perspective:900px}
.v1476-display-case{position:relative;isolation:isolate;display:grid!important;grid-template-rows:1fr auto;place-items:center;min-height:190px!important;margin:0;padding:26px 13px 15px!important;border:4px solid #173f62!important;border-bottom:12px solid #102e4a!important;border-radius:16px 16px 9px 9px!important;background:linear-gradient(115deg,rgba(255,255,255,.92),rgba(212,235,249,.48) 42%,rgba(255,255,255,.82))!important;color:#173f62!important;text-align:center;font:inherit;box-shadow:inset 0 0 0 3px #85acd0,inset 0 -34px 34px rgba(23,63,98,.08),0 10px 0 #d8a900,0 15px 28px rgba(18,57,89,.18)!important;overflow:hidden;cursor:default}
button.v1476-display-case{appearance:none;-webkit-appearance:none;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
button.v1476-display-case:hover,button.v1476-display-case:focus-visible{outline:0;transform:translateY(-4px);border-color:#2a75bb!important;box-shadow:inset 0 0 0 3px #9bc9ea,inset 0 -34px 34px rgba(23,63,98,.08),0 10px 0 #ffcb05,0 20px 34px rgba(18,57,89,.24)!important}
.v1476-display-case::before,.v1476-display-case::after{content:"";position:absolute;z-index:-1;pointer-events:none}.v1476-display-case::before{inset:7px;border:1px solid rgba(255,255,255,.9);border-radius:8px;background:linear-gradient(120deg,rgba(255,255,255,.6) 0 8%,transparent 9% 68%,rgba(255,255,255,.42) 69% 75%,transparent 76%)}.v1476-display-case::after{left:12%;right:12%;bottom:44px;height:12px;border-radius:50%;background:rgba(13,43,68,.2);filter:blur(5px)}
.v1476-case-light{position:absolute;z-index:-1;top:-44px;left:50%;width:135px;height:145px;transform:translateX(-50%);clip-path:polygon(37% 0,63% 0,100% 100%,0 100%);background:linear-gradient(180deg,rgba(255,239,143,.78),rgba(255,239,143,0));pointer-events:none}
.v1476-case-badge{position:relative;display:grid!important;place-items:center!important;width:74px!important;height:74px!important;flex:none!important;border:5px solid #ffcb05!important;border-radius:50%!important;background:radial-gradient(circle at 35% 25%,#fff 0 7%,#e94b48 8% 46%,#a82329 47% 100%)!important;color:#fff!important;font-size:32px!important;text-shadow:0 2px 0 rgba(91,19,20,.65);filter:drop-shadow(0 9px 7px rgba(20,47,69,.26));box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 7px #173f62!important}
.v1476-display-case.is-empty .v1476-case-badge{border-color:#9bb3c6!important;background:radial-gradient(circle,#eef6fb,#cbddea)!important;color:#56738b!important;text-shadow:none;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 7px #809bb0!important}
.v1476-display-case>div{position:relative;z-index:2;width:100%;margin-top:12px}.v1476-display-case b,.v1476-display-case small{display:block!important}.v1476-display-case b{font-size:13px!important;color:#143a5d!important}.v1476-display-case small{margin-top:4px!important;color:#5b7185!important;font-size:9px!important}.v1476-display-case>em{position:absolute;z-index:3;right:8px;top:8px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#173f62;color:#ffcb05;font-size:12px;font-style:normal;box-shadow:0 3px 8px rgba(12,43,69,.2)}
/* v14.81 — keep every showcase achievement visually centered inside its case. */
.v1543-showcase-grid .v1476-display-case{justify-items:center!important;align-items:center!important;text-align:center!important}
.v1543-showcase-grid .v1476-display-case>.v1476-case-badge{justify-self:center!important;margin-inline:auto!important}
.v1543-showcase-grid .v1476-display-case>div{justify-self:center!important;align-self:start!important;width:100%!important;text-align:center!important}
.v1476-showcase-dialog{width:min(720px,calc(100% - 24px))!important}.v1476-showcase-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:55vh;margin:17px 0 12px;padding:2px;overflow:auto}.v1476-showcase-choice{display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;gap:10px;min-height:70px;padding:9px 11px;border:2px solid #c9dbea;border-radius:14px;background:linear-gradient(180deg,#fff,#f4f9fd);color:#173f62;text-align:left;cursor:pointer}.v1476-showcase-choice:hover,.v1476-showcase-choice:focus-visible,.v1476-showcase-choice.is-selected{outline:0;border-color:#2a75bb;background:#edf7ff;box-shadow:0 6px 18px rgba(21,73,115,.1)}.v1476-showcase-choice>span{display:grid;place-items:center;width:48px;height:48px;border:3px solid #ffcb05;border-radius:50%;background:#e94848;color:#fff;font-size:21px;box-shadow:inset 0 0 0 3px #fff}.v1476-showcase-choice b,.v1476-showcase-choice small{display:block}.v1476-showcase-choice b{font-size:11px}.v1476-showcase-choice small{margin-top:3px;color:#60778b;font-size:8px}.v1476-showcase-choice>i{color:#2a75bb;font-style:normal;font-weight:1000}.v1476-showcase-choice.is-clear>span{border-color:#aabcca;background:#e8eef2;color:#61798c}.v1476-showcase-choice:disabled{opacity:.58;cursor:wait}
@media(max-width:700px){.v14-showcase-grid{grid-template-columns:1fr!important}.v1476-display-case{min-height:165px!important}.v1476-showcase-choices{grid-template-columns:1fr}}

/* v14.69 — cleaner account actions, Trainer Pass rank and accordions. */
.v149-account-cluster>.v11-account-link{
  border:2px solid rgba(255,255,255,.28)!important;
  border-bottom-color:#ffcb05!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.07))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 5px 0 rgba(5,31,54,.35)!important;
}
.v149-account-cluster>.v11-account-link:hover{transform:translateY(-1px);border-color:#ffdc54!important}
.v149-nav-action{border-radius:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 4px 0 rgba(5,31,54,.28)!important}
.v149-nav-action:active{transform:translateY(2px)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 2px 0 rgba(5,31,54,.3)!important}

.v1466-rank-inline{
  grid-template-columns:42px minmax(0,1fr) 24px!important;
  gap:10px!important;
  width:min(100%,270px)!important;
  max-width:270px!important;
  min-height:62px;
  padding:8px 11px!important;
  border:2px solid #173f62!important;
  border-bottom:5px solid #0a2945!important;
  border-radius:16px!important;
  background:radial-gradient(circle at 86% 18%,rgba(255,203,5,.34),transparent 25%),linear-gradient(145deg,#fff,#eaf5fd)!important;
  box-shadow:0 8px 18px rgba(17,55,86,.14)!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
.v1466-rank-inline>span{width:42px!important;height:42px!important;font-size:21px!important;border:2px solid #ffcb05!important;background:linear-gradient(#e94343 0 44%,#173f62 44% 56%,#fff 56%)!important}
.v1466-rank-inline small{font-size:9px!important}.v1466-rank-inline b{margin-top:2px;font-size:15px!important}.v1466-rank-inline>i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#173f62;color:#ffcb05!important;font-size:18px!important}
.v1466-rank-inline:hover{transform:translateY(-2px)!important;box-shadow:0 11px 22px rgba(17,55,86,.18)!important}.v1466-rank-inline:active{transform:translateY(1px)!important}

details.v11-achievement-group{overflow:hidden}
details.v11-achievement-group>summary{list-style:none;cursor:pointer;user-select:none;-webkit-user-select:none}
details.v11-achievement-group>summary::-webkit-details-marker{display:none}
details.v11-achievement-group>summary strong{display:flex;align-items:center;gap:9px}
details.v11-achievement-group>summary strong>i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#173f62;color:#ffcb05;font-style:normal;transition:transform .18s ease}
details.v11-achievement-group[open]>summary strong>i{transform:rotate(180deg)}
details.v11-achievement-group:not([open])>summary{margin-bottom:0!important}
details.v11-achievement-group>summary:focus-visible{outline:3px solid rgba(42,117,187,.3);outline-offset:3px;border-radius:10px}

/* v14.70 — guild privacy, moderation and custom emblems. */
.v1470-clan-visibility{grid-column:1/-1}
.v1470-clan-head{grid-template-columns:76px minmax(0,1fr)!important}
.v1470-clan-badge{display:grid;place-items:center;width:66px;height:66px;overflow:hidden;clip-path:polygon(50% 0,90% 18%,100% 65%,50% 100%,0 65%,10% 18%);background:linear-gradient(145deg,#fff36a,#ffcb05 45%,#e94343 46%,#9b2222);filter:drop-shadow(0 5px 2px rgba(0,0,0,.2))}
.v1470-clan-badge>span{color:#fff;font-size:13px;font-weight:1000;text-shadow:0 2px 0 #812020}.v1470-clan-badge>img{width:100%;height:100%;object-fit:cover}
.v1470-clan-requests,.v1470-clan-management{margin:14px 0;padding:12px;border:1px solid #c9dce9;border-radius:15px;background:#f6fbff}
.v1470-clan-requests>header{display:flex;justify-content:space-between;margin-bottom:8px}.v1470-clan-requests>header b{font-size:11px}.v1470-clan-requests>header span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:#e94343;color:#fff;font-size:9px;font-weight:900}
.v1470-clan-requests article{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid #dbe7ef}.v1470-clan-requests article>a{display:flex;align-items:center;gap:8px;text-decoration:none}.v1470-clan-requests img,.v1463-clan-members img{width:35px;height:35px;object-fit:contain;border:1px solid #bdd3e4;border-radius:10px;background:#fff}
.v1470-clan-requests b,.v1470-clan-requests small{display:block}.v1470-clan-requests b{font-size:10px}.v1470-clan-requests small{font-size:8px;color:#75899b}.v1470-clan-requests article>div{display:flex;gap:5px}.v1470-clan-requests button,.v1463-clan-members article>button{min-height:31px;padding:0 9px;border:1px solid #b8cfe0;border-radius:9px;background:#fff;color:#244e70;font-size:8px;font-weight:900;cursor:pointer}
.v1470-clan-management>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:11px;font-weight:1000;color:#173f62}.v1470-clan-management form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:12px}.v1470-clan-management label>span,.v1470-clan-management label>small{display:block}.v1470-clan-management label>span{margin-bottom:5px;font-size:8px;font-weight:900;text-transform:uppercase;color:#61798d}.v1470-clan-management label>small{margin-top:4px;color:#7b8e9e;font-size:8px}
.v1463-clan-members article{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:5px 7px;border:1px solid #d5e3ed;border-radius:11px;background:#fff}.v1463-clan-members article>a{display:flex;align-items:center;gap:8px;min-width:0;text-decoration:none}.v1463-clan-members article>a>span{min-width:0}.v1463-clan-members article b,.v1463-clan-members article small{display:block}.v1463-clan-members article>button{border-color:#efb4b4;color:#9a3030}
.v1468-guild-shield{overflow:hidden}.v1468-guild-shield img{width:100%;height:100%;object-fit:cover}
@media(max-width:680px){.v1470-clan-management form{grid-template-columns:1fr}.v1470-clan-requests article{align-items:flex-start;flex-direction:column}.v1470-clan-requests article>div{align-self:stretch}.v1470-clan-requests button{flex:1}}

/* v14.70.1 — trainer avatars and a dedicated Pokédex progress row. */
.v14701-board-avatar{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;overflow:hidden;border:2px solid #173f62;border-bottom:4px solid #ffcb05;border-radius:14px;background:radial-gradient(circle at 50% 72%,#fff 0 30%,#ddecf7 31% 58%,#b9d3e7 59%);box-shadow:0 5px 12px rgba(17,55,86,.13)}
.v14701-board-avatar img{display:block;width:42px;height:42px;object-fit:contain;transition:transform .16s ease}.v14701-board-avatar:hover img{transform:scale(1.1)}
.v26-pokedex-dialog{grid-template-rows:auto auto auto auto auto minmax(0,1fr)!important}
.v26-pokedex-progress{position:relative;z-index:6;min-height:44px;margin:2px 0 12px!important;padding:10px 12px;border:1px solid #bfd7e9;border-radius:13px;background:#f4faff;box-shadow:0 5px 14px rgba(22,67,101,.06)}
.v26-pokedex-progress>span{position:relative;height:12px!important;border:1px solid #bed0dd;background:#dce9f2!important}.v26-pokedex-progress>span>i{position:relative;z-index:1;background:linear-gradient(90deg,#2a75bb,#40ae78)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.v26-pokedex-grid{position:relative;z-index:1}
@media(max-width:560px){.v11-board-name .v14701-board-avatar{display:grid!important;width:40px;height:40px}.v14701-board-avatar img{width:37px;height:37px}.v26-pokedex-progress{grid-template-columns:1fr;gap:6px}}

/* v14.71 — clickable guild cards and statistics dialog. */
[data-guild-details]{cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
[data-guild-details]:hover,[data-guild-details]:focus-visible{background:#eef7ff!important;box-shadow:inset 0 0 0 2px rgba(42,117,187,.18);outline:0;transform:translateY(-1px)}
.v1471-mini-guild{display:flex!important;align-items:center;gap:9px;min-width:0}.v1471-mini-guild>i{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;overflow:hidden;border:2px solid #173f62;border-radius:10px 10px 14px 14px;background:linear-gradient(145deg,#ffdd4f,#e94444 62%,#942222);color:#fff;font-size:8px;font-style:normal;font-weight:900}.v1471-mini-guild>i img{width:100%;height:100%;object-fit:cover}.v1471-mini-guild>span{min-width:0}
.v1471-guild-dialog{width:min(620px,calc(100% - 24px));border-top:8px solid #ffcb05!important}
.v1471-guild-dialog-badge{display:grid;place-items:center;width:92px;height:92px;margin:0 auto 12px;overflow:hidden;clip-path:polygon(50% 0,90% 18%,100% 65%,50% 100%,0 65%,10% 18%);background:linear-gradient(145deg,#fff36a,#ffcb05 45%,#e94343 46%,#9b2222);filter:drop-shadow(0 8px 4px rgba(14,42,65,.2))}.v1471-guild-dialog-badge img{width:100%;height:100%;object-fit:cover}.v1471-guild-dialog-badge span{color:#fff;font-size:18px;font-weight:1000;text-shadow:0 2px 0 #812020}
.v1471-guild-dialog>.v11-kicker,.v1471-guild-dialog>h2,.v1471-guild-dialog>p{text-align:center}.v1471-guild-dialog>h2{margin:5px 0!important;font-size:32px!important}.v1471-guild-dialog>p{margin:0 0 15px!important;color:#667d90}
.v1471-guild-dialog-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:15px 0}.v1471-guild-dialog-stats article{padding:12px 8px;border:1px solid #cbddea;border-radius:13px;background:#f5faff;text-align:center}.v1471-guild-dialog-stats small,.v1471-guild-dialog-stats b{display:block}.v1471-guild-dialog-stats small{font-size:7px;font-weight:900;color:#6a8195;text-transform:uppercase}.v1471-guild-dialog-stats b{margin-top:5px;color:#173f62;font-size:18px}.v1471-guild-dialog>.v11-primary-button{width:100%}
@media(max-width:680px){.v1471-guild-dialog-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.v1471-guild-dialog-stats article:first-child{grid-column:1/-1}.v1471-mini-guild>i{width:34px;height:34px}}
@media(max-width:430px){.v26-pokedex-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v11-run-type-switch .v149-run-mode>span{grid-template-columns:40px minmax(0,1fr)!important}.v11-run-type-switch .v149-run-mode em{grid-column:2;justify-self:start}.v149-mode-icon{grid-row:1/3}.v149-account-cluster .v11-account-link small{display:none}.v149-account-cluster .v11-account-link{width:38px;grid-template-columns:1fr;padding:0}.v149-account-cluster .v11-account-link .v149-nav-user-icon{grid-row:auto;margin:auto}}
/* Sprite presentation stays transparent; no decorative placeholder floor behind the Pokémon. */
.v11-pokemon-line::before{display:none!important}
.v11-pokemon-line img,.v14-avatar-choice img,.v14-avatar-hero img{background:transparent!important}
@media(max-width:680px){.v149-account-cluster .v11-account-link::after,.v11-account-link.v149-login-link::after{content:none!important;display:none!important}.v11-account-link.v149-login-link{font-size:0!important}.v11-account-link.v149-login-link b{font-size:11px!important}}


/* v14.50 — home run type cards fix --------------------------------------- */
.v11-run-type-switch{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  padding:18px 24px 0!important;
}
.v11-run-type-switch>label{
  flex:1 1 180px;
  min-width:0;
  display:block;
}
.v11-run-option span{
  position:relative;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  grid-template-areas:
    "icon title"
    "icon text"
    "badge badge"!important;
  align-items:start;
  column-gap:12px;
  row-gap:4px;
  min-height:142px!important;
  padding:15px 15px 14px!important;
  border:2px solid #c5d9eb!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f8fbff,#ffffff)!important;
  box-shadow:0 8px 18px rgba(21,73,121,.05);
}
.v11-run-option .v11-run-option-icon{
  grid-area:icon;
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  align-self:center;
  border-radius:15px;
  font-style:normal;
  font-size:28px;
  font-weight:1000;
  line-height:1;
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28);
}
.v11-run-option strong{
  grid-area:title;
  display:block;
  margin:0!important;
  padding-right:0!important;
  font-size:16px!important;
  line-height:1.15!important;
  color:var(--v11-blue-deep)!important;
}
.v11-run-option small{
  grid-area:text;
  display:block;
  margin:0!important;
  font-size:11px!important;
  line-height:1.45!important;
  color:#4f6479!important;
}
.v11-run-option em{
  grid-area:badge;
  position:static!important;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  min-height:24px;
  margin-top:8px;
  padding:0 10px!important;
  border-radius:999px;
  font-size:10px!important;
  font-style:normal;
  font-weight:1000;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.v11-run-option.is-ranked .v11-run-option-icon{background:linear-gradient(180deg,#2a75bb,#194f86)}
.v11-run-option.is-ranked em{background:#173e62!important;color:#fff!important}
.v11-run-option.is-custom .v11-run-option-icon{background:linear-gradient(180deg,#5b9fd9,#2a75bb)}
.v11-run-option.is-custom em{background:#eaf4ff!important;color:#255f94!important}
.v11-run-option.is-challenge .v11-run-option-icon{background:linear-gradient(180deg,#8d79df,#6956b8)}
.v11-run-option.is-challenge em{background:#efe9ff!important;color:#6550b3!important}
.v11-run-type-switch input:checked+span{
  border-color:var(--v11-blue)!important;
  background:linear-gradient(180deg,#edf7ff,#ffffff)!important;
  box-shadow:inset 0 0 0 2px rgba(42,117,187,.16),0 12px 24px rgba(42,117,187,.14)!important;
}
.v11-run-type-switch .v11-run-option input:checked+span .v11-run-option-icon{transform:translateY(-1px) scale(1.02)}
.v11-run-type-switch .v11-run-option input:checked+span em{filter:saturate(1.08)}
@media (max-width:1360px){
  .v11-run-type-switch>label{flex:1 1 calc(50% - 6px)}
}
@media (max-width:1120px){
  .v11-run-type-switch>label{flex:1 1 100%}
}
@media (max-width:795px){
  .v11-run-type-switch{padding:14px 16px 0!important}
  .v11-run-option span{min-height:auto!important;grid-template-columns:48px 1fr!important;padding:14px!important}
  .v11-run-option .v11-run-option-icon{width:44px;height:44px;border-radius:13px;font-size:23px}
  .v11-run-option strong{font-size:15px!important}
}


/* v14.51 — authenticated header action cluster ---------------------------- */
.v11-nav>.v149-account-cluster{
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
  max-width:100%;
}
.v149-account-cluster>.v11-account-link{
  justify-self:auto!important;
  display:grid!important;
  grid-template-columns:12px minmax(0,auto);
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:8px;
  row-gap:1px;
  min-width:112px;
  min-height:52px;
  padding:7px 13px!important;
  white-space:nowrap;
  overflow:hidden;
}
.v149-account-cluster>.v11-account-link .v149-nav-user-icon{
  grid-column:1;
  grid-row:1/3;
  align-self:center;
  color:#58d98c!important;
  font-size:12px!important;
}
.v149-account-cluster>.v11-account-link b{
  grid-column:2;
  grid-row:1;
  display:block;
  min-width:0;
  max-width:112px;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#fff;
  font-size:12px;
  line-height:1.2;
}
.v149-account-cluster>.v11-account-link small{
  grid-column:2;
  grid-row:2;
  display:block;
  margin:0;
  color:#bfd7ee;
  font-size:9px!important;
  font-weight:900;
  line-height:1.1;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.v149-session-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  min-width:0;
}
.v149-nav-action{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:46px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:12px;
  background:rgba(255,255,255,.10);
  color:#fff!important;
  font:900 11px/1 Inter,"Segoe UI",system-ui,sans-serif;
  text-decoration:none!important;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.v149-nav-action span{
  display:inline-grid;
  place-items:center;
  min-width:14px;
  color:#dbeeff;
  font-size:12px;
  line-height:1;
}
.v149-nav-action b{font-size:11px;font-weight:900;color:inherit}
.v149-nav-action:hover,.v149-nav-action:focus-visible{
  background:rgba(255,255,255,.20);
  border-color:rgba(255,255,255,.46);
  color:#fff!important;
  outline:none;
  transform:translateY(-1px);
}
.v149-nav-action.is-active{
  border-color:#ffd94d;
  background:rgba(255,203,5,.18);
  box-shadow:inset 0 0 0 1px rgba(255,203,5,.2);
}
.v149-nav-action.is-admin{
  border-color:rgba(255,216,88,.34);
}
.v149-nav-action.is-admin span{color:#ffda5e}
.v149-nav-action.is-logout{
  border-color:rgba(255,142,142,.30);
  background:rgba(177,49,49,.16);
}
.v149-nav-action.is-logout span{color:#ffb0b0}
.v149-nav-action.is-logout:hover,.v149-nav-action.is-logout:focus-visible{
  border-color:#ff8b8b;
  background:#b83f43;
}
.v149-nav-action:disabled{opacity:.55;cursor:wait;transform:none}

@media (max-width:1180px){
  .v11-nav>.v149-account-cluster{gap:5px}
  .v149-account-cluster>.v11-account-link{min-width:94px;padding-left:10px!important;padding-right:10px!important}
  .v149-account-cluster>.v11-account-link b{max-width:76px}
  .v149-nav-action{width:44px;padding:0}
  .v149-nav-action b{display:none}
}
@media (max-width:780px){
  .v11-nav>.v149-account-cluster{gap:4px}
  .v149-account-cluster>.v11-account-link{
    min-width:44px;
    width:44px;
    padding:0!important;
    display:grid!important;
    place-items:center;
  }
  .v149-account-cluster>.v11-account-link .v149-nav-user-icon{grid-column:1;grid-row:1;font-size:15px!important}
  .v149-account-cluster>.v11-account-link b,
  .v149-account-cluster>.v11-account-link small{display:none}
  .v149-nav-action{width:40px;min-height:40px;border-radius:10px}
}


/* v14.54 — ergonomic mobile GBA controls -------------------------------- */
.v154-touch-controller{
  position:relative;
  isolation:isolate;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  overscroll-behavior:contain;
}
.v154-touch-controller button{
  -webkit-tap-highlight-color:transparent;
  outline:none;
  transition:transform .055s ease,box-shadow .055s ease,filter .055s ease,background-color .055s ease;
}
.v154-touch-controller button.is-pressed,
.v154-touch-controller button:active{
  transform:translateY(2px) scale(.95)!important;
  filter:brightness(.9);
  box-shadow:inset 0 4px 9px rgba(0,0,0,.28)!important;
}
.v154-shoulder-buttons{display:none}
.v154-dpad-center{display:none}

@media (pointer:coarse), (max-width:920px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    display:grid!important;
    grid-template-columns:minmax(136px,1fr) minmax(92px,.72fr) minmax(136px,1fr);
    grid-template-rows:34px 142px;
    grid-template-areas:
      "shoulder shoulder shoulder"
      "dpad center ab";
    align-items:center;
    justify-items:center;
    gap:4px 12px;
    min-height:196px!important;
    padding:10px max(14px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))!important;
    border-top:2px solid #5d7992;
    background:
      radial-gradient(circle at 17% 70%,rgba(255,255,255,.09),transparent 25%),
      radial-gradient(circle at 83% 70%,rgba(239,81,72,.08),transparent 24%),
      linear-gradient(180deg,#253b50,#14283a)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.09);
  }
  .v154-shoulder-buttons{
    grid-area:shoulder;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 4px;
    pointer-events:none;
  }
  .v154-shoulder-buttons button{
    pointer-events:auto;
    width:min(118px,27vw);
    height:34px;
    border:1px solid rgba(255,255,255,.20)!important;
    border-radius:11px 11px 16px 16px!important;
    background:linear-gradient(180deg,#516577,#34495c)!important;
    color:#eef6ff!important;
    box-shadow:0 4px 0 #0c1a26,0 6px 12px rgba(0,0,0,.22)!important;
    font:1000 13px/1 system-ui,sans-serif!important;
    letter-spacing:.08em;
  }
  .v11-dpad{
    grid-area:dpad;
    position:relative;
    width:138px!important;
    height:138px!important;
    filter:drop-shadow(0 7px 5px rgba(0,0,0,.24));
  }
  .v154-dpad-center{
    display:block;
    position:absolute;
    z-index:0;
    left:46px;
    top:46px;
    width:46px;
    height:46px;
    border-radius:9px;
    background:#152434;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.035);
  }
  .v11-dpad button{
    z-index:1;
    width:48px!important;
    height:50px!important;
    border:1px solid rgba(255,255,255,.055)!important;
    background:linear-gradient(180deg,#263a4d,#132536)!important;
    color:#dce9f4!important;
    font-size:15px!important;
    box-shadow:0 4px 0 #091722,inset 0 1px 0 rgba(255,255,255,.075)!important;
  }
  .v11-dpad button[data-input="up"]{left:45px!important;top:0!important;border-radius:12px 12px 5px 5px!important}
  .v11-dpad button[data-input="down"]{left:45px!important;bottom:0!important;border-radius:5px 5px 12px 12px!important}
  .v11-dpad button[data-input="left"]{left:0!important;top:44px!important;border-radius:12px 5px 5px 12px!important}
  .v11-dpad button[data-input="right"]{right:0!important;top:44px!important;border-radius:5px 12px 12px 5px!important}
  .v11-center-buttons{
    grid-area:center;
    align-self:center!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center;
    gap:12px!important;
    padding:0!important;
    transform:translateY(17px);
  }
  .v11-center-buttons button{
    min-width:82px!important;
    min-height:34px!important;
    padding:0 14px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,#758493,#556675)!important;
    color:#f2f6fa!important;
    box-shadow:0 4px 0 #1b2a36!important;
    font:1000 9px/1 system-ui,sans-serif!important;
    letter-spacing:.1em!important;
  }
  .v11-ab-buttons{
    grid-area:ab;
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:14px!important;
    transform:rotate(-12deg)!important;
    filter:drop-shadow(0 7px 5px rgba(0,0,0,.22));
  }
  .v11-ab-buttons button{
    width:64px!important;
    height:64px!important;
    border:2px solid rgba(255,255,255,.10)!important;
    border-radius:50%!important;
    background:linear-gradient(180deg,#ef615a,#c9383d)!important;
    color:#fff!important;
    box-shadow:0 5px 0 #7c242b,inset 0 2px 0 rgba(255,255,255,.18)!important;
    font:1000 20px/1 system-ui,sans-serif!important;
    transform:rotate(12deg);
  }
  .v11-ab-buttons button[data-input="a"]{margin-top:-20px}
  .v11-ab-buttons button[data-input="b"]{margin-top:20px}
}

@media (pointer:coarse) and (max-width:430px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    grid-template-columns:128px minmax(70px,1fr) 128px;
    gap:2px 5px;
    min-height:186px!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
  }
  .v11-dpad{width:126px!important;height:126px!important}
  .v154-dpad-center{left:42px;top:42px;width:42px;height:42px}
  .v11-dpad button{width:44px!important;height:46px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:41px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:40px!important}
  .v11-ab-buttons{gap:8px!important}
  .v11-ab-buttons button{width:58px!important;height:58px!important}
  .v11-center-buttons button{min-width:70px!important;padding:0 8px!important;font-size:8px!important}
}

@media (pointer:coarse) and (orientation:landscape) and (max-height:520px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    grid-template-columns:124px minmax(100px,1fr) 124px;
    grid-template-rows:28px 112px;
    min-height:150px!important;
    padding-top:6px!important;
    padding-bottom:calc(7px + env(safe-area-inset-bottom))!important;
  }
  .v154-shoulder-buttons button{height:28px;width:min(130px,22vw)}
  .v11-dpad{width:110px!important;height:110px!important}
  .v154-dpad-center{left:37px;top:37px;width:36px;height:36px}
  .v11-dpad button{width:38px!important;height:40px!important;font-size:12px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:36px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:35px!important}
  .v11-ab-buttons button{width:52px!important;height:52px!important;font-size:17px!important}
  .v11-center-buttons{transform:translateY(10px)}
  .v11-center-buttons button{min-height:30px!important}
}


/* v14.55 — mobile landscape game layout ---------------------------------- */
@media (pointer:coarse) and (orientation:landscape) and (max-height:560px){
  html,body{overflow-x:hidden!important}
  .v11-room-page{min-height:100dvh;background:#071c31!important}

  /* Compact room header: preserve safe areas around notch / Dynamic Island. */
  .v11-room-nav{
    min-height:52px!important;
    height:52px!important;
    padding-left:max(10px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  .v11-room-nav .v11-brand{gap:7px!important}
  .v11-room-nav .v11-brand-mark{width:32px!important;height:32px!important;border-radius:9px!important}
  .v11-room-nav .v11-brand strong{font-size:17px!important}
  .v11-room-nav .v11-brand small{display:none!important}
  .v11-room-heading{display:none!important}
  .v11-room-nav-actions{gap:6px!important}
  .v11-room-code{height:34px!important;padding:0 9px!important;border-radius:10px!important}
  .v11-room-code span{display:none!important}
  .v11-room-code b{font-size:10px!important}
  .v11-room-share,.v11-room-exit{width:34px!important;height:34px!important;border-radius:10px!important}

  /* Let the page itself stay scrollable, but make the active game viewport fit. */
  .v11-room-shell{display:block!important;width:100%!important;max-width:none!important;padding:6px 0 12px!important}
  .v11-room-main{width:100%!important;max-width:none!important}
  .v11-player-grid[data-players="1"]{
    width:100%!important;
    max-width:none!important;
    margin:6px 0 0!important;
  }
  .v11-player-card.is-local{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .v11-player-card.is-local>header{display:none!important}
  .v11-player-card.is-local>.v11-game-frame{
    width:100%!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:#071c31!important;
  }
  .v11-player-card.is-local .v11-game-screen{
    width:auto!important;
    height:min(calc(100dvh - 58px),66.6667vw)!important;
    max-width:100vw!important;
    max-height:calc(100dvh - 58px)!important;
    aspect-ratio:3/2!important;
    margin:0 auto!important;
    border:1px solid rgba(150,193,229,.62)!important;
    border-radius:0!important;
    box-shadow:0 0 0 1px rgba(4,18,31,.75),0 12px 38px rgba(0,0,0,.22)!important;
  }
  .v11-player-card.is-local .v11-game-screen canvas{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  .v11-player-card.is-local .v11-game-label{display:none!important}
  .v11-screen-hud{left:8px!important;right:8px!important;bottom:7px!important}
  .v11-screen-hud span{font-size:8px!important;padding:4px 7px!important}

  /* Controls become an overlay across the whole landscape game row. The
     actual game remains in the centre; controls occupy the dark side margins. */
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    position:absolute!important;
    z-index:12!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:min(calc(100dvh - 58px),66.6667vw)!important;
    min-height:0!important;
    padding:6px max(8px,env(safe-area-inset-right)) 7px max(8px,env(safe-area-inset-left))!important;
    grid-template-columns:132px minmax(0,1fr) 132px!important;
    grid-template-rows:30px minmax(0,1fr) 40px!important;
    grid-template-areas:
      "shoulder shoulder shoulder"
      "dpad . ab"
      ". center ."!important;
    align-items:center!important;
    justify-items:center!important;
    gap:0 6px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:none!important;
  }
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller button{pointer-events:auto!important}
  .v154-shoulder-buttons{
    grid-area:shoulder!important;
    align-self:start!important;
    width:100%!important;
    padding:0 max(4px,env(safe-area-inset-right)) 0 max(4px,env(safe-area-inset-left))!important;
  }
  .v154-shoulder-buttons button{
    width:80px!important;
    height:28px!important;
    opacity:.82!important;
    backdrop-filter:blur(5px);
  }
  .v11-dpad{
    grid-area:dpad!important;
    justify-self:start!important;
    align-self:center!important;
    width:108px!important;
    height:108px!important;
    margin-left:max(4px,env(safe-area-inset-left))!important;
    opacity:.88!important;
  }
  .v154-dpad-center{left:36px!important;top:36px!important;width:36px!important;height:36px!important}
  .v11-dpad button{width:38px!important;height:40px!important;font-size:12px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:35px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:34px!important}
  .v11-ab-buttons{
    grid-area:ab!important;
    justify-self:end!important;
    align-self:center!important;
    gap:9px!important;
    margin-right:max(5px,env(safe-area-inset-right))!important;
    opacity:.9!important;
  }
  .v11-ab-buttons button{width:54px!important;height:54px!important;font-size:17px!important}
  .v11-ab-buttons button[data-input="a"]{margin-top:-15px!important}
  .v11-ab-buttons button[data-input="b"]{margin-top:15px!important}
  .v11-center-buttons{
    grid-area:center!important;
    align-self:end!important;
    display:flex!important;
    flex-direction:row!important;
    gap:8px!important;
    padding:0!important;
    margin:0 0 3px!important;
    transform:none!important;
    opacity:.86!important;
  }
  .v11-center-buttons button{min-width:68px!important;min-height:28px!important;padding:0 10px!important;font-size:8px!important}

  /* Team and tracker remain available below the game instead of being lost. */
  .v11-player-card.is-local>.local-card-team{
    position:relative!important;
    z-index:1!important;
    margin:0 auto!important;
    width:min(100%,760px)!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  .v11-tracker{
    position:static!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:min(100% - 16px,900px)!important;
    margin:10px auto 0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .v11-system-line{width:min(100% - 16px,900px)!important;margin:8px auto!important}
}

/* Very short phones: trim the overlay controls one more step. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:400px){
  .v11-room-nav{min-height:46px!important;height:46px!important}
  .v11-room-nav .v11-brand-mark{width:28px!important;height:28px!important}
  .v11-room-nav .v11-brand strong{font-size:15px!important}
  .v11-room-code,.v11-room-share,.v11-room-exit{height:30px!important}
  .v11-room-share,.v11-room-exit{width:30px!important}
  .v11-player-card.is-local .v11-game-screen,
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    height:min(calc(100dvh - 50px),66.6667vw)!important;
    max-height:calc(100dvh - 50px)!important;
  }
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{grid-template-columns:112px minmax(0,1fr) 112px!important;grid-template-rows:26px minmax(0,1fr) 34px!important}
  .v11-dpad{width:94px!important;height:94px!important}
  .v154-dpad-center{left:31px!important;top:31px!important;width:32px!important;height:32px!important}
  .v11-dpad button{width:33px!important;height:35px!important;font-size:10px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:30px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:29px!important}
  .v11-ab-buttons button{width:48px!important;height:48px!important;font-size:15px!important}
  .v154-shoulder-buttons button{width:70px!important;height:24px!important;font-size:11px!important}
}


/* v14.56 — mobile landscape control size tuning -------------------------- */
@media (pointer:coarse) and (orientation:landscape) and (max-height:560px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    grid-template-columns:118px minmax(0,1fr) 118px!important;
    grid-template-rows:28px minmax(0,1fr) 36px!important;
    padding:8px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left))!important;
  }
  .v154-shoulder-buttons button{
    width:72px!important;
    height:24px!important;
    font-size:11px!important;
    border-radius:12px!important;
    opacity:.78!important;
  }
  .v11-dpad{
    width:96px!important;
    height:96px!important;
    margin-left:max(8px,env(safe-area-inset-left))!important;
    opacity:.82!important;
  }
  .v154-dpad-center{left:32px!important;top:32px!important;width:32px!important;height:32px!important}
  .v11-dpad button{
    width:34px!important;
    height:36px!important;
    font-size:11px!important;
  }
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:31px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:30px!important}
  .v11-ab-buttons{
    gap:8px!important;
    margin-right:max(8px,env(safe-area-inset-right))!important;
    opacity:.86!important;
  }
  .v11-ab-buttons button{
    width:46px!important;
    height:46px!important;
    font-size:16px!important;
  }
  .v11-ab-buttons button[data-input="a"]{margin-top:-10px!important}
  .v11-ab-buttons button[data-input="b"]{margin-top:10px!important}
  .v11-center-buttons{
    gap:7px!important;
    margin:0 0 4px!important;
    opacity:.8!important;
  }
  .v11-center-buttons button{
    min-width:62px!important;
    min-height:24px!important;
    padding:0 10px!important;
    font-size:7px!important;
    border-radius:14px!important;
  }
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:400px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{
    grid-template-columns:100px minmax(0,1fr) 100px!important;
    grid-template-rows:24px minmax(0,1fr) 30px!important;
  }
  .v11-dpad{width:84px!important;height:84px!important}
  .v154-dpad-center{left:28px!important;top:28px!important;width:28px!important;height:28px!important}
  .v11-dpad button{width:30px!important;height:31px!important;font-size:9px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:27px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:26px!important}
  .v11-ab-buttons button{width:42px!important;height:42px!important;font-size:14px!important}
  .v154-shoulder-buttons button{width:64px!important;height:22px!important;font-size:10px!important}
  .v11-center-buttons button{min-width:56px!important;min-height:22px!important;font-size:6.5px!important}
}


/* v14.57 — deeper achievements ------------------------------------------ */
.v157-deep-achievement-catalog{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
.v157-achievement-category{min-width:0;padding:12px;border:1px solid #d7e4ef;border-radius:15px;background:linear-gradient(180deg,#fbfdff,#f6faff)}
.v157-achievement-category>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0 2px}
.v157-achievement-category>header b{font-size:12px;color:#173e62;letter-spacing:.02em}
.v157-achievement-category>header small{font-size:9px;color:#6d8092;font-weight:850}
.v157-achievement-category>.v11-achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.v157-achievement-category .v14-achievement-copy{min-width:0}
.v157-achievement-category .v11-achievement-grid article{min-width:0;align-items:flex-start!important}
.v157-achievement-category .v11-achievement-grid article>span{font-size:18px!important;line-height:1!important}
@media(max-width:760px){.v157-achievement-category>.v11-achievement-grid{grid-template-columns:1fr!important}.v157-achievement-category{padding:9px}.v157-achievement-category>header b{font-size:11px}}

/* v14.58 — feature toggles, profile link and mobile session controls ------ */
.v11-run-option.is-feature-disabled{cursor:not-allowed!important;opacity:.78}
.v11-run-option.is-feature-disabled>span{
  border-style:dashed!important;
  border-color:#aebdca!important;
  background:linear-gradient(180deg,#f2f5f8,#edf1f4)!important;
  box-shadow:none!important;
  filter:saturate(.55);
}
.v11-run-option.is-feature-disabled .v11-run-option-icon{background:#8192a3!important;box-shadow:none!important}
.v11-run-option.is-feature-disabled em{background:#dce3e9!important;color:#526575!important}
.v11-run-option.is-feature-disabled input:disabled+span{pointer-events:none}

.v158-feature-admin-card{margin:0 0 18px;border:2px solid #bfd7eb!important;background:linear-gradient(145deg,#f5faff,#fff)!important}
.v158-feature-admin-card>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}
.v158-feature-admin-card h2{margin:2px 0 0;font-size:19px;color:#123a61}
.v158-feature-admin-intro{max-width:880px;margin:0 0 15px;color:#5b7187;font-size:12px;line-height:1.55}
.v158-feature-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v158-feature-switch{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 56px;align-items:center;gap:14px;min-height:78px;padding:13px 14px;border:1px solid #c9dceb;border-radius:14px;background:#fff;cursor:pointer}
.v158-feature-switch>span b,.v158-feature-switch>span small{display:block}
.v158-feature-switch>span b{font-size:13px;color:#173e62}.v158-feature-switch>span small{margin-top:4px;color:#6a7f91;font-size:10px;line-height:1.4}
.v158-feature-switch input{position:absolute;opacity:0;pointer-events:none}
.v158-feature-switch>i{position:relative;width:52px;height:30px;border-radius:999px;background:#aeb8c1;box-shadow:inset 0 1px 3px rgba(0,0,0,.18);transition:.18s ease}
.v158-feature-switch>i::after{content:"";position:absolute;left:4px;top:4px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.22);transition:.18s ease}
.v158-feature-switch input:checked+i{background:#35a66f}.v158-feature-switch input:checked+i::after{transform:translateX(22px)}
.v158-feature-switch input:focus-visible+i{outline:3px solid rgba(42,117,187,.24);outline-offset:2px}
#featureFlagsStatus.is-warning{color:#b46c00!important}#featureFlagsStatus.is-error{color:#c33!important}

/* Make authenticated controls finger-friendly instead of tiny icon crumbs. */
@media (max-width:780px){
  .v11-nav>.v149-account-cluster{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    min-width:0!important;
  }
  .v149-account-cluster>.v11-account-link{
    width:50px!important;
    min-width:50px!important;
    height:50px!important;
    min-height:50px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border-radius:14px!important;
    overflow:visible!important;
  }
  .v149-account-cluster>.v11-account-link .v149-nav-user-icon{
    display:grid!important;
    place-items:center!important;
    grid-column:1!important;
    grid-row:1!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
    font-size:20px!important;
    line-height:1!important;
  }
  .v149-account-cluster>.v11-account-link b,
  .v149-account-cluster>.v11-account-link small{display:none!important}
  .v149-session-actions{display:flex!important;gap:6px!important}
  .v149-nav-action{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
    min-height:48px!important;
    padding:0!important;
    border-radius:14px!important;
  }
  .v149-nav-action span{font-size:19px!important;min-width:0!important}
  .v149-nav-action b{display:none!important}
}
@media (max-width:520px){
  .v11-page:not(.v11-room-page) .v11-nav{grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;padding-left:10px!important;padding-right:10px!important}
  .v11-page:not(.v11-room-page) .v11-nav .v11-brand>span:last-child{display:none!important}
  .v11-page:not(.v11-room-page) .v11-brand-mark{width:46px!important;height:46px!important}
  .v11-nav>.v149-account-cluster{gap:5px!important}
  .v149-account-cluster>.v11-account-link{width:47px!important;min-width:47px!important;height:47px!important;min-height:47px!important}
  .v149-nav-action{width:45px!important;min-width:45px!important;height:45px!important;min-height:45px!important}
  .v149-nav-action span{font-size:18px!important}
  .v158-feature-switches{grid-template-columns:1fr}
}
@media (max-width:390px){
  .v11-nav>.v149-account-cluster{gap:4px!important}
  .v149-account-cluster>.v11-account-link{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
  .v149-nav-action{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important}
}


/* v14.59 — beautify mobile header session buttons ------------------------ */
@media (max-width:780px){
  .v11-page:not(.v11-room-page) .v11-nav{
    align-items:center!important;
  }
  .v11-nav>.v149-account-cluster{
    gap:8px!important;
    align-items:center!important;
  }
  .v149-account-cluster>.v11-account-link,
  .v149-nav-action{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    align-content:center!important;
    row-gap:2px!important;
    width:58px!important;
    min-width:58px!important;
    height:58px!important;
    min-height:58px!important;
    padding:6px 4px!important;
    border-radius:18px!important;
    border:1px solid rgba(255,255,255,.22)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.07))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 8px 18px rgba(8,18,31,.14)!important;
    backdrop-filter:none!important;
    text-decoration:none!important;
    overflow:hidden!important;
  }
  .v149-account-cluster>.v11-account-link{
    grid-template-columns:1fr!important;
    grid-template-rows:22px auto!important;
  }
  .v149-account-cluster>.v11-account-link .v149-nav-user-icon,
  .v149-nav-action span{
    display:grid!important;
    place-items:center!important;
    width:22px!important;
    height:22px!important;
    margin:0 auto!important;
    background:none!important;
    box-shadow:none!important;
    font-size:20px!important;
    line-height:1!important;
    color:#fff!important;
  }
  .v149-account-cluster>.v11-account-link b{
    display:none!important;
  }
  .v149-account-cluster>.v11-account-link small,
  .v149-nav-action b{
    display:block!important;
    margin:0!important;
    font-size:9px!important;
    line-height:1.05!important;
    font-weight:900!important;
    letter-spacing:.03em!important;
    text-transform:none!important;
    color:#f7fbff!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  .v149-session-actions{
    gap:8px!important;
    align-items:center!important;
  }
  .v149-nav-action.is-account{border-color:rgba(173,214,255,.34)!important}
  .v149-nav-action.is-admin{border-color:rgba(255,222,119,.36)!important;background:linear-gradient(180deg,rgba(255,216,96,.16),rgba(255,255,255,.06))!important}
  .v149-nav-action.is-admin span,.v149-nav-action.is-admin b{color:#ffe07d!important}
  .v149-nav-action.is-logout{border-color:rgba(255,120,120,.34)!important;background:linear-gradient(180deg,rgba(214,74,74,.22),rgba(255,255,255,.06))!important}
  .v149-nav-action.is-logout span,.v149-nav-action.is-logout b{color:#fff2f2!important}
  .v149-account-cluster>.v11-account-link.is-active,
  .v149-nav-action.is-active{
    border-color:rgba(255,255,255,.5)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.11))!important;
    transform:translateY(-1px)!important;
  }
}
@media (max-width:520px){
  .v11-page:not(.v11-room-page) .v11-nav{
    min-height:86px!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
    border-radius:0 0 24px 24px!important;
  }
  .v11-page:not(.v11-room-page) .v11-brand-mark{width:54px!important;height:54px!important}
  .v11-nav>.v149-account-cluster{gap:6px!important}
  .v149-account-cluster>.v11-account-link,
  .v149-nav-action{
    width:62px!important;
    min-width:62px!important;
    height:62px!important;
    min-height:62px!important;
    border-radius:19px!important;
  }
  .v149-account-cluster>.v11-account-link .v149-nav-user-icon,
  .v149-nav-action span{font-size:22px!important;width:24px!important;height:24px!important}
  .v149-account-cluster>.v11-account-link small,
  .v149-nav-action b{font-size:9px!important}
}
@media (max-width:390px){
  .v11-page:not(.v11-room-page) .v11-nav{min-height:80px!important;padding-left:8px!important;padding-right:8px!important}
  .v11-page:not(.v11-room-page) .v11-brand-mark{width:50px!important;height:50px!important}
  .v11-nav>.v149-account-cluster{gap:4px!important}
  .v149-account-cluster>.v11-account-link,
  .v149-nav-action{
    width:56px!important;
    min-width:56px!important;
    height:56px!important;
    min-height:56px!important;
    border-radius:17px!important;
    padding:5px 3px!important;
  }
  .v149-account-cluster>.v11-account-link .v149-nav-user-icon,
  .v149-nav-action span{font-size:20px!important}
  .v149-account-cluster>.v11-account-link small,
  .v149-nav-action b{font-size:8px!important}
}

/* v14.63 — Community, prestige, rare badges, changelog ------------------- */
.v1463-home-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 0}
.v1463-home-challenge,.v1463-home-changelog{padding:14px;border:1px solid #bfd6e9;border-radius:16px;background:rgba(255,255,255,.86);box-shadow:0 9px 22px rgba(28,76,118,.07)}
.v1463-home-challenge>b{display:block;margin-top:4px;font-size:14px;color:#133d63}.v1463-home-challenge p{margin:6px 0 9px;color:#5a7188;font-size:10px;line-height:1.4}.v1463-home-challenge small{display:block;margin-top:6px;color:#53708a;font-size:9px;font-weight:850}
.v1463-home-changelog>header{display:flex;justify-content:space-between;align-items:center;gap:8px}.v1463-home-changelog>header a{font-size:9px;font-weight:900;color:#2a75bb;text-decoration:none}.v1463-home-changelog p{margin:8px 0 0;color:#405d77;font-size:10px;line-height:1.4}
.v1463-progress{position:relative;overflow:hidden;height:9px;border-radius:999px;background:#dce8f2}.v1463-progress>i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#ffcb05,#ef5b57);transition:width .3s ease}
.v1463-mini-progress{overflow:hidden;width:100%;height:6px;margin-top:6px;border-radius:999px;background:rgba(255,255,255,.25)}.v1463-mini-progress>i{display:block;height:100%;border-radius:inherit;background:#ffcb05}

.v1463-profile-meta{display:grid;grid-template-columns:minmax(230px,.42fr) minmax(0,1fr);gap:12px;margin:14px 0}
.v1463-profile-prestige{display:flex;align-items:center;gap:13px;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,#133b62,#2a75bb);color:#fff;box-shadow:0 14px 30px rgba(22,67,106,.18)}
.v1463-profile-prestige>span{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.14);font-size:27px}.v1463-profile-prestige>div{min-width:0;flex:1}.v1463-profile-prestige small,.v1463-profile-prestige b,.v1463-profile-prestige em{display:block}.v1463-profile-prestige small{font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#b9d7f0}.v1463-profile-prestige b{margin-top:2px;font-size:18px}.v1463-profile-prestige em{margin-top:3px;font-size:9px;font-style:normal;color:#d8e8f5}
.v1463-profile-rare{padding:14px 16px;border:1px solid #d4dfe9;border-radius:18px;background:#fff}.v1463-profile-rare>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.v1463-profile-rare h2{margin:2px 0 0;font-size:17px}.v1463-profile-rare>header>small{color:#7a8791;font-size:9px}
.v1463-profile-rare-grid{display:flex;gap:8px;overflow:auto;padding-bottom:2px}.v1463-profile-rare-grid>article{display:flex;align-items:center;gap:8px;flex:0 0 220px;min-height:65px;padding:9px 11px;border:1px solid #ead49b;border-radius:13px;background:linear-gradient(145deg,#fff9e7,#fff)}.v1463-profile-rare-grid>article>span{font-size:24px}.v1463-profile-rare-grid b,.v1463-profile-rare-grid small{display:block}.v1463-profile-rare-grid b{font-size:10px;color:#6b5316}.v1463-profile-rare-grid small{margin-top:3px;color:#877544;font-size:8px;line-height:1.35}

.v1463-community-shell{padding-top:34px;padding-bottom:70px}.v1463-community-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.v1463-community-hero h1{margin:8px 0 6px;font-size:50px;letter-spacing:-.055em;color:#123a61}.v1463-community-hero p{max-width:740px;margin:0;color:#61788d;font-size:13px;line-height:1.5}
.v1463-prestige-card{display:flex;align-items:center;gap:11px;min-width:270px;padding:15px 17px;border-radius:18px;background:linear-gradient(135deg,#11395f,#2c79bc);color:#fff;box-shadow:0 15px 34px rgba(17,56,91,.18)}.v1463-prestige-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.14);font-size:24px}.v1463-prestige-card>div{min-width:0;flex:1}.v1463-prestige-card small,.v1463-prestige-card b,.v1463-prestige-card em{display:block}.v1463-prestige-card small{font-size:8px;color:#bcd8ef;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.v1463-prestige-card b{margin-top:2px;font-size:17px}.v1463-prestige-card em{margin-top:2px;font-size:8px;font-style:normal;color:#d9e8f4}
.v1463-community-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:14px}.v1463-community-main,.v1463-community-side{display:grid;gap:14px;align-content:start}
.v1463-global-card{border-color:#efd375!important;background:linear-gradient(145deg,#fffbea,#fff)!important}.v1463-global-card>header{display:flex;align-items:center;justify-content:space-between}.v1463-global-card>header>strong{color:#c58800;font-size:19px}.v1463-global-card>p{margin:0 0 12px;color:#6c6f73;font-size:11px;line-height:1.5}.v1463-global-card>small{display:block;margin-top:6px;color:#6f6d62;font-size:9px;font-weight:900}.v1463-rule-banner{margin:0 0 11px;padding:9px 11px;border:1px dashed #d7b448;border-radius:11px;background:#fff7d7;color:#725c12;font-size:10px;font-weight:850;line-height:1.4}
.v1463-friend-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}.v1463-friend-search .v11-primary-button{min-width:112px}.v1463-request-area{margin:10px 0}.v1463-request-area>.v11-kicker{display:block;margin:0 0 6px}
.v1463-person-list{display:grid;gap:7px}.v1463-person{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:9px 10px;border:1px solid #d8e3ec;border-radius:13px;background:#f9fcff}.v1463-person a{text-decoration:none;color:#163e61}.v1463-person b,.v1463-person small{display:block}.v1463-person b{font-size:11px}.v1463-person small{margin-top:2px;color:#718295;font-size:8px}.v1463-online-dot{display:block;width:8px;height:8px;border-radius:50%;background:#aeb8c0}.v1463-online-dot.is-online{background:#36b877;box-shadow:0 0 0 4px rgba(54,184,119,.12)}.v1463-person-actions{display:flex;align-items:center;gap:5px}.v1463-person-actions button,.v1463-person>button{min-height:31px;padding:0 9px;border:1px solid #bdd1e3;border-radius:9px;background:#fff;color:#244e70;font-size:8px;font-weight:900;cursor:pointer}.v1463-person-actions span,.v1463-known{font-size:8px;color:#738493}
.v1463-rival-empty{padding:20px;border:1px dashed #c8d5e0;border-radius:14px;text-align:center;color:#718394;font-size:10px;line-height:1.5}.v1463-rival-card{padding:14px;border:2px solid #8d78da;border-radius:15px;background:linear-gradient(145deg,#f3efff,#fff)}.v1463-rival-card>div:first-child{display:flex;align-items:center;gap:10px}.v1463-rival-card>div:first-child>span{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#7760ce;color:#fff;font-size:21px}.v1463-rival-card b,.v1463-rival-card small{display:block}.v1463-rival-card b{font-size:13px}.v1463-rival-card small{margin-top:2px;color:#756e8c;font-size:9px}.v1463-rival-stats{display:grid!important;grid-template-columns:repeat(4,1fr);gap:6px!important;margin-top:12px}.v1463-rival-stats span{padding:8px;border:1px solid #ded6f5;border-radius:10px;background:#fff}.v1463-rival-stats small{font-size:7px;text-transform:uppercase}.v1463-rival-stats b{margin-top:3px;font-size:10px}
.v1463-rare-grid{display:grid;gap:7px}.v1463-rare-badge{display:grid;grid-template-columns:40px 1fr;align-items:center;gap:9px;min-height:56px;padding:8px 10px;border:1px solid #d9dfe4;border-radius:12px;background:#f2f4f6;filter:grayscale(.85);opacity:.55}.v1463-rare-badge.is-unlocked{border-color:#e6c96a;background:linear-gradient(145deg,#fff9df,#fff);filter:none;opacity:1}.v1463-rare-badge>span{font-size:22px;text-align:center}.v1463-rare-badge b,.v1463-rare-badge small{display:block}.v1463-rare-badge b{font-size:10px}.v1463-rare-badge small{margin-top:2px;color:#7c7c70;font-size:8px}
.v1463-clan-empty p{margin:0 0 10px;color:#6d7e8e;font-size:10px}.v1463-clan-empty form{display:grid;grid-template-columns:1fr 90px;gap:7px;margin-top:8px}.v1463-clan-empty form .v11-primary-button{grid-column:1/-1}.v1463-clan-head{display:flex;align-items:center;gap:10px;padding:11px;border-radius:13px;background:#143d63;color:#fff}.v1463-clan-head>span{display:grid;place-items:center;min-width:64px;height:42px;border-radius:10px;background:#ffcb05;color:#533f00;font-size:12px;font-weight:1000}.v1463-clan-head b,.v1463-clan-head small{display:block}.v1463-clan-head b{font-size:13px}.v1463-clan-head small{margin-top:2px;color:#c7d9e8;font-size:8px}.v1463-clan-members{display:grid;gap:5px;margin:9px 0}.v1463-clan-members a{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:7px;padding:7px 8px;border:1px solid #dde6ee;border-radius:9px;text-decoration:none;color:#23445e}.v1463-clan-members a b{font-size:9px}.v1463-clan-members a small{font-size:7px;color:#738493}.v1463-clan-board{display:grid;gap:6px}.v1463-clan-board article{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:8px;padding:8px;border:1px solid #dbe4ec;border-radius:10px;background:#fbfdff}.v1463-clan-board article>strong{font-size:12px;color:#2a75bb}.v1463-clan-board b,.v1463-clan-board small{display:block}.v1463-clan-board b{font-size:9px}.v1463-clan-board small{font-size:7px;color:#7a8791}.v1463-clan-board article>span{text-align:right}
.v1463-admin-community-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 18px}.v1463-admin-inline-form{display:grid;gap:8px}.v1463-admin-changelog-list{display:grid;gap:6px;margin-top:10px}.v1463-admin-changelog-list article{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;padding:8px 10px;border:1px solid #dbe4ea;border-radius:10px;background:#fafcff}.v1463-admin-changelog-list p{margin:0;font-size:9px;line-height:1.4}.v1463-admin-changelog-list button{border:0;background:none;color:#be3f3b;font-size:8px;font-weight:900;cursor:pointer}.v1463-admin-global-form{display:grid;gap:8px}.v1463-admin-global-form label>span{display:block;margin:0 0 4px;color:#607487;font-size:8px;font-weight:900;text-transform:uppercase}.v1463-admin-global-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}

.v11-event-toast.is-achievement{border-color:#f0ca52;background:linear-gradient(145deg,#fff8d8,#fff)}.v11-event-toast.is-achievement>span{background:#ffcb05;color:#5f4900;font-size:18px}.v11-event-toast.is-achievement b{color:#7a5a00}

@media(max-width:980px){.v1463-community-grid{grid-template-columns:1fr}.v1463-community-side{grid-template-columns:1fr 1fr}.v1463-profile-meta{grid-template-columns:1fr}.v1463-admin-community-grid{grid-template-columns:1fr}.v1463-community-hero{align-items:flex-start;flex-direction:column}.v1463-prestige-card{width:100%}}
@media(max-width:680px){.v1463-home-meta{grid-template-columns:1fr}.v1463-community-shell{padding-top:22px;padding-bottom:100px}.v1463-community-hero h1{font-size:40px}.v1463-community-side{grid-template-columns:1fr}.v1463-rival-stats{grid-template-columns:1fr 1fr}.v1463-person{grid-template-columns:8px minmax(0,1fr)}.v1463-person-actions,.v1463-person>button{grid-column:2;justify-self:start}.v1463-admin-global-row{grid-template-columns:1fr}.v1463-profile-rare-grid>article{flex-basis:190px}}
.v1463-clan-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0}.v1463-clan-stats span{padding:8px;border:1px solid #d7e2eb;border-radius:9px;background:#f9fcff;text-align:center}.v1463-clan-stats small,.v1463-clan-stats b{display:block}.v1463-clan-stats small{font-size:7px;color:#758594;text-transform:uppercase}.v1463-clan-stats b{margin-top:2px;font-size:11px;color:#204d72}.v1463-admin-changelog-list article>div{display:flex;gap:5px;justify-content:flex-end}


/* v14.64 — subtle trainer rank + Pokemon-style rare profile badges ------- */
.v1464-profile-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:3px}
.v1464-profile-topline>.v11-eyebrow{margin:0!important;flex:none}
.v1464-trainer-rank{position:relative;display:grid;grid-template-columns:22px auto;grid-template-rows:auto auto;column-gap:7px;align-items:center;min-width:132px;max-width:190px;padding:6px 10px 8px;border:1px solid #c5d9e9;border-radius:999px;background:linear-gradient(180deg,#f8fcff,#eef6fc);box-shadow:0 4px 12px rgba(25,76,119,.06);color:#173f62;overflow:hidden}
.v1464-trainer-rank>span:first-child{grid-row:1/3;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#173f62;color:#fff;font-size:12px;box-shadow:inset 0 0 0 2px rgba(255,203,5,.8)}
.v1464-trainer-rank>div{min-width:0}.v1464-trainer-rank small,.v1464-trainer-rank b,.v1464-trainer-rank em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v1464-trainer-rank small{font-size:6px!important;line-height:1.1;color:#73879a;font-weight:1000;letter-spacing:.1em;text-transform:uppercase}
.v1464-trainer-rank b{margin-top:1px;font-size:10px!important;line-height:1.05;color:#173f62}
.v1464-trainer-rank em{display:none;font-size:6px;font-style:normal;color:#7c8d9c}
.v1464-rank-progress{position:absolute!important;left:39px;right:10px;bottom:4px;display:block!important;height:2px!important;border-radius:999px!important;background:#d4e2ee!important;overflow:hidden}
.v1464-rank-progress>i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#2a75bb,#ffcb05);transition:width .3s ease}

.v1464-profile-rare{position:relative;margin:14px 0 16px;padding:17px 18px 18px;border:2px solid #173f62;border-radius:22px;background:linear-gradient(145deg,#f8fcff 0,#fff 48%,#eef7ff 100%);box-shadow:0 11px 26px rgba(22,62,96,.1),inset 0 0 0 3px rgba(255,203,5,.16);overflow:hidden}
.v1464-profile-rare::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#ef5350 0 31%,#173f62 31% 38%,#f7fbff 38% 62%,#173f62 62% 69%,#ffcb05 69% 100%)}
.v1464-profile-rare>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding-top:2px}
.v1464-profile-rare h2{margin:2px 0 0;font-size:20px;color:#123b60;letter-spacing:-.035em}
.v1464-profile-rare header p{margin:4px 0 0;color:#657b8f;font-size:9px;line-height:1.4}
.v1464-badge-case-mark{position:relative;flex:0 0 42px;width:42px;height:42px;border:4px solid #173f62;border-radius:50%;background:linear-gradient(#ef5350 0 45%,#173f62 45% 55%,#fff 55%);box-shadow:0 4px 0 #ffcb05}
.v1464-badge-case-mark::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:11px;border:3px solid #173f62;border-radius:50%;background:#fff;transform:translate(-50%,-50%)}
.v1464-profile-rare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:10px;overflow:visible;padding:0}
.v1464-rare-badge{--badge:#4b93d0;position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:11px;min-height:92px;padding:10px 28px 10px 10px;border:1px solid #bfd3e4;border-radius:17px;background:linear-gradient(135deg,#fff,#f3f9fe);box-shadow:0 6px 14px rgba(23,63,98,.07);overflow:hidden}
.v1464-rare-badge::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(var(--badge),#173f62)}
.v1464-badge-medallion{position:relative;display:grid;place-items:center;width:64px;height:64px;margin:auto;clip-path:polygon(50% 0,82% 10%,100% 38%,94% 70%,70% 96%,50% 100%,30% 96%,6% 70%,0 38%,18% 10%);background:linear-gradient(145deg,#f8fbff 0,#a9bac8 20%,var(--badge) 35%,var(--badge) 66%,#213e5b 100%);filter:drop-shadow(0 4px 2px rgba(19,51,78,.22));isolation:isolate}
.v1464-badge-medallion::before{content:"";position:absolute;inset:5px;clip-path:inherit;background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.75) 0 7%,transparent 8%),linear-gradient(145deg,color-mix(in srgb,var(--badge) 68%,white),var(--badge) 54%,#173f62);z-index:-1}
.v1464-badge-medallion::after{content:"";position:absolute;left:10px;right:10px;top:50%;height:3px;border-radius:999px;background:rgba(20,48,73,.6);box-shadow:0 -1px 0 rgba(255,255,255,.3)}
.v1464-badge-medallion>i{position:relative;z-index:2;display:grid;place-items:center;width:35px;height:35px;border:3px solid rgba(255,255,255,.78);border-radius:50%;background:rgba(14,43,68,.72);font-style:normal;font-size:18px;line-height:1;box-shadow:0 0 0 3px rgba(18,58,91,.36),inset 0 1px 0 rgba(255,255,255,.28)}
.v1464-badge-copy{min-width:0}.v1464-badge-copy>span{display:block;color:var(--badge);font-size:6px;font-weight:1000;letter-spacing:.13em;text-transform:uppercase}.v1464-badge-copy>b{display:block;margin-top:3px;color:#173f62;font-size:11px;line-height:1.15}.v1464-badge-copy>small{display:block;margin-top:4px;color:#65788a;font-size:8px;line-height:1.35}
.v1464-badge-spark{position:absolute;right:9px;top:8px;color:#ffcb05;font-size:14px;font-style:normal;text-shadow:0 1px 0 #a87800}
.v1464-rare-badge.is-flawless_champion{--badge:#3bbad2}.v1464-rare-badge.is-one_hp_legend{--badge:#ef5350}.v1464-rare-badge.is-no_heal_champion{--badge:#4daf7c}.v1464-rare-badge.is-solo_champion{--badge:#f0b827}.v1464-rare-badge.is-underdog_champion{--badge:#8a6fd1}.v1464-rare-badge.is-elite_immortal{--badge:#4777c7}.v1464-rare-badge.is-perfect_encounters{--badge:#e88235}.v1464-rare-badge.is-speed_crown{--badge:#7895aa}
.v1464-rare-empty{grid-column:1/-1;display:flex;align-items:center;gap:11px;padding:14px;border:1px dashed #aebfd0;border-radius:15px;background:#f5f9fc;color:#6d8193}.v1464-rare-empty>span{display:grid;place-items:center;width:42px;height:42px;border:2px solid #b8c9d7;border-radius:50%;font-size:20px}.v1464-rare-empty b,.v1464-rare-empty small{display:block}.v1464-rare-empty b{font-size:10px;color:#375872}.v1464-rare-empty small{margin-top:3px;font-size:8px;line-height:1.4}
@media(max-width:760px){.v1464-profile-topline{align-items:flex-start;flex-direction:column;gap:7px}.v1464-trainer-rank{min-width:128px;max-width:170px}.v1464-profile-rare{padding:15px 13px 14px;border-radius:18px}.v1464-profile-rare-grid{grid-template-columns:1fr}.v1464-profile-rare>header{align-items:flex-start}.v1464-badge-case-mark{flex-basis:36px;width:36px;height:36px}.v1464-rare-badge{grid-template-columns:62px minmax(0,1fr);min-height:82px;padding-left:8px}.v1464-badge-medallion{width:56px;height:56px}.v1464-badge-medallion>i{width:31px;height:31px;font-size:16px}}


/* v14.65 — profile rank beautify + remove top profile utility buttons ---- */
.v14-profile-hero>.v11-profile-actions{display:none!important}
.v1464-profile-topline{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:14px!important;
  margin-bottom:6px!important;
}
.v1464-trainer-rank{
  position:relative;
  grid-template-columns:28px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:9px!important;
  min-width:178px!important;
  max-width:240px!important;
  padding:9px 14px 10px 11px!important;
  border:1px solid #bad0e3!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5fbff 55%,#edf6ff 100%)!important;
  box-shadow:0 10px 24px rgba(22,62,96,.08), inset 0 1px 0 rgba(255,255,255,.9)!important;
  overflow:hidden!important;
}
.v1464-trainer-rank::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 2px rgba(255,203,5,.14);
  pointer-events:none;
}
.v1464-trainer-rank::after{
  content:"";
  position:absolute;
  right:-16px;
  top:-14px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), rgba(255,255,255,.18) 45%, rgba(42,117,187,.12) 46%, rgba(42,117,187,0) 70%);
  opacity:.9;
  pointer-events:none;
}
.v1464-trainer-rank>span:first-child{
  grid-row:1/3!important;
  width:28px!important;
  height:28px!important;
  font-size:14px!important;
  background:linear-gradient(180deg,#204b75,#173f62)!important;
  box-shadow:inset 0 0 0 2px rgba(255,203,5,.92), 0 4px 10px rgba(23,63,98,.18)!important;
}
.v1464-trainer-rank small{
  font-size:7px!important;
  line-height:1.1!important;
  color:#688097!important;
  letter-spacing:.14em!important;
}
.v1464-trainer-rank b{
  margin-top:0!important;
  font-size:14px!important;
  line-height:1.05!important;
  letter-spacing:-.02em!important;
  color:#133d63!important;
}
.v1464-trainer-rank em{
  display:block!important;
  margin-top:2px!important;
  font-size:9px!important;
  line-height:1.25!important;
  color:#5e7387!important;
}
.v1464-rank-progress{
  left:48px!important;
  right:14px!important;
  bottom:8px!important;
  height:4px!important;
  background:#d9e6f1!important;
  box-shadow:inset 0 1px 2px rgba(20,53,83,.08)!important;
}
.v1464-rank-progress>i{background:linear-gradient(90deg,#2a75bb 0%,#4aa1ff 55%,#ffcb05 100%)!important}
@media (max-width:980px){
  .v1464-profile-topline{gap:10px!important;flex-wrap:wrap!important}
}
@media (max-width:760px){
  .v1464-profile-topline{align-items:flex-start!important;flex-direction:column!important;gap:8px!important}
  .v1464-trainer-rank{min-width:166px!important;max-width:100%!important}
}


/* v14.66 — subtle rank button + popup details ---------------------------- */
.v1466-rank-inline{
  display:inline-grid;
  grid-template-columns:26px minmax(0,1fr) 10px;
  align-items:center;
  gap:8px;
  width:auto;
  max-width:220px;
  margin-top:10px;
  padding:7px 10px;
  border:1px solid #cfe0ed;
  border-radius:999px;
  background:linear-gradient(180deg,#fff,#f5fbff);
  color:#173f62;
  box-shadow:0 6px 16px rgba(20,58,92,.06);
  cursor:pointer;
  text-align:left;
}
.v1466-rank-inline>span{
  display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:linear-gradient(180deg,#1f4971,#173f62);color:#fff;font-size:13px;
  box-shadow:inset 0 0 0 2px rgba(255,203,5,.92);
}
.v1466-rank-inline small,.v1466-rank-inline b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v1466-rank-inline small{font-size:7px;color:#6f8599;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}
.v1466-rank-inline b{font-size:11px;line-height:1.1;color:#133d63}
.v1466-rank-inline>i{font-style:normal;font-size:15px;color:#7b91a4}
.v1466-rank-inline:hover{border-color:#98bfdc;transform:translateY(-1px)}
.v1466-rank-dialog{width:min(560px,calc(100% - 24px))}
.v1466-rank-summary{display:grid;grid-template-columns:68px minmax(0,1fr);gap:14px;align-items:center;margin:16px 0 10px;padding:16px;border:2px solid #c8dced;border-radius:18px;background:linear-gradient(145deg,#fff,#f4fbff)}
.v1466-rank-summary-icon{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:linear-gradient(180deg,#204b75,#173f62);color:#fff;font-size:30px;box-shadow:inset 0 0 0 4px rgba(255,203,5,.92),0 10px 24px rgba(19,61,99,.14)}
.v1466-rank-summary-copy small,.v1466-rank-summary-copy b,.v1466-rank-summary-copy em{display:block}
.v1466-rank-summary-copy small{font-size:10px;color:#6f8599;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}
.v1466-rank-summary-copy b{margin-top:4px;font-size:28px;color:#123d62;letter-spacing:-.04em}
.v1466-rank-summary-copy em{margin-top:4px;font-style:normal;font-size:12px;color:#567086}
.v1466-rank-progress-wrap{display:flex;align-items:center;gap:9px;margin-top:10px}.v1466-rank-progress{position:static!important;flex:1;height:7px!important}.v1466-rank-progress-wrap strong{font-size:11px;color:#173f62}
.v1466-rank-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 14px}
.v1466-rank-dialog-body{display:grid;gap:12px}
.v1466-rank-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.v1466-rank-stats article{padding:11px 12px;border:1px solid #d3dfeb;border-radius:13px;background:#f8fbfe}.v1466-rank-stats span,.v1466-rank-stats b{display:block}.v1466-rank-stats span{font-size:8px;color:#73889a;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}.v1466-rank-stats b{margin-top:5px;font-size:16px;color:#143f66}
.v1466-rank-ladder{padding:12px;border:1px solid #d3dfeb;border-radius:15px;background:#fff}.v1466-rank-ladder>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.v1466-rank-ladder>header span{font-size:11px;font-weight:1000;color:#173f62}.v1466-rank-ladder>header small{font-size:9px;color:#768a9b}
#profilePrestigeLadder{display:grid;gap:7px}
.v1466-rank-stage{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #d7e2ec;border-radius:12px;background:#f5f8fb;color:#728696;filter:grayscale(.18)}
.v1466-rank-stage>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dde6ee;font-size:16px}.v1466-rank-stage b,.v1466-rank-stage small{display:block}.v1466-rank-stage b{font-size:11px;color:#35536d}.v1466-rank-stage small{margin-top:2px;font-size:8px}.v1466-rank-stage i{font-style:normal;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.v1466-rank-stage.is-unlocked{background:linear-gradient(145deg,#fff8de,#fff);border-color:#e7d08a;color:#775c12}.v1466-rank-stage.is-unlocked>span{background:linear-gradient(180deg,#204b75,#173f62);color:#fff;box-shadow:inset 0 0 0 2px rgba(255,203,5,.9)}.v1466-rank-stage.is-unlocked b{color:#624912}
.v1466-rank-stage.is-current{border-color:#2a75bb;box-shadow:inset 0 0 0 1px #2a75bb,0 6px 14px rgba(42,117,187,.08)}
.v1466-rank-hint{display:block;color:#73889a;font-size:9px;line-height:1.45}
@media (max-width:760px){
  .v1466-rank-inline{max-width:100%}
  .v1466-rank-dialog-actions{grid-template-columns:1fr}
  .v1466-rank-stats{grid-template-columns:1fr}
  .v1466-rank-summary{grid-template-columns:56px minmax(0,1fr);padding:13px}
  .v1466-rank-summary-icon{width:56px;height:56px;font-size:24px}
  .v1466-rank-summary-copy b{font-size:24px}
  .v1466-rank-stage{grid-template-columns:32px minmax(0,1fr)}
  .v1466-rank-stage i{grid-column:2;justify-self:start}
}


/* v14.67 — stable avatar selection + locked-avatar unlock info ----------- */
.v149-avatar-picker .v14-avatar-choice.is-locked{
  opacity:.72!important;
  cursor:help!important;
  filter:grayscale(.45)!important;
  border-style:dashed!important;
  background:linear-gradient(180deg,#f7f9fb,#eef2f5)!important;
}
.v149-avatar-picker .v14-avatar-choice.is-locked:hover{
  opacity:.9!important;
  border-color:#6c91b1!important;
  background:#f4f9fd!important;
}
.v149-avatar-picker .v14-avatar-choice.is-locked>b{
  top:6px!important;right:7px!important;font-size:12px!important;
}
.v149-avatar-picker .v14-avatar-choice.is-locked>em{
  position:absolute;right:6px;bottom:5px;padding:2px 5px;border-radius:999px;
  background:#173f62;color:#fff;font-size:7px;font-style:normal;font-weight:1000;letter-spacing:.06em;text-transform:uppercase;
}
.v149-avatar-picker .v14-avatar-choice.is-selected{
  border-color:#2a75bb!important;
  box-shadow:inset 0 0 0 2px #2a75bb,0 7px 16px rgba(42,117,187,.13)!important;
  background:linear-gradient(180deg,#f3faff,#fff)!important;
}
.v1467-avatar-unlock-dialog{width:min(470px,calc(100% - 24px))!important;border-top:7px solid #ffcb05!important}
.v1467-avatar-unlock-hero{display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;margin:10px 0 16px}
.v1467-avatar-unlock-hero img{width:92px;height:92px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 9px 8px rgba(17,56,88,.14))}
.v1467-avatar-unlock-hero small{display:block;color:#71879a;font-size:9px;font-weight:1000;letter-spacing:.1em;text-transform:uppercase}
.v1467-avatar-unlock-hero h2{margin:4px 0 0!important;font-size:30px!important}
.v1467-avatar-unlock-requirement{padding:15px;border:2px solid #c8ddeb;border-radius:15px;background:linear-gradient(145deg,#f7fbff,#fff)}
.v1467-avatar-unlock-requirement>span,.v1467-avatar-unlock-requirement>b{display:block}.v1467-avatar-unlock-requirement>span{font-size:9px;color:#6f8497;font-weight:1000;letter-spacing:.1em;text-transform:uppercase}.v1467-avatar-unlock-requirement>b{margin-top:5px;font-size:15px;color:#163f63}
.v1467-avatar-unlock-progress{display:flex;align-items:center;gap:10px;margin-top:12px}.v1467-avatar-unlock-progress>i{display:block;flex:1;height:8px;border-radius:999px;background:#dce7ef;overflow:hidden}.v1467-avatar-unlock-progress>i>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#2a75bb,#ffcb05);transition:width .25s ease}.v1467-avatar-unlock-progress>strong{font-size:10px;color:#173f62;white-space:nowrap}
.v1467-avatar-unlock-dialog>p{margin:13px 0 15px!important}.v1467-avatar-unlock-dialog>.v11-primary-button{width:100%;min-height:45px}
@media(max-width:560px){.v1467-avatar-unlock-hero{grid-template-columns:72px minmax(0,1fr)}.v1467-avatar-unlock-hero img{width:72px;height:72px}.v1467-avatar-unlock-hero h2{font-size:25px!important}}


/* v14.68 — Alpha identity, Pokemon-like awards, community and guild league */
:root{
  --pk-blue:#174f8c;
  --pk-blue-deep:#0d3157;
  --pk-yellow:#ffcb05;
  --pk-red:#e94444;
  --pk-sky:#eaf5ff;
}
.v11-brand{position:relative}
.v11-brand::after{
  content:"ALPHA";
  align-self:flex-start;
  margin:-15px 0 0 -5px;
  padding:3px 6px 2px;
  border:1px solid #9b260f;
  border-radius:6px;
  background:linear-gradient(180deg,#ff6c4d,#d93622);
  color:#fff;
  box-shadow:0 2px 0 #8d2515;
  font-size:7px;
  font-weight:1000;
  letter-spacing:.12em;
  line-height:1;
}
.v1468-alpha-notice{
  display:flex;align-items:center;gap:11px;width:min(100%,610px);margin:0 0 18px;padding:10px 13px;
  border:1px solid #efc74d;border-radius:14px;background:linear-gradient(135deg,#fff9d9,#fffef5);box-shadow:0 8px 20px rgba(122,89,4,.08)
}
.v1468-alpha-notice>span{display:grid;place-items:center;min-width:58px;height:30px;border:2px solid var(--pk-blue-deep);border-radius:9px;background:var(--pk-yellow);color:var(--pk-blue-deep);font-size:10px;font-weight:1000;letter-spacing:.1em;box-shadow:0 3px 0 #c89a00}
.v1468-alpha-notice b,.v1468-alpha-notice small{display:block}.v1468-alpha-notice b{font-size:11px;color:#513d05}.v1468-alpha-notice small{margin-top:2px;color:#7a661f;font-size:9px;line-height:1.35}

/* Community navigation feels like a compact game menu. */
.v1468-community-tabs,.v1468-board-scope{display:flex;gap:7px;margin:18px 0 14px;padding:5px;border:1px solid #bdd1e2;border-radius:16px;background:linear-gradient(180deg,#edf6fd,#e2eff9);box-shadow:inset 0 1px 0 #fff}
.v1468-community-tabs button,.v1468-board-scope button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:0 15px;border:0;border-radius:11px;background:transparent;color:#55718a;font-size:11px;font-weight:900;cursor:pointer}
.v1468-community-tabs button span,.v1468-board-scope button span{color:#2a75bb}
.v1468-community-tabs button.is-active,.v1468-board-scope button.is-active{background:linear-gradient(180deg,#224f79,#123a60);color:#fff;box-shadow:0 4px 0 #082641,0 8px 16px rgba(17,54,86,.16)}
.v1468-community-tabs button.is-active span,.v1468-board-scope button.is-active span{color:var(--pk-yellow)}
.v1468-board-scope{width:max-content;margin:4px 0 12px}.v1468-board-scope button{min-width:140px}
.v1468-board-link{color:#2a75bb!important;font-size:9px;font-weight:900;text-decoration:none;white-space:nowrap}

.v1463-community-page{background:linear-gradient(180deg,#eaf4fc 0,#f7f4ec 430px)}
.v1463-community-hero{padding:34px 34px!important;border:2px solid #173f62!important;border-radius:24px!important;background:radial-gradient(circle at 90% 20%,rgba(255,203,5,.25),transparent 24%),linear-gradient(135deg,#10385d,#1d5d94)!important;color:#fff;box-shadow:0 15px 38px rgba(11,47,79,.2)!important}
.v1463-community-hero h1{color:#fff!important}.v1463-community-hero p{color:#d8e9f6!important}.v1463-community-hero .v11-eyebrow{color:#ffdf65!important}.v1463-community-hero .v11-eyebrow i{background:#ffcb05!important;box-shadow:0 0 0 5px rgba(255,203,5,.16)!important}
.v1463-prestige-card{border:1px solid rgba(255,255,255,.28)!important;background:rgba(255,255,255,.12)!important;color:#fff!important;backdrop-filter:blur(10px)}
.v1463-prestige-card small,.v1463-prestige-card em{color:#d4e5f3!important}
.v1463-community-grid .v11-data-card{border-color:#c9dbe9;box-shadow:0 8px 24px rgba(18,60,94,.06)}
.v1463-person{min-height:66px!important;padding:10px 11px!important;border-color:#d2e0eb!important;border-radius:14px!important;background:linear-gradient(180deg,#fff,#f7fbfe)!important}
.v1463-person::before{display:none!important}
.v1463-person{grid-template-columns:8px 36px minmax(0,1fr) auto!important}.v1463-person>.v1463-online-dot{grid-column:1}.v1463-person>div:not(.v1463-person-actions){grid-column:3}.v1463-person-actions{grid-column:4}
.v14691-friend-avatar{grid-column:2;display:grid!important;place-items:center;width:42px;height:42px;border:2px solid #173f62;border-bottom:4px solid #ffcb05;border-radius:13px!important;background:radial-gradient(circle at 50% 72%,#fff 0 28%,#ddecf7 29% 52%,#b9d3e7 53%);overflow:hidden;box-shadow:0 5px 12px rgba(17,55,86,.13)}
.v14691-friend-avatar img{display:block;width:38px;height:38px;object-fit:contain;image-rendering:auto;transition:transform .16s ease}.v14691-friend-avatar:hover img{transform:scale(1.1)}
.v1463-person b{font-size:11px!important}.v1463-person small{font-size:9px!important}.v1463-person-actions button,.v1463-person>button{min-height:34px!important;padding:0 10px!important;border-radius:9px!important;font-size:9px!important}
.v1463-online-dot{box-shadow:0 0 0 3px #fff}.v1463-online-dot.is-online{background:#30ba77!important;box-shadow:0 0 0 3px #dff7ec!important}

/* Gym-badge treatment for both common and rare achievements. */
.v1468-gym-badge{grid-template-columns:66px minmax(0,1fr)!important;min-height:96px!important;padding:11px!important;border:1px solid #cbd7df!important;border-radius:17px!important;background:linear-gradient(145deg,#eef2f5,#fff)!important;filter:grayscale(1)!important;opacity:.62!important}
.v1468-gym-badge.is-unlocked{border-color:#e5bd3f!important;background:linear-gradient(145deg,#fff8d4,#fff)!important;filter:none!important;opacity:1!important;box-shadow:0 8px 20px rgba(108,78,0,.1)!important}
.v1468-badge-gem{position:relative;display:grid!important;place-items:center;width:58px;height:58px!important;clip-path:polygon(50% 0,83% 12%,100% 42%,90% 78%,50% 100%,10% 78%,0 42%,17% 12%);border:0!important;border-radius:0!important;background:linear-gradient(145deg,#dce8f1,#5f7890 38%,#173f62 70%,#0a2742)!important;filter:drop-shadow(0 5px 3px rgba(17,48,75,.25))}
.is-unlocked>.v1468-badge-gem{background:radial-gradient(circle at 32% 24%,#fff 0 5%,transparent 6%),linear-gradient(145deg,#fff36c,#ffcb05 31%,#e94444 70%,#9f2020)!important}
.v1468-badge-gem>i{display:grid;place-items:center;width:32px;height:32px;border:3px solid rgba(255,255,255,.78);border-radius:50%;background:rgba(12,45,72,.72);font-style:normal;font-size:17px}
.v1468-gym-badge b{font-size:11px!important;color:#183f61}.v1468-gym-badge small{font-size:8px!important;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.v1468-gym-badge em{display:block;margin-top:4px;color:#6c7f90;font-size:8px;line-height:1.35;font-style:normal}
.v11-achievement-grid article{position:relative;overflow:hidden;border-width:2px!important;border-radius:16px!important;background:linear-gradient(145deg,#f2f5f7,#fff)!important}
.v11-achievement-grid article::after{content:"";position:absolute;right:-17px;top:-17px;width:46px;height:46px;border:8px solid rgba(23,63,98,.06);border-radius:50%}
.v11-achievement-grid article>span{flex-basis:45px!important;width:45px!important;height:45px!important;clip-path:polygon(50% 0,88% 18%,100% 58%,72% 100%,28% 100%,0 58%,12% 18%);border-radius:0!important;background:linear-gradient(145deg,#b9c7d2,#5e7283)!important;color:#fff!important;font-size:16px!important;box-shadow:none!important}
.v11-achievement-grid article.is-unlocked{border-color:#e5bd3f!important;background:linear-gradient(145deg,#fff8d9,#fff)!important}
.v11-achievement-grid article.is-unlocked>span{background:linear-gradient(145deg,#ffea62,#e94444 68%,#9c2020)!important;text-shadow:0 1px 0 #7b1616}
.achievement-steps i{border-radius:999px!important;padding:4px 7px!important;background:#edf1f4!important;font-size:8px!important}.achievement-steps i.done{background:#173f62!important;color:#fff!important;box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}

/* Guild HQ and ranking. */
.v1468-guild-empty-mark{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 10px;clip-path:polygon(50% 0,90% 18%,100% 65%,50% 100%,0 65%,10% 18%);background:linear-gradient(145deg,#ffdc45,#e94343 68%);color:#fff;font-size:24px;text-shadow:0 2px 0 #7c1e1e}
.v1463-clan-empty p{font-size:10px!important;line-height:1.5;text-align:center}.v1463-clan-empty label>span{display:block;margin-bottom:5px;color:#60768a;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.v1463-clan-empty form{grid-template-columns:minmax(0,1fr) 92px!important}.v1463-clan-empty form label{min-width:0}.v1463-clan-empty form .v11-primary-button{min-height:46px!important}
.v1468-guild-divider{display:flex;align-items:center;gap:8px;margin:13px 0 5px;color:#8495a4;font-size:8px;font-weight:900;text-transform:uppercase}.v1468-guild-divider::before,.v1468-guild-divider::after{content:"";height:1px;flex:1;background:#d7e2ea}
.v1463-clan-head{position:relative;overflow:hidden;min-height:82px!important;border:2px solid #0b2d4d;border-radius:17px!important;background:radial-gradient(circle at 86% 20%,rgba(255,203,5,.35),transparent 28%),linear-gradient(135deg,#123b62,#2677b5)!important;box-shadow:0 7px 0 #ffcb05}
.v1463-clan-head>span{min-width:66px!important;height:58px!important;clip-path:polygon(50% 0,90% 18%,100% 65%,50% 100%,0 65%,10% 18%);border-radius:0!important;background:linear-gradient(145deg,#fff36a,#ffcb05 45%,#e94343 46%,#9b2222)!important;color:#fff!important;text-shadow:0 2px 0 #812020;font-size:13px!important}
.v1463-clan-head b{font-size:16px!important}.v1463-clan-head small{color:#ffdc54!important;font-size:7px!important;font-weight:1000;letter-spacing:.14em}.v1463-clan-head em{display:block;margin-top:3px;color:#d2e5f4;font-size:9px;font-style:normal}
.v1468-guild-score{display:grid;grid-template-columns:1fr auto;align-items:end;margin:13px 0 7px;padding:12px 14px;border:1px solid #d5e3ee;border-radius:13px;background:#f5faff}.v1468-guild-score small{grid-column:1;color:#6a8093;font-size:8px;font-weight:1000;text-transform:uppercase}.v1468-guild-score b{grid-column:1;margin-top:2px;color:#143e63;font-size:24px}.v1468-guild-score span{grid-column:2;grid-row:1/3;color:#718699;font-size:8px}
.v1463-clan-stats small{font-size:8px!important}.v1463-clan-stats b{font-size:14px!important}.v1463-clan-members a{min-height:42px;border-radius:11px!important}.v1463-clan-members a b{font-size:10px!important}.v1463-clan-members a small{font-size:8px!important}
.v1463-clan-board article{min-height:55px!important;border-radius:12px!important;background:linear-gradient(180deg,#fff,#f5faff)!important}.v1463-clan-board article>strong{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#173f62;color:#fff!important;font-size:10px!important}.v1463-clan-board article:nth-child(1)>strong{background:#ffcb05;color:#493800!important}.v1463-clan-board b{font-size:10px!important}.v1463-clan-board small{font-size:8px!important}
.v1468-guild-shield{border-radius:10px 10px 17px 17px!important;background:linear-gradient(145deg,#ffdd4f,#e94444 62%,#942222)!important;color:#fff!important;text-shadow:0 1px 0 #6b1919;font-size:8px!important}
.v11-board-name>span{min-width:0}.v11-board-name em{display:block;margin-top:3px;color:#738596;font-size:9px;font-style:normal}.v1468-guild-row{background:linear-gradient(90deg,rgba(234,245,255,.55),#fff)!important}
.v11-board-note{padding:10px 12px;border:1px solid #d4e2ec;border-radius:11px;background:#f6fbff;font-size:10px!important;line-height:1.45}

.v1468-community-toast{position:fixed;z-index:100;right:18px;bottom:18px;max-width:min(360px,calc(100% - 28px));padding:12px 15px;border:1px solid #aac2d4;border-radius:13px;background:#173f62;color:#fff;box-shadow:0 15px 38px rgba(4,24,41,.25);font-size:11px;font-weight:850;opacity:0;pointer-events:none;transform:translateY(12px);transition:.18s ease}.v1468-community-toast.is-visible{opacity:1;transform:none}.v1468-community-toast.is-success{border-color:#68c795;background:#176747}.v1468-community-toast.is-error{border-color:#ff9999;background:#9d2c2c}

/* Community tab panels must switch on every viewport, not only on phones. */
body[data-community-view] [data-community-panel]{display:none!important}
body[data-community-view="friends"] [data-community-panel="friends"],body[data-community-view="rival"] [data-community-panel="rival"],body[data-community-view="guild"] [data-community-panel="guild"],body[data-community-view="awards"] [data-community-panel="awards"]{display:block!important}
body[data-community-view] .v1463-community-grid{grid-template-columns:1fr!important}
body[data-community-view="friends"] .v1463-community-side,body[data-community-view="rival"] .v1463-community-side,body[data-community-view="guild"] .v1463-community-main,body[data-community-view="awards"] .v1463-community-main{display:none!important}
body[data-community-view="friends"] .v1463-community-main,body[data-community-view="rival"] .v1463-community-main{display:grid!important}
body[data-community-view="guild"] .v1463-community-side{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body[data-community-view="awards"] .v1463-community-side{display:block!important}

/* Stop iOS/Android callouts and accidental selection on game controls. */
.v154-touch-controller,.v154-touch-controller *{-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-tap-highlight-color:transparent!important}
.v154-touch-controller button{touch-action:none!important;appearance:none!important;-webkit-appearance:none!important;-webkit-focus-ring-color:transparent!important}
.v154-touch-controller button:focus:not(:focus-visible){outline:0!important}
@media (pointer:coarse), (max-width:920px){
  .v11-dpad{width:156px!important;height:156px!important}
  .v154-dpad-center{left:52px!important;top:52px!important;width:52px!important;height:52px!important}
  .v11-dpad button{width:54px!important;height:56px!important;font-size:17px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:51px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:50px!important}
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{grid-template-columns:minmax(156px,1fr) minmax(84px,.66fr) minmax(136px,1fr);grid-template-rows:34px 160px;min-height:216px!important}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:560px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{grid-template-columns:136px minmax(0,1fr) 118px!important}
  .v11-dpad{width:116px!important;height:116px!important;opacity:.9!important}
  .v154-dpad-center{left:39px!important;top:39px!important;width:38px!important;height:38px!important}
  .v11-dpad button{width:41px!important;height:42px!important;font-size:13px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:38px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:37px!important}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:400px){
  .v11-player-card.is-local>.v11-touch-controls.v154-touch-controller{grid-template-columns:120px minmax(0,1fr) 100px!important}
  .v11-dpad{width:104px!important;height:104px!important}
  .v154-dpad-center{left:35px!important;top:35px!important;width:34px!important;height:34px!important}
  .v11-dpad button{width:37px!important;height:38px!important;font-size:12px!important}
  .v11-dpad button[data-input="up"],.v11-dpad button[data-input="down"]{left:34px!important}
  .v11-dpad button[data-input="left"],.v11-dpad button[data-input="right"]{top:33px!important}
}
@media(max-width:680px){
  .v11-brand::after{margin:-12px 0 0 -4px;font-size:6px}
  .v1468-alpha-notice{align-items:flex-start}.v1468-alpha-notice>span{min-width:52px}
  .v1468-community-tabs{position:sticky;z-index:5;top:5px;overflow:auto;padding:5px}.v1468-community-tabs button{flex:1 0 auto;min-width:88px;padding:0 10px}
  body[data-community-view="guild"] .v1463-community-side{grid-template-columns:1fr}
  .v1463-community-hero{padding:24px 20px!important}.v1463-community-hero h1{font-size:38px!important}
  .v1463-person{grid-template-columns:8px 44px minmax(0,1fr)!important}.v1463-person-actions,.v1463-person>button{grid-column:3!important}
  .v1468-board-scope{width:100%}.v1468-board-scope button{flex:1;min-width:0}
  .v11-board-card>header,.v11-board-rows article{grid-template-columns:48px minmax(0,1fr) 92px!important}.v11-board-name em{font-size:8px}.v11-board-rows article{padding-left:10px!important;padding-right:10px!important}
  .v1468-community-toast{right:14px;bottom:88px}
}

/* v14.74 — final Room contrast lock; intentionally last in this stylesheet. */
body.v11-room-page .v11-tracker :is(h1,h2,h3,b,strong){color:#143a5d!important;opacity:1!important}
body.v11-room-page .v11-tracker :is(.v11-kicker,small){color:#496984!important;opacity:1!important}
body.v11-room-page .v11-tracker-card header div h2,
body.v11-room-page .v11-log-card summary b,
body.v11-room-page #localTrainerName,
body.v11-room-page .v11-route-row b{color:#143a5d!important;text-shadow:none!important;opacity:1!important}
body.v11-room-page .v11-route-row>strong{color:#365b79!important;opacity:1!important}
body.v11-room-page .v11-player-card>header :is(b,small){color:#274d6d!important;opacity:1!important}
body.v11-room-page .v11-system-line :is(b,strong){color:#143a5d!important;opacity:1!important}
body.v11-room-page .v11-system-line small{color:#526f89!important;opacity:1!important}
/* v14.80 · recovery, mobile room focus, spectators and diagnostics */
.v149-room-preparation{display:grid;gap:7px;margin:0 0 12px;padding:12px 15px;border:1px solid #8bb4d7;border-radius:14px;background:linear-gradient(135deg,#f1f8ff,#fffdf3);color:#173b5f;box-shadow:0 8px 22px rgba(23,61,95,.08)}
.v149-preparation-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.v149-preparation-heading span{color:#2f73aa;font:900 11px ui-monospace,monospace}.v149-preparation-track{height:9px;overflow:hidden;border-radius:999px;background:#d8e7f3}.v149-preparation-track i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2b82c4,#44bd86,#f2c433);transition:width .35s ease}.v149-room-preparation small{color:#58728a;font-size:10px}
.v149-audio-action{min-width:94px}.v149-settings-actions{flex-wrap:wrap}
.v22-delete-user{display:block;margin-top:5px;padding:4px 7px;border:1px solid #e3a7a1;border-radius:7px;background:#fff3f1;color:#a32f2c;font:800 9px system-ui;cursor:pointer}.v22-delete-user:hover{background:#d84943;color:#fff}.v22-delete-user:disabled{opacity:.55;cursor:wait}.v22-current-user{display:block;margin-top:5px;color:#8092a1;font-size:9px}
#clanBadgeForm input[type=file]{width:100%;padding:10px;border:1px dashed #7fa9ca;border-radius:12px;background:linear-gradient(135deg,#f2f9ff,#fffdf3);color:#315b7d;font-size:11px;cursor:pointer}#clanBadgeForm input[type=file]::file-selector-button{margin-right:10px;padding:8px 11px;border:0;border-radius:9px;background:#174f8c;color:#fff;font:800 10px system-ui;cursor:pointer}#clanBadgeForm input[type=file]::file-selector-button:hover{background:#286eab}
.v11-nav>.v149-account-cluster{display:flex;align-items:center;justify-self:end;gap:8px}.v149-account-cluster>.v11-account-link{min-width:138px;padding:9px 12px;border:1px solid rgba(139,190,225,.45);border-radius:14px;background:linear-gradient(145deg,#214f78,#143654);color:#fff!important;box-shadow:0 5px 0 rgba(9,31,51,.28);text-decoration:none}.v149-account-cluster>.v11-account-link:hover,.v149-account-cluster>.v11-account-link:focus-visible{transform:translateY(-1px);border-color:#ffdc54;background:linear-gradient(145deg,#2c6b9d,#174267)}.v149-session-actions{display:flex;align-items:center;gap:6px}.v149-session-actions .v149-nav-action{min-height:42px;padding:0 12px;border:1px solid rgba(159,201,229,.4);border-radius:12px;background:#1d476d;color:#fff!important;box-shadow:0 4px 0 rgba(8,28,47,.25)}.v149-session-actions .v149-nav-action.is-admin{background:linear-gradient(145deg,#9c7418,#624b13);border-color:#f2cf62}.v149-session-actions .v149-nav-action.is-logout{background:linear-gradient(145deg,#aa4649,#722f3b);border-color:#f09a91}.v149-session-actions .v149-nav-action:hover,.v149-session-actions .v149-nav-action:focus-visible{transform:translateY(-1px);filter:brightness(1.12)}
@media(max-width:680px){.v11-nav>.v149-account-cluster{gap:5px}.v149-account-cluster>.v11-account-link{min-width:46px;width:46px;height:44px;padding:0!important;border-radius:13px;display:grid;place-items:center}.v149-account-cluster>.v11-account-link b,.v149-account-cluster>.v11-account-link small{display:none!important}.v149-account-cluster>.v11-account-link .v149-nav-user-icon{grid-row:auto!important;margin:auto}.v149-session-actions{gap:5px}.v149-session-actions .v149-nav-action{width:43px;min-height:42px;padding:0;display:grid;place-items:center}.v149-session-actions .v149-nav-action b{display:none}.v149-session-actions .v149-nav-action span{font-size:17px}}
@media(max-width:760px){.v11-room-shell{grid-template-columns:1fr!important}}
.v1480-guild-goal{margin:12px 0;padding:14px;border:2px solid #f0c51b;border-radius:16px;background:linear-gradient(135deg,#fff9dd,#f1f8ff)}.v1480-guild-goal header{display:flex;justify-content:space-between;color:#173251}.v1480-guild-goal>div{height:12px;margin:10px 0 7px;border-radius:999px;background:#cfdfed;overflow:hidden}.v1480-guild-goal>div i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ef3f45,#ffd11a)}.v1480-guild-goal small{color:#516b84}.v1480-member-tools{display:flex;gap:6px}.v1480-guild-activity{margin:12px 0;border:1px solid #c5d8e9;border-radius:14px;padding:12px}.v1480-guild-activity summary{font-weight:900;color:#173251;cursor:pointer}.v1480-guild-activity ul{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}.v1480-guild-activity li{display:flex;justify-content:space-between;gap:10px;padding:8px;border-radius:9px;background:#eef5fb;color:#385777;font-size:12px}.v1480-achievement-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.v1480-achievement-title em{font-style:normal;font-size:10px;font-weight:1000;letter-spacing:.08em;padding:4px 7px;border-radius:999px;background:#dce7f1;color:#294d70}.is-rarity-selten .v1480-achievement-title em{background:#d8f1ff;color:#00689b}.is-rarity-episch .v1480-achievement-title em{background:#efe0ff;color:#7131a5}.is-rarity-legendär .v1480-achievement-title em{background:#fff0a8;color:#7b5700}.v1480-unlocked-date{display:block;margin-top:8px;color:#3d765d!important}.v1480-diagnostics-list{display:grid;gap:10px}.v1480-diagnostics-list article{display:flex;gap:12px;align-items:flex-start;border:1px solid #cbdbea;border-left:6px solid #4e82b3;border-radius:13px;padding:13px;background:#f7fbff}.v1480-diagnostics-list article.is-danger{border-left-color:#dc3e43;background:#fff1f1}.v1480-diagnostics-list article.is-warning{border-left-color:#e5a817;background:#fff9e8}.v1480-diagnostics-list article>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#173f6d;color:#fff;font-weight:1000}.v1480-diagnostics-list article div{display:grid;gap:3px}.v1480-diagnostics-list article small{color:#465f79}.v1480-diagnostics-list article em{font-style:normal;color:#75889a;font-size:11px}
.v1480-room-mobile-tabs{display:none}.v1480-duplicate-notice{margin:10px 0;padding:13px 16px;border:2px solid #efb529;border-radius:16px;background:#fff6d9;color:#183150;align-items:center;gap:12px}.v1480-duplicate-notice:not(.hidden){display:flex}.v1480-duplicate-notice b{font-size:15px}.v1480-duplicate-notice span{flex:1;font-size:13px}.v1480-duplicate-notice button{border:0;border-radius:10px;background:#174f8c;color:#fff;font-weight:900;padding:10px 14px}.is-room-readonly .v11-touch-controls{opacity:.45;pointer-events:none}.v1480-recovery-dialog{width:min(760px,calc(100vw - 24px))}.v1480-recovery-summary{display:flex;justify-content:space-between;gap:14px;padding:15px 17px;border:2px solid #f3c719;border-radius:15px;background:#fff8dc;color:#142e50}.v1480-recovery-summary span{color:#46617f;font-size:13px}.v1480-recovery-list{display:grid;gap:8px;margin:14px 0;max-height:350px;overflow:auto}.v1480-recovery-list>button{display:flex;justify-content:space-between;align-items:center;text-align:left;border:1px solid #bfd5ea;border-radius:14px;background:#f7fbff;color:#173253;padding:13px 15px}.v1480-recovery-list>button.is-recommended{border:2px solid #2d9b62;background:#eefaf3}.v1480-recovery-list span{display:grid;gap:3px}.v1480-recovery-list small{color:#55708b}.v1480-recovery-list em{font-style:normal;font-size:11px;font-weight:900;color:#18734a}.v1480-live-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #70d49c;border-radius:999px;background:#e8fff1;color:#12643c;font-weight:900;padding:8px 12px}.v1480-live-pill i{width:9px;height:9px;border-radius:50%;background:#20ad62;box-shadow:0 0 0 5px #20ad6224}.v1480-spectate{background:linear-gradient(135deg,#eef7ff,#fff9dc)}.v1480-spectate-shell{padding-top:40px;min-height:75vh}.v1480-spectate-shell>header h1{font-size:clamp(32px,6vw,66px);margin:8px 0;color:#132d50}.v1480-spectate-shell>header p{color:#49627e;max-width:720px}.v1480-spectate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px;margin-top:26px}.v1480-watch-card>header{display:flex;justify-content:space-between;align-items:center}.v1480-watch-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}.v1480-watch-stats span{display:grid;gap:3px;padding:12px;border:1px solid #c9dbec;border-radius:12px;background:#f4f9fd}.v1480-watch-stats small{color:#5c728a}.v1480-watch-stats b{color:#153252}.v1480-watch-team{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.v1480-watch-team article{display:flex;align-items:center;gap:10px;border:1px solid #d2e0ec;border-radius:13px;padding:9px;background:#fff}.v1480-watch-team img{width:52px;height:52px;object-fit:contain}.v1480-watch-team span{display:grid}.v1480-watch-team small{color:#56708a}
@media(max-width:760px){.v1480-room-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);position:sticky;top:0;z-index:20;padding:6px;border:1px solid #9cb9d5;border-radius:15px;background:#eaf4fd;margin:8px 0}.v1480-room-mobile-tabs button{border:0;border-radius:11px;background:transparent;color:#3e5f80;font-weight:900;padding:11px}.v1480-room-mobile-tabs button.is-active{background:#174f8c;color:#fff;box-shadow:0 3px 0 #0d355f}.v11-room-page[data-mobile-room-view="tracker"] .v11-room-main>#playerGrid,.v11-room-page[data-mobile-room-view="tracker"] .v11-system-line{display:none!important}.v11-room-page[data-mobile-room-view="tracker"] .v11-tracker{display:grid!important}.v11-room-page:not([data-mobile-room-view="tracker"]) .v11-tracker{display:none!important}.v11-room-page[data-mobile-room-view="team"] .v11-game-frame,.v11-room-page[data-mobile-room-view="team"] .v11-touch-controls{display:none!important}.v11-room-page[data-mobile-room-view="team"] .local-card-team{display:grid!important}.v11-room-page[data-mobile-room-view="game"] .local-card-team{display:none!important}.v1480-watch-stats{grid-template-columns:repeat(2,1fr)}.v1480-watch-team{grid-template-columns:1fr}.v1480-duplicate-notice:not(.hidden),.v1480-recovery-summary{align-items:stretch;flex-direction:column}}
@media(max-width:760px){.v11-room-page[data-mobile-room-view="team"] .v11-player-card.is-local>.v154-touch-controller{display:none!important}.v11-room-page[data-mobile-room-view="team"] .v11-player-card.is-local>.local-card-team{display:grid!important}}
.v1515-room-rom-upload{margin-top:8px}.v1515-room-rom-upload .v11-upload-icon{width:48px;font-size:10px;letter-spacing:.04em}.v1515-room-rom-upload>span:last-child{min-width:0}.v1515-room-rom-upload b{max-width:none}.v1515-room-rom-upload:focus-within{outline:3px solid rgba(29,105,171,.18);border-color:#1d69ab}
/* Native Trainerkarte — bleibt als kompaktes Overlay direkt über dem laufenden Spiel. */
.v1549-trainer-card{width:min(680px,calc(100% - 24px));max-height:min(820px,calc(100dvh - 24px));overflow:auto;border-top:8px solid var(--v11-red)!important;padding:25px!important}
.v1549-trainer-card-body{display:grid;gap:14px}
.v1549-trainer-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:220px;color:#47637b}
.v1549-trainer-loading>span{width:28px;height:28px;border:4px solid #c9ddeb;border-top-color:var(--v11-red);border-radius:50%;animation:v1549TrainerSpin .8s linear infinite}
@keyframes v1549TrainerSpin{to{transform:rotate(360deg)}}
.v1549-trainer-hero{display:grid;grid-template-columns:94px minmax(0,1fr) auto;align-items:center;gap:15px;padding:14px;border:2px solid #c7dceb;border-radius:17px;background:linear-gradient(135deg,#f5fbff,#fff8df)}
.v1549-trainer-avatar{display:grid;place-items:center;width:94px;height:94px;border:4px solid #ffcb05;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #e94848,0 8px 20px rgba(18,55,85,.12)}
.v1549-trainer-avatar img{width:82px;height:82px;object-fit:contain;image-rendering:pixelated}
.v1549-trainer-identity{min-width:0}.v1549-trainer-identity small,.v1549-trainer-identity b,.v1549-trainer-identity p{display:block;margin:0}.v1549-trainer-identity small{color:#668098;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.v1549-trainer-identity b{overflow:hidden;margin-top:3px;color:#173f62;font-size:26px;line-height:1.08;text-overflow:ellipsis}.v1549-trainer-identity p{margin-top:6px;color:#61798e;font-size:11px;line-height:1.4}
.v1549-online{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#e8fff1;color:#12643c;font-size:9px;font-weight:950;white-space:nowrap}.v1549-online::before{content:"";width:8px;height:8px;border-radius:50%;background:#20ad62}.v1549-online.is-away{background:#edf2f6;color:#667d90}.v1549-online.is-away::before{background:#91a4b4}
.v1549-trainer-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.v1549-trainer-summary article{padding:10px 7px;border:1px solid #caddea;border-radius:12px;background:#f6faff;text-align:center}.v1549-trainer-summary small,.v1549-trainer-summary b{display:block}.v1549-trainer-summary small{color:#6a8195;font-size:7px;font-weight:900;text-transform:uppercase}.v1549-trainer-summary b{margin-top:4px;color:#173f62;font-size:16px}
.v1549-trainer-section{padding:13px;border:2px solid #caddea;border-radius:15px;background:#fff}.v1549-trainer-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.v1549-trainer-section>header span,.v1549-trainer-section>header b,.v1549-trainer-section>header small{display:block}.v1549-trainer-section>header span{color:#173f62;font-size:13px;font-weight:950}.v1549-trainer-section>header small{margin-top:2px;color:#6a8195;font-size:9px}.v1549-run-pill{padding:6px 9px;border-radius:999px;background:#e9f5ff;color:#1e669c;font-size:8px!important;font-weight:950;white-space:nowrap}
.v1549-party{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.v1549-party article{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:7px;min-width:0;padding:7px;border:1px solid #d3e1ec;border-radius:12px;background:#f8fbfe}.v1549-party article.is-fainted{opacity:.55;filter:grayscale(.65)}.v1549-party img{width:54px;height:54px;object-fit:contain;image-rendering:pixelated}.v1549-party span{min-width:0}.v1549-party b,.v1549-party small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v1549-party b{color:#173f62;font-size:10px}.v1549-party small{margin-top:3px;color:#647d91;font-size:8px}.v1549-party-empty{grid-column:1/-1;margin:0;padding:16px;border:1px dashed #b8cede;border-radius:11px;color:#647d91;text-align:center;font-size:10px}
.v1549-badges{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.v1549-badges span{display:grid;place-items:center;aspect-ratio:1;border:2px solid #cfdae3;border-radius:50%;background:#edf2f5;color:#8ca0af;font-size:16px;font-weight:1000}.v1549-badges span.is-earned{border-color:#e3ad00;background:linear-gradient(145deg,#fff36a,#ffcb05);color:#a43a32;box-shadow:0 3px 9px rgba(190,139,0,.18)}
.v1549-trainer-error{padding:22px;border:2px solid #efb4b4;border-radius:15px;background:#fff1f1;color:#913535;text-align:center}.v1549-trainer-error b,.v1549-trainer-error span{display:block}.v1549-trainer-error span{margin-top:6px;font-size:10px;line-height:1.5}
@media(max-width:620px){.v1549-trainer-card{width:calc(100% - 12px);max-height:calc(100dvh - 12px);padding:20px 13px!important}.v1549-trainer-hero{grid-template-columns:72px minmax(0,1fr);gap:10px}.v1549-trainer-avatar{width:72px;height:72px}.v1549-trainer-avatar img{width:62px;height:62px}.v1549-trainer-identity b{font-size:21px}.v1549-online{grid-column:1/-1;justify-self:start}.v1549-trainer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.v1549-trainer-summary article:first-child{grid-column:1/-1}.v1549-party{grid-template-columns:repeat(2,minmax(0,1fr))}.v1549-badges{gap:3px}.v1549-badges span{font-size:12px}}

/* v15.79 — dauerhafte Trainerpunkte, Level und Run-Abrechnung. */
.v1549-trainer-identity strong{display:block;margin-top:5px;color:#b27700;font-size:11px;font-weight:1000}
.v1579-trainer-progress{display:grid;gap:8px;padding:12px 14px;border:1px solid #efcf68;border-radius:14px;background:linear-gradient(135deg,#fff8cf,#eef8ff)}
.v1579-trainer-progress>div{display:flex;align-items:end;justify-content:space-between;gap:12px}.v1579-trainer-progress span b,.v1579-trainer-progress span small{display:block}.v1579-trainer-progress span b{color:#173f62;font-size:18px}.v1579-trainer-progress span small{margin-top:2px;color:#687e90;font-size:9px}.v1579-trainer-progress strong{color:#876200;font-size:9px;text-align:right}
.v1579-trainer-progress-track{display:block;height:9px;border-radius:999px;background:#d9e3e9;overflow:hidden}.v1579-trainer-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ef4347,#ffcb05);box-shadow:0 0 12px #ffcb0570}
.v1579-trainer-cosmetics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.v1579-trainer-cosmetics>span{min-width:0;padding:8px 9px;border:1px solid #d4e1ea;border-radius:10px;background:#f8fbfd}.v1579-trainer-cosmetics small,.v1579-trainer-cosmetics b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v1579-trainer-cosmetics small{color:#74899a;font-size:7px;font-weight:950;text-transform:uppercase}.v1579-trainer-cosmetics b{margin-top:3px;color:#173f62;font-size:8px}
.v1549-trainer-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.v1549-trainer-card-body[data-frame="bronze"] .v1549-trainer-hero{border-color:#b97842;background:linear-gradient(135deg,#fff1dd,#f7dbc0)}
.v1549-trainer-card-body[data-frame="silver"] .v1549-trainer-hero{border-color:#92a9ba;background:linear-gradient(135deg,#fff,#dfeaf2)}
.v1549-trainer-card-body[data-frame="gold"] .v1549-trainer-hero{border-color:#e1ae00;box-shadow:inset 0 0 0 2px #fff0a1,0 10px 26px #c28b0025}
.v1549-trainer-card-body[data-frame="champion"] .v1549-trainer-hero{border-color:#7746a8;background:linear-gradient(135deg,#f2e7ff,#fff4bb);box-shadow:0 10px 28px #61358a30}
.v1549-trainer-card-body[data-frame="legendary"] .v1549-trainer-hero{border-color:#e64145;background:linear-gradient(120deg,#eaf7ff,#fff1a6,#ffe5f1);box-shadow:0 0 0 3px #ffcb0550,0 12px 32px #e6434830}
.v1549-trainer-card-body[data-card="emerald"]{padding:13px;border-radius:18px;background:linear-gradient(145deg,#dbfff0,#f7fffb 42%,#d8f5ff)}
.v1549-trainer-card-body[data-card="elite"]{padding:13px;border:2px solid #6d4a9f;border-radius:18px;background:radial-gradient(circle at 100% 0,#f5d6ff,transparent 36%),linear-gradient(145deg,#f3edff,#fff)}
.v1549-trainer-card-body[data-card="champion"]{padding:13px;border:2px solid #dba900;border-radius:18px;background:radial-gradient(circle at 12% 0,#fff4a8,transparent 34%),linear-gradient(145deg,#fff,#e9f4ff);box-shadow:inset 0 0 0 3px #fff6bd}
.v14-profile-hero[data-trainer-frame="bronze"]{border-color:#b97842!important;box-shadow:0 18px 42px #9d5e2625!important}.v14-profile-hero[data-trainer-frame="silver"]{border-color:#91a9bb!important;box-shadow:0 18px 42px #69869c25!important}.v14-profile-hero[data-trainer-frame="gold"]{border-color:#ddb000!important;box-shadow:0 18px 46px #c3940035!important}.v14-profile-hero[data-trainer-frame="champion"]{border-color:#7442a5!important;box-shadow:0 18px 46px #61358a35!important}.v14-profile-hero[data-trainer-frame="legendary"]{border-color:#e64145!important;box-shadow:0 0 0 3px #ffcb0555,0 18px 50px #df3d4435!important}
.v1579-cosmetics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.v1579-cosmetics article{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid #cfdeea;border-radius:12px;background:linear-gradient(145deg,#f5faff,#fff)}.v1579-cosmetics article>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#173f62;color:#ffcb05;font-size:16px}.v1579-cosmetics small,.v1579-cosmetics b{display:block}.v1579-cosmetics small{color:#6a8195;font-size:7px;font-weight:950;text-transform:uppercase;letter-spacing:.07em}.v1579-cosmetics b{overflow:hidden;margin-top:3px;color:#173f62;font-size:9px;line-height:1.3;text-overflow:ellipsis}
.v1579-ranked-reward{width:min(560px,calc(100% - 20px));overflow:hidden;text-align:center;border-top:8px solid #ffcb05!important;background:radial-gradient(circle at 50% 0,#fffbd3,#fff 48%)!important}
.v1579-reward-crown{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 10px;border-radius:50%;background:linear-gradient(145deg,#ffef66,#ffbd00);font-size:42px;box-shadow:0 12px 28px #d99b0038}
.v1579-ranked-reward h2{margin:5px 0 6px!important;color:#173f62!important;font-size:32px!important}.v1579-ranked-reward>p{max-width:410px;margin:0 auto 16px!important}
.v1579-reward-breakdown{display:grid;gap:7px;margin:0 0 15px;text-align:left}.v1579-reward-breakdown>div{display:flex;justify-content:space-between;gap:15px;padding:10px 13px;border:1px solid #d7e3eb;border-radius:11px;background:#f8fbfd;color:#425f76}.v1579-reward-breakdown b{color:#16734b}
.v1579-reward-total,.v1579-reward-level{display:block}.v1579-reward-total{padding:15px;border-radius:14px;background:#173f62;color:#fff;font-size:23px}.v1579-reward-level{margin:10px 0 15px;color:#986c00;font-size:12px;font-weight:950}.v1579-ranked-reward>.v11-primary-button{width:100%}
@media(max-width:620px){.v1549-trainer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.v1549-trainer-summary article:first-child{grid-column:auto}.v1579-ranked-reward{padding:20px 14px!important}.v1579-ranked-reward h2{font-size:27px!important}.v1579-reward-crown{width:68px;height:68px;font-size:34px}.v1579-trainer-progress>div{align-items:flex-start;flex-direction:column}.v1579-trainer-progress strong{text-align:left}.v1579-cosmetics{grid-template-columns:1fr}.v1579-trainer-cosmetics{grid-template-columns:1fr}}
.v14-save-stats-dialog{width:min(640px,calc(100% - 24px));border-top:5px solid #258bc5}
.v14-save-stats-dialog>p{margin-bottom:15px}
.v14-save-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}
.v14-save-stats-grid article{min-width:0;padding:13px 11px;border:1px solid #c9e0ec;border-radius:13px;background:linear-gradient(145deg,#f5fbff,#fff);text-align:center}
.v14-save-stats-grid article>span,.v14-save-stats-grid article>small,.v14-save-stats-grid article>b{display:block}
.v14-save-stats-grid article>span{font-size:18px;line-height:1}
.v14-save-stats-grid article>small{margin-top:8px;color:#6e8798;font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.v14-save-stats-grid article>b{margin-top:5px;color:#173f62;font-size:18px;line-height:1.1}
.v14-save-stats-location{display:grid;gap:4px;margin-top:12px;padding:12px 14px;border:1px solid #d4e3ea;border-radius:13px;background:#f7fbfd}
.v14-save-stats-location>span{color:#6e8798;font-size:8px;font-weight:950;letter-spacing:.09em}
.v14-save-stats-location>b{overflow:hidden;color:#173f62;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.v14-save-stats-location>small{color:#8295a2;font-size:8px}
@media(max-width:520px){.v14-save-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v16.32 Smart Notifications: failed/consumed encounters are errors, not success */
.v11-event-toast.is-route{
  border-color:#ef9ca4;
  background:linear-gradient(145deg,#fff1f2,#fffafa);
  box-shadow:0 22px 60px rgba(160,36,48,.18);
}
.v11-event-toast.is-route>span{
  background:var(--v11-red);
  color:#fff;
}
.v11-event-toast.is-route b{color:#8e2430}
.v11-event-toast.is-route small{color:#7d4a50}


/* v16.34 Duo session: shared-pause / reconnect Smart Notification */
.v11-event-toast.is-pause{
  border-color:#efc878;
  background:linear-gradient(145deg,#fff8e9,#fffdf8);
  box-shadow:0 22px 60px rgba(151,101,22,.16);
}
.v11-event-toast.is-pause>span{
  background:#d99425;
  color:#fff;
}
.v11-event-toast.is-pause b{color:#7d5417}
.v11-event-toast.is-pause small{color:#785f38}

/* v16.35 – visual Solo / Duo mode cards in run setup */
.v11-run-setup-dialog{width:min(660px,calc(100% - 24px))}
.v11-run-setup-dialog .v1635-trainer-row{grid-template-columns:minmax(0,1fr);margin-bottom:14px}
.v1635-mode-picker{min-width:0;margin:0 0 18px;padding:0;border:0}
.v1635-mode-picker>legend{display:block;width:100%;margin:0 0 9px;color:#5e7287;font-size:10px;font-weight:950;letter-spacing:.10em;text-transform:uppercase}
.v1635-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.v1635-mode-card{position:relative;display:block;min-width:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.v1635-mode-card-inner{position:relative;display:grid;grid-template-columns:68px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;min-height:152px;padding:14px;border:2px solid #c9dbe8;border-radius:16px;background:linear-gradient(155deg,#fbfdff 0%,#f4f9fd 100%);box-shadow:0 7px 18px rgba(32,72,105,.06);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease;overflow:hidden}
.v1635-mode-card:hover .v1635-mode-card-inner{transform:translateY(-2px);border-color:#91b9d5;box-shadow:0 12px 26px rgba(31,91,135,.11)}
.v1635-mode-card>input:focus-visible + .v1635-mode-card-inner{outline:3px solid rgba(42,117,187,.22);outline-offset:2px}
.v1635-mode-card>input:checked + .v1635-mode-card-inner{border-color:#2577b6;background:linear-gradient(155deg,#f8fcff 0%,#eaf6ff 100%);box-shadow:0 0 0 3px rgba(37,119,182,.10),0 12px 26px rgba(31,91,135,.12)}
.v1635-mode-card.is-duo>input:checked + .v1635-mode-card-inner{border-color:#23896d;background:linear-gradient(155deg,#fbfffd 0%,#ecf9f4 100%);box-shadow:0 0 0 3px rgba(35,137,109,.10),0 12px 26px rgba(32,112,89,.12)}
.v1635-mode-check{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#dfe9f0;color:transparent;font-size:12px;font-weight:1000;transform:scale(.86);transition:.16s ease}
.v1635-mode-card>input:checked + .v1635-mode-card-inner .v1635-mode-check{background:#2577b6;color:#fff;transform:scale(1);box-shadow:0 5px 12px rgba(37,119,182,.23)}
.v1635-mode-card.is-duo>input:checked + .v1635-mode-card-inner .v1635-mode-check{background:#23896d;box-shadow:0 5px 12px rgba(35,137,109,.22)}
.v1635-mode-art{grid-row:1/3;align-self:center;position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:18px;background:linear-gradient(145deg,#eaf5ff,#d7ecfb);box-shadow:inset 0 0 0 1px rgba(37,119,182,.09)}
.v1635-mode-art img{display:block;width:57px;height:57px;object-fit:contain;filter:drop-shadow(0 5px 5px rgba(29,63,89,.15));user-select:none;-webkit-user-drag:none}
.v1635-mode-art.is-duo{display:block;background:linear-gradient(145deg,#eefbf6,#d9f2e8)}
.v1635-mode-art.is-duo img{position:absolute;width:47px;height:47px;bottom:9px}
.v1635-mode-art.is-duo img:first-child{left:2px;z-index:2}
.v1635-mode-art.is-duo img:nth-child(2){right:1px;z-index:1;transform:scaleX(-1)}
.v1635-mode-art.is-duo em{position:absolute;z-index:3;top:5px;left:50%;display:grid;place-items:center;width:24px;height:20px;margin-left:-12px;border-radius:999px;background:#23896d;color:#fff;font-style:normal;font-size:11px;font-weight:1000;box-shadow:0 4px 8px rgba(35,137,109,.2)}
.v1635-mode-copy{align-self:end;display:block;min-width:0;padding-right:22px}
.v1635-mode-copy b,.v1635-mode-copy small{display:block}
.v1635-mode-copy b{color:#163e62;font-size:15px;line-height:1.05;letter-spacing:-.02em}
.v1635-mode-card.is-duo .v1635-mode-copy b{color:#19684f}
.v1635-mode-copy small{margin-top:5px;color:#63798b;font-size:9px;line-height:1.4}
.v1635-mode-features{align-self:start;display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;grid-column:2}
.v1635-mode-features i{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border:1px solid #d6e3ed;border-radius:999px;background:rgba(255,255,255,.78);color:#537088;font-size:7px;font-style:normal;font-weight:850;white-space:nowrap}
.v1635-mode-card.is-duo .v1635-mode-features i{border-color:#cee6dd;color:#477768}
.v1635-mode-hint{display:flex;align-items:center;gap:7px;margin:9px 1px 0!important;padding:9px 11px;border:1px solid #d7e4ed;border-radius:11px;background:#f8fbfd;color:#60778a!important;font-size:9px!important;line-height:1.4!important}
.v1635-mode-hint:before{content:"i";display:grid;place-items:center;flex:0 0 18px;height:18px;border-radius:50%;background:#e5f1f9;color:#2670a5;font-size:9px;font-weight:1000}
.v1635-mode-card.is-disabled{cursor:not-allowed;opacity:.48}
.v1635-mode-card.is-disabled .v1635-mode-card-inner{filter:saturate(.6)}
.v1635-mode-card.is-disabled:hover .v1635-mode-card-inner{transform:none;border-color:#c9dbe8;box-shadow:0 7px 18px rgba(32,72,105,.06)}

@media(max-width:620px){
  .v11-run-setup-dialog{width:min(560px,calc(100% - 16px))}
  .v1635-mode-grid{grid-template-columns:1fr}
  .v1635-mode-card-inner{grid-template-columns:62px minmax(0,1fr);min-height:116px;padding:12px}
  .v1635-mode-art{width:62px;height:62px;border-radius:16px}
  .v1635-mode-art img{width:52px;height:52px}
  .v1635-mode-art.is-duo img{width:43px;height:43px}
  .v1635-mode-features{margin-top:8px}
  .v1635-mode-copy b{font-size:14px}
  .v1635-mode-copy small{font-size:9px}
}
