/* Unified evergreen background, soft violet light and rounded navigation. */
:root{--bg:#0b1010;--panel:#141d1a;--line:#b1cb9f26;--muted:#a9b9ae}
html{min-height:100%;background:#0b1010}body{min-height:100vh;background:radial-gradient(ellipse 850px 600px at 0 0,#37684738,transparent 75%),radial-gradient(ellipse 900px 650px at 100% 20%,#63518428,transparent 75%),linear-gradient(150deg,#0c1410,#101218 65%,#0c1713);background-attachment:fixed}
.header{width:calc(100% - 48px);max-width:1480px;margin:20px auto 0;border:1px solid #b9da9c2b;border-radius:28px;background:linear-gradient(120deg,#17241df0,#141922f0);box-shadow:0 14px 44px #0003,inset 0 1px #ffffff05;padding:22px 32px;gap:20px}
.header nav a{padding:12px 16px;border-radius:15px}.header nav a[aria-current=page]{background:#bdff6720;box-shadow:inset 0 0 0 1px #c5ff8330}.brand-logo{border-radius:20px}.panel{background:linear-gradient(135deg,#17221de8,#171b23e8);border-radius:24px;border-color:#b9da9c29;box-shadow:0 12px 36px #0002}.project-note{background:linear-gradient(140deg,#203426,#252237)}.game-profile-card,.monthly-card,.owner-extra-card{background:linear-gradient(135deg,#1d2b21,#242131)}.footer{border-color:#b9da9c26;padding-bottom:28px}.schedule-preview,.ocr-photo,.ocr-grid{border-radius:16px}
.identity-link{display:inline-flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0;overflow-wrap:anywhere;max-width:100%}.nickname-medals{display:inline-flex;align-items:center;gap:8px;padding:4px 2px;flex-shrink:0}.nickname-medal{position:relative;display:inline-flex;align-items:center;justify-content:center;width:27px;height:29px;border-radius:9px 9px 13px 13px;border:1px solid #fff8;font:bold 16px/1 system-ui;color:#382700;background:linear-gradient(140deg,#fff1a4,#e9ac35);box-shadow:inset 0 1px #ffffffe0,0 2px 8px #0003;text-shadow:0 1px #ffffff50}.nickname-medal::before{content:'';position:absolute;top:-5px;width:14px;height:6px;border-radius:3px 3px 0 0;background:linear-gradient(90deg,#8e72c8 45%,#dab7ff 45%,#dab7ff 55%,#8e72c8 55%);z-index:0}.medal-2{background:linear-gradient(140deg,#f7fcff,#a5b6ca);color:#243443}.medal-3{background:linear-gradient(140deg,#f5c9a6,#bd8052);color:#452a19}.medal-count{position:absolute;right:-6px;bottom:-7px;padding:2px 3px;border-radius:5px;background:#18211c;color:#edf5e9;font:9px/1 system-ui;border:1px solid #809178}.leader-row>.identity-link{font-size:14px}.monthly-grid .leader-row{gap:8px;grid-template-columns:28px minmax(0,1fr) auto}
@media(max-width:700px){.header{width:calc(100% - 24px);margin-top:12px;padding:18px;border-radius:22px}.header nav a{padding:11px 8px;font-size:12px}.header .brand{gap:12px}.panel{border-radius:20px}.nickname-medal{width:25px;height:27px;font-size:14px}.nickname-medals{gap:7px}.identity-link{gap:8px}.leader-row>.identity-link{font-size:13px}}
.identity-role{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #ba99ff55;border-radius:9px;background:#a786f018;color:#d6bfff;font-size:10px;line-height:1.2;white-space:nowrap;font-weight:700}.role-symbol{display:inline-grid;place-items:center;width:19px;height:22px;font-size:17px;clip-path:polygon(5% 0,95% 0,95% 65%,50% 100%,5% 65%);background:linear-gradient(140deg,#c7a5ff,#7654bd);color:#1d1530}.role-creator{border-color:#b4ff5a55;background:#b4ff5a14;color:#c9ff93}.role-creator .role-symbol{background:linear-gradient(145deg,#d8ffa8,#8cce40);color:#1d3210}
#signedIn>.profile-identity,#visitorProfile{position:relative;padding:26px;border:1px solid #b4ff5a25;border-radius:22px;background:radial-gradient(ellipse at top right,#8164b92b,transparent 60%),linear-gradient(135deg,#213425,#171f26)}#signedIn>.profile-identity{margin:18px 0}#profileNickname{margin:0}#profileNickname .identity-link,#visitorProfile>.identity-link{font-size:clamp(20px,3vw,28px);gap:14px}#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar{order:-1;width:100px;height:100px;border-radius:26px;object-fit:cover;box-shadow:0 8px 22px #0003}#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{content:attr(data-initial);display:grid;place-items:center;width:100px;height:100px;border-radius:26px;flex-shrink:0;background:linear-gradient(135deg,#a5e660,#a58add);color:#152219;font-size:42px;font-weight:800;order:-1}#profileSummary,.profile-bio{color:#bfccc3;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0 0}.profile-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.profile-record{padding:18px;border:1px solid #b4ff5a25;border-radius:16px;background:#10201980}.profile-record>span{display:block;color:#aebdb2;font-size:12px;margin-bottom:12px}.profile-record>strong{font-size:23px;color:#c6ffa0}#signedIn>button{margin-right:10px;margin-bottom:10px}#visitorProfile{margin-bottom:24px}#accountTitle{margin-bottom:12px}
@media(max-width:600px){#signedIn>.profile-identity,#visitorProfile{padding:18px}#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar,#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{width:76px;height:76px;border-radius:20px}.profile-records{gap:8px}.profile-record{padding:12px 8px}.profile-record>strong{font-size:17px}.profile-record>span{font-size:11px}.identity-role{font-size:9px;padding:4px 5px}.leader-row{grid-template-columns:25px minmax(0,1fr) auto}}
/* Mobile profile cards and vector role symbols. */
.role-symbol,.role-creator .role-symbol{width:25px;height:25px;clip-path:none;background:none;flex-shrink:0}.role-symbol img{display:block;width:25px;height:25px;object-fit:contain}.identity-role{font-size:11px;padding:4px 8px;border-radius:12px;gap:6px}.identity-name{min-width:0;overflow-wrap:anywhere}
#signedIn>.profile-identity,#visitorProfile{isolation:isolate;overflow:hidden;padding:36px 24px 24px;background:#17221eea;border-radius:28px}#signedIn>.profile-identity::before,#visitorProfile::before{content:'';position:absolute;z-index:-1;inset:0 0 auto;height:110px;background:radial-gradient(ellipse at 10% 10%,#b8f57650,transparent 65%),radial-gradient(ellipse at 95% 20%,#b196f07a,transparent 65%),linear-gradient(120deg,#314f38,#303a51);border-bottom:1px solid #ffffff12}#signedIn>.profile-identity>div{width:100%}#profileNickname .identity-link,#visitorProfile>.identity-link{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;font-size:28px;padding-top:8px}#profileNickname .identity-link .identity-name,#visitorProfile>.identity-link .identity-name{order:1;width:100%;text-align:center}#profileNickname .identity-link .identity-role,#visitorProfile>.identity-link .identity-role{order:2}#profileNickname .identity-link .nickname-medals,#visitorProfile>.identity-link .nickname-medals{order:3;justify-content:center}#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar,#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{width:112px;height:112px;border-radius:32px;border:5px solid #17221e;box-shadow:0 6px 22px #0004;order:0;margin:0 calc((100% - 112px)/2);flex-shrink:0}#profileSummary,#visitorProfile>.profile-bio{text-align:center;max-width:560px;margin:18px auto 0;font-size:15px}#profileSummary:empty,#visitorProfile>.profile-bio:empty{display:none}.profile-shortcuts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:18px 0}.profile-shortcuts a{display:flex;align-items:center;justify-content:center;min-height:48px;text-align:center;border-radius:15px;font-size:14px}.profile-records{gap:12px}.profile-record{border-radius:18px;background:linear-gradient(145deg,#21332490,#20233390);text-align:center;padding:20px 12px}.profile-record>strong{font-variant-numeric:tabular-nums}#account .eyebrow{color:#b4c7ae}#accountState{font-size:12px;line-height:1.7}#signedIn>button{border-radius:13px;min-height:44px}#deleteProfile{background:transparent;border-color:#ffffff20;color:#adb8ad}.viewing-profile #main>:not(#visitorProfile):not(.progress-panel){display:none}.viewing-profile #visitorProfile{margin-top:0}.viewing-profile #main{padding-top:28px}
@media(max-width:600px){.shell{width:calc(100% - 24px)}.account-panel,.progress-panel{padding:18px;margin-top:20px}#account{padding:16px}#accountTitle{font-size:26px}#signedIn>.profile-identity{margin:16px -4px}#signedIn>.profile-identity,#visitorProfile{padding:28px 16px 20px;border-radius:24px}#profileNickname .identity-link,#visitorProfile>.identity-link{font-size:25px;gap:10px}.profile-shortcuts{gap:8px}.profile-shortcuts a{padding:12px 8px;font-size:13px}.profile-records{gap:7px}.profile-record{padding:16px 7px}.profile-record>span{font-size:11px;line-height:1.5;min-height:33px;margin-bottom:6px}.profile-record>strong{font-size:18px}.account-form{grid-template-columns:minmax(0,1fr);max-width:100%;gap:16px}.account-form input:not([type=checkbox]),.account-form select,.account-form textarea{font-size:16px;max-width:100%;box-sizing:border-box}.account-form label{min-width:0}.account-form button{min-height:48px;white-space:normal}.data-actions{gap:14px}.photo-dialog{width:calc(100% - 24px);max-width:460px;box-sizing:border-box;padding:20px}.header nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:2px}.header nav a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:46px;line-height:1.4;padding:8px 5px}.leader-row{gap:8px}.identity-role{white-space:normal}.game-profile-card{max-width:100%;min-width:0}.profile-records,.account-panel,.schedule-panel,.moderation-card{min-width:0}#profileAppearance{padding:16px;margin-top:22px}.profile-avatar{max-width:100%}.ocr-controls{grid-template-columns:minmax(0,1fr)}.privacy-content{padding-inline:18px}}
/* Compact profile card: keep biography and records in the same vertical flow. */
#visitorProfile{display:block;max-width:960px;margin:0 auto 24px;padding:28px}
#visitorProfile[hidden]{display:none}
#visitorProfile::before,#signedIn>.profile-identity::before{height:76px;opacity:.65}
#profileNickname .identity-link,#visitorProfile>.identity-link{display:grid;grid-template-columns:100px minmax(0,1fr);justify-content:start;justify-items:start;align-content:center;gap:8px 20px;min-height:100px;padding:0;text-align:left}
#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar,#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{grid-column:1;grid-row:1 / span 3;order:0;margin:0;width:100px;height:100px;border-radius:28px;box-sizing:border-box}
#profileNickname .identity-link .identity-name,#visitorProfile>.identity-link .identity-name{grid-column:2;grid-row:1;text-align:left;align-self:end;overflow-wrap:anywhere;min-width:0}
#profileNickname .identity-link .identity-role,#visitorProfile>.identity-link .identity-role{grid-column:2;grid-row:2}
#profileNickname .identity-link .nickname-medals,#visitorProfile>.identity-link .nickname-medals{grid-column:2;grid-row:3;justify-content:flex-start}
#profileSummary,#visitorProfile>.profile-bio{text-align:left;max-width:none;margin:20px 0 0;padding:16px 18px;border:1px solid #ffffff0d;background:#0b151c45;border-radius:16px}
#visitorProfile>.profile-records{width:100%;margin:20px 0 0;padding-top:20px;border-top:1px solid #c0fb601a}
#signedIn>.profile-identity{padding:24px}
@media(max-width:600px){#visitorProfile{padding:20px 16px}#signedIn>.profile-identity{padding:20px 14px}#profileNickname .identity-link,#visitorProfile>.identity-link{grid-template-columns:82px minmax(0,1fr);gap:7px 12px;font-size:23px;min-height:82px}#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar,#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{width:82px;height:82px;border-radius:24px}#profileSummary,#visitorProfile>.profile-bio{padding:12px 14px;font-size:14px}#visitorProfile>.profile-records{gap:7px;margin-top:16px;padding-top:16px}.profile-record>strong{font-size:clamp(15px,4.5vw,21px)}}
.ocr-cell-preview{display:block;max-width:140px;max-height:190px;width:auto;height:auto;margin:8px 0;border:1px solid #ffffff30;border-radius:6px;background:white}.ocr-raw{white-space:pre-wrap;overflow-wrap:anywhere}
/* Nickname and awards form one non-wrapping line. Counters stay inside medals. */
.identity-link .identity-name{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;flex:0 1 auto;overflow:hidden}
.nickname-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}
.identity-link .identity-name .nickname-medals{display:inline-flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto;gap:4px;padding:0;order:initial}
.nickname-medal{width:auto;min-width:23px;height:26px;padding:0 5px;box-sizing:border-box;border-radius:8px;font:700 13px/1 system-ui;gap:3px;box-shadow:inset 0 1px #ffffff80;border-color:#ffffff40}
.nickname-medal::before{content:none}
.medal-count{position:static;padding:0;border:0;background:none;color:inherit;font:600 8px/1 system-ui;opacity:.8}
.identity-role{padding:0;border:0;border-radius:0;background:none;font:600 12px/1.3 system-ui,sans-serif;letter-spacing:.02em;gap:6px;white-space:nowrap;color:#c7b9f0}
.identity-role.role-creator{background:none;border:0;color:#c4e8a0}
.identity-role .role-symbol,.identity-role .role-symbol img{width:22px;height:22px}
#profileNickname .identity-link,#visitorProfile>.identity-link{grid-template-rows:auto auto;row-gap:7px}
#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar,#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{grid-row:1 / span 2}
#profileNickname .identity-link .identity-name,#visitorProfile>.identity-link .identity-name{width:100%;align-self:end;gap:10px}
#profileNickname .identity-link .identity-role,#visitorProfile>.identity-link .identity-role{align-self:start}
#profileNickname .identity-link .identity-name .nickname-medals,#visitorProfile>.identity-link .identity-name .nickname-medals{order:initial;justify-content:flex-start}
@media(max-width:600px){#profileNickname .identity-link .identity-name,#visitorProfile>.identity-link .identity-name{gap:6px}.nickname-medal{min-width:19px;height:23px;padding:0 3px;font-size:11px}.identity-link .identity-name .nickname-medals{gap:3px}.medal-count{font-size:7px}.identity-role{font-size:11px}.identity-role .role-symbol,.identity-role .role-symbol img{width:20px;height:20px}}
@media(max-width:380px){#profileNickname .identity-link,#visitorProfile>.identity-link{grid-template-columns:64px minmax(0,1fr);column-gap:10px;font-size:21px;min-height:64px}#profileNickname .identity-avatar,#visitorProfile>.identity-link .identity-avatar,#profileNickname .identity-link[data-avatar=no]::before,#visitorProfile>.identity-link[data-avatar=no]::before{width:64px;height:64px;border-radius:20px}.medal-count{display:none}}
