/* Full-screen account sections. Game surfaces keep their existing skins. */
:root { --section-top: calc(var(--tg-safe-area-inset-top,env(safe-area-inset-top,0px)) + var(--tg-content-safe-area-inset-top,0px)); --section-bottom: calc(var(--tg-safe-area-inset-bottom,env(safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px)); }
body.section-open { overflow:hidden; }
.app-section { position:fixed; inset:0; height:var(--app-h); padding:0; background:#141415; align-items:stretch; justify-content:center; }
#playerModal { z-index:250; }
#shopModal { z-index:270; }
#visitorModal { z-index:280; }
.app-section .section-shell { width:100%; max-width:860px; height:100%; max-height:none; padding:var(--section-top) calc(var(--tg-safe-area-inset-right,0px) + var(--tg-content-safe-area-inset-right,0px)) var(--section-bottom) calc(var(--tg-safe-area-inset-left,0px) + var(--tg-content-safe-area-inset-left,0px)); margin:0; border:0; border-radius:0; box-shadow:none; background:#141415; display:flex; flex-direction:column; text-align:left; overflow:hidden; }
.section-header { display:flex; align-items:center; gap:10px; padding:12px 18px; min-height:64px; flex:none; border-bottom:1px solid #ffffff09; }
.section-header h2,.player-card .section-header h2 { font-size:20px; line-height:1.2; font-weight:750; letter-spacing:-.6px; margin:0; flex:1; }
.section-back,.section-tool { width:40px; height:40px; display:grid; place-items:center; background:#ffffff07; border:1px solid #ffffff0c; border-radius:12px; color:#e9eaee; cursor:pointer; padding:9px; flex:none; }
.section-tool[hidden] { display:none; }
.section-header svg { width:22px; height:22px; }
.has-native-back [data-native-back] { display:none; }
.section-body,.player-body.section-body,.shop-body.section-body { overflow:auto; min-height:0; flex:1; padding:16px 18px 26px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.section-body button { font-family:inherit; }
.section-body button:focus-visible,.section-header button:focus-visible { outline:2px solid #8fb8ff; outline-offset:3px; }
.section-eyebrow { display:block; font-size:9px; line-height:1.4; font-weight:700; letter-spacing:2px; color:#9da2ad; }
.profile-hero { position:relative; overflow:hidden; border:1px solid #ffffff0b; border-radius:22px; background:radial-gradient(ellipse at 50% 55%,#303029 0%,#1a1b1d 57%,#1b1c1e 100%); }
.profile-hero .player-identity { position:relative; margin:0; padding:16px 16px 0; z-index:2; }
.player-identity { gap:10px; }
.player-identity .cosmetic-avatar { flex-basis:42px; width:42px; height:42px; border-width:2px; }
.player-identity .cosmetic-avatar img { width:34px; height:34px; }
.player-identity .cosmetic-name b { font-size:16px; font-weight:650; line-height:1.3; }
.player-identity .cosmetic-name span { font-size:11px; color:#a3a5ac; margin-top:3px; }
.cosmetic-emblem { font-size:15px; }
.avatar-scene { position:relative; height:328px; isolation:isolate; overflow:hidden; }
.avatar-full { position:absolute; inset:0; height:100%; width:100%; object-fit:contain; z-index:2; filter:drop-shadow(0 16px 16px #0006); }
.avatar-stage { position:absolute; height:90%; aspect-ratio:2/3; top:8%; left:50%; transform:translateX(-50%); }
.avatar-accessory { position:absolute; height:auto; z-index:4; transform:translate(-50%,-50%); pointer-events:none; }
.avatar-accessory.layer-headwear { transform:translateX(-50%); z-index:3; }
.avatar-stage.has-headwear .avatar-full { clip-path:inset(8.3% 0 0 0); }
.avatar-scene.is-detail .avatar-stage { top:20%; transform:translateX(-50%) scale(1.7); transform-origin:50% 14%; }
.scene-word { position:absolute; top:32%; width:100%; text-align:center; color:#ffffff06; font-size:clamp(45px,12vw,66px); font-weight:900; letter-spacing:-3px; line-height:1; }
.scene-orbit { position:absolute; width:80%; height:24%; border:1px solid #d7bc671d; border-radius:50%; left:10%; bottom:2%; background:radial-gradient(ellipse,#dcb5560d,transparent 70%); }
.scene-orbit:after { content:''; position:absolute; inset:20%; border:1px solid #d7bc6718; border-radius:50%; }
.scene-caption { position:absolute; bottom:16px; left:16px; max-width:100px; z-index:3; font-size:10px; line-height:1.4; color:#afb0b5; }
.wardrobe-entry { display:flex; align-items:center; gap:10px; width:calc(100% - 28px); margin:0 14px 14px; padding:13px 14px; border-radius:13px; color:#171613; background:linear-gradient(110deg,#f5d887,#dcbb64); border:1px solid #f8dea0; font-size:13px; font-weight:750; cursor:pointer; }
.wardrobe-entry svg { width:20px; height:20px; flex:none; }
.wardrobe-entry svg:last-child { margin-left:auto; width:16px; }
.profile-wallet { display:flex; align-items:center; gap:12px; padding:18px 2px; }
.profile-wallet > svg { width:35px; height:35px; padding:7px; color:#bcbec6; background:#232428; border-radius:10px; flex:none; }
.profile-wallet > span { color:#9498a5; font-size:11px; min-width:0; }
.profile-wallet b { display:block; font-size:23px; color:#f7f7f8; letter-spacing:-.7px; margin-top:3px; overflow-wrap:anywhere; }
.profile-wallet > small { margin-left:auto; color:#878c96; font-size:10px; border:1px solid #ffffff12; padding:5px 7px; border-radius:6px; }
.profile-tiles { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.profile-tile { display:flex; flex-direction:column; text-align:left; position:relative; background:#202124; border:1px solid #ffffff0a; color:#eceef3; border-radius:16px; padding:14px; cursor:pointer; min-width:0; }
.tile-icon { width:30px; height:30px; color:#cfb571; margin-bottom:12px; }
.tile-icon svg { width:100%; height:100%; }
.profile-tile b { font-size:13px; font-weight:650; }
.profile-tile small { font-size:10px; color:#959aa7; margin-top:6px; }
.profile-tile > svg { position:absolute; right:12px; top:20px; width:14px; height:14px; color:#686d79; }
.profile-session { padding:8px 2px; }
.player-stat,.player-toggle { border-color:#ffffff0c; font-size:12px; color:#a3a8b2; padding:14px 0; }
.player-stat b { color:#dedfe5; font-variant-numeric:tabular-nums; font-weight:600; }
.player-note,.player-identity span { color:#8b919e; font-size:11px; line-height:1.55; }
.player-note { margin:12px 0 4px; }
.player-body h3 { font-size:16px; font-weight:650; margin:22px 0 12px; }
.player-body h3:first-child { margin-top:4px; }
.player-action,#playerLanguage,#playerCurrency { width:100%; padding:14px; background:#222327; border:1px solid #ffffff12; border-radius:12px; color:#edf0f5; font:inherit; font-size:13px; margin:8px 0; }
.player-toggle input { appearance:none; -webkit-appearance:none; width:40px; height:24px; margin:0; border-radius:20px; background:#3b3d44; position:relative; transition:background .15s; }
.player-toggle input:after { content:''; position:absolute; height:18px; width:18px; border-radius:50%; left:3px; top:3px; background:white; transition:transform .15s; }
.player-toggle input:checked { background:#0075ff; }
.player-toggle input:checked:after { transform:translateX(16px); }
.progress-summary { padding:20px 8px 28px; display:flex; align-items:center; gap:20px; }
.collection-ring { flex:none; width:104px; height:104px; padding:5px; background:conic-gradient(#e2c16e var(--collection),#2b2d32 0); border-radius:50%; transform:rotate(-15deg); }
.collection-ring > div { height:100%; background:#141415; border-radius:50%; display:flex; flex-direction:column; justify-content:center; align-items:center; transform:rotate(15deg); }
.collection-ring strong { font-size:32px; font-weight:600; letter-spacing:-1px; }
.collection-ring em { font-size:14px; font-style:normal; color:#777f8c; }
.collection-ring span { font-size:10px; color:#a0a6b3; margin-top:4px; }
.player-body .progress-summary h3 { margin:7px 0; font-size:22px; line-height:1.15; letter-spacing:-.5px; }
.progress-summary p { font-size:11px; line-height:1.55; color:#9196a3; margin:0; }
.achievement-grid { display:grid; gap:10px; }
.player-achievement { display:flex; gap:16px; align-items:center; padding:18px 15px; margin:0; background:linear-gradient(115deg,#242529,#1d1e21); border:1px solid #ffffff0b; border-radius:16px; color:#e9ebf0; }
.achievement-medal { width:62px; height:68px; flex:none; display:grid; place-items:center; color:#737d92; background:linear-gradient(130deg,#3e4756,#21262f); clip-path:polygon(50% 0,94% 23%,94% 76%,50% 100%,6% 76%,6% 23%); }
.achievement-medal svg { width:30px; height:30px; }
.earned .achievement-medal { background:linear-gradient(130deg,#fce5a1,#b08937); color:#4d391c; filter:drop-shadow(0 0 12px #edc66833); }
.player-achievement.earned { border-color:#b99a443d; color:#f1e2bd; background:linear-gradient(115deg,#2f2c23,#202022); }
.achievement-copy { flex:1; min-width:0; }
.achievement-copy b { font-size:14px; font-weight:650; }
.achievement-copy p { font-size:11px; line-height:1.4; color:#969ba6; margin:6px 0 12px; }
.achievement-track { height:4px; border-radius:4px; background:#ffffff0c; overflow:hidden; }
.achievement-track i { height:100%; display:block; background:#8da4c7; border-radius:4px; }
.earned .achievement-track i { background:#d9b760; }
.player-achievement small { display:flex; justify-content:space-between; gap:8px; color:#81899a; font-size:9px; margin-top:7px; }
.player-achievement small span { color:inherit; }
.guide-intro { padding:12px 0 20px; }
.player-body .guide-intro h3 { font-size:25px; letter-spacing:-.8px; margin:8px 0; }
.guide-intro p { font-size:12px; color:#9299a6; line-height:1.6; margin:0; }
.guide-grid { display:grid; gap:10px; }
.guide-card { display:flex; align-items:center; width:100%; gap:15px; text-align:left; padding:10px; background:#202124; border:1px solid #ffffff09; border-radius:15px; color:#eee; cursor:pointer; }
.guide-card img { height:82px; width:66px; object-fit:cover; border-radius:9px; }
.guide-card span { flex:1; }
.guide-card b { font-size:17px; display:block; margin-bottom:7px; }
.guide-card small { font-size:11px; color:#9da6b6; }
.guide-card svg { width:20px; height:20px; margin-right:6px; color:#7e8797; }
.shop-body.section-body { display:block; }
.wardrobe-layout { display:grid; gap:20px; }
.shop-preview { position:relative; border-radius:20px; background:radial-gradient(ellipse at center,#353229,#1e1f21 70%); border:1px solid #ffffff0a; padding:0; overflow:hidden; }
.shop-preview .player-identity { padding:16px 16px 0; margin:0; }
.shop-preview .avatar-scene { height:330px; }
.shop-preview .scene-caption { max-width:150px; }
.wardrobe-caption h3 { margin:5px 0 10px; font-size:23px; letter-spacing:-.6px; }
.shop-balance { font-size:12px; color:#9aa1af; }
.outfit-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.outfit-card { background:#212225; border:1px solid #ffffff0c; border-radius:15px; overflow:hidden; padding:10px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.outfit-art { position:relative; background:radial-gradient(ellipse,#4c442d55,transparent); border:0; width:100%; height:174px; cursor:pointer; padding:0; }
.outfit-art img { width:100%; height:100%; object-fit:contain; }
.outfit-card > b { font-size:14px; }
.outfit-card > small { color:#8e97a5; font-size:10px; line-height:1.5; }
.outfit-card .shop-row { padding:0; border:0; background:none; gap:10px; }
.outfit-card .shop-actions { width:100%; justify-content:stretch; gap:5px; }
.outfit-card .shop-actions button { flex:1; padding:9px 5px; font-size:10px; }
.outfit-card > .shop-btn { margin-top:auto; }
.shop-btn { border-radius:9px; min-height:36px; font-size:11px; padding:8px 10px; }
.shop-btn-buy { background:#d9bc70; color:#242019; border-color:#e7c981; font-weight:750; }
.wardrobe-subtitle { margin:25px 0 12px; font-size:16px; }
.catalog-jumps { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
.catalog-jumps button,.preview-controls button { border:1px solid #ffffff15; background:#292a2e; color:#c7ccd7; border-radius:20px; padding:9px 12px; font-size:11px; cursor:pointer; }
.equipped-slots { display:flex; flex-wrap:wrap; gap:6px; }
.equipped-slots button { display:flex; align-items:center; gap:10px; border:1px solid #c8ad6655; background:#d9bc7010; color:#d9c795; border-radius:8px; padding:8px; font-size:10px; cursor:pointer; }
.equipped-slots span { font-size:16px; }
.purchase-pending { border:1px solid #d9bc7044; background:#d9bc7010; border-radius:12px; padding:12px; margin:14px 0; }
.purchase-pending p { color:#d9cba8; font-size:12px; line-height:1.5; margin:0 0 10px; }
.preview-controls { display:flex; flex-wrap:wrap; gap:6px; padding:12px; }
.preview-controls [aria-pressed="true"] { background:#d9bc70; color:#242019; border-color:#d9bc70; }
.preview-note { color:#acb1bd; font-size:10px; line-height:1.5; margin:0; padding:0 14px 14px; }
.property-card .outfit-art { height:auto; aspect-ratio:3/2; }
.property-card .outfit-art img { border-radius:8px; }
.property-card .shop-label { line-height:1.4; min-height:34px; }
.property-collection { display:grid; gap:12px; margin:16px 0; }
.property-scene { position:relative; aspect-ratio:3/2; border-radius:18px; overflow:hidden; margin:0; background:#24262b; isolation:isolate; }
.property-scene > img,.garage-studio { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.garage-studio { background:radial-gradient(ellipse at 50% 30%,#525967,#25282f 60%,#17191e); }
.garage-scene .garage-vehicle { object-fit:contain; inset:7% 2% auto; width:96%; height:88%; }
.property-scene figcaption { position:absolute; inset:auto 0 0; padding:30px 14px 13px; background:linear-gradient(transparent,#000c); display:flex; flex-direction:column; gap:3px; color:#fff; }
.property-scene figcaption small { color:#c7c9cf; font-size:9px; letter-spacing:1px; text-transform:uppercase; }
.property-scene figcaption b { font-size:16px; font-weight:650; }
.property-scene figcaption span { color:#b6bac4; font-size:10px; }
.property-empty { display:flex; min-height:220px; flex-direction:column; align-items:center; justify-content:center; gap:18px; color:#a8aeba; font-size:13px; padding:20px; text-align:center; }
.property-empty svg { width:48px; height:48px; color:#d9bc70; }
.shop-preview .property-collection { margin:12px; }
#playerProperty { min-width:0; }
.wardrobe-details { background:#1d1e21; padding:4px 12px 12px; border:1px solid #ffffff09; border-radius:15px; }
.shop-row { border:0; border-bottom:1px solid #ffffff08; padding:12px 0; border-radius:0; background:none; }
.shop-label { font-size:12px; }
.shop-sect { color:#858e9f; margin:15px 0 4px; font-size:10px; }
/* Tutorial structure and existing spotlight geometry are preserved. */
.tour-tip { background:#222429; border:1px solid #ffffff24; border-radius:16px; padding:16px; box-shadow:0 16px 60px #0008; }
.tour-heading { display:flex; align-items:center; justify-content:space-between; color:#b9a673; font-size:9px; letter-spacing:1px; margin-bottom:12px; }
.tour-heading b { color:#969eab; font-weight:500; letter-spacing:0; }
.tour-text { font-size:13px; line-height:1.6; color:#e1e4eb; }
.tour-text b { color:#fff; }
.tour-next { background:#e3c477; color:#262016; border:0; border-radius:8px; }
.tour-skip { color:#a6acb6; }
.tour-dot.active { background:#e3c477; }
.tour-spot { border-color:#e3c477; }
.lb-avatar-btn { width:38px; height:42px; padding:0; border:0; border-radius:10px; overflow:hidden; background:#333128; cursor:pointer; flex:none; }
.lb-avatar-btn img { width:100%; height:100%; object-fit:cover; object-position:50% 6%; transform:scale(2.6); transform-origin:50% 5%; }
.visitor-caption { text-align:center; padding:12px; font-size:14px; color:#a3a8b4; }
@media (max-width:350px) {
  .section-body,.player-body.section-body,.shop-body.section-body { padding-left:12px; padding-right:12px; }
  .avatar-scene { height:285px; }
  .progress-summary { gap:12px; padding-left:0; padding-right:0; }
  .collection-ring { width:86px; height:86px; }
  .player-body .progress-summary h3 { font-size:19px; }
}
@media (min-width:700px) {
  .section-header { padding:18px 28px; }
  .section-body,.player-body.section-body,.shop-body.section-body { padding:22px 28px 32px; }
  #playerModal[data-section="profile"] .player-body { display:grid; grid-template-columns:1fr 1fr; gap:0 25px; align-content:start; }
  #playerModal[data-section="profile"] .profile-hero { grid-row:span 4; }
  #playerModal[data-section="profile"] .player-note { grid-column:2; }
  .avatar-scene { height:390px; }
  .wardrobe-layout { grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
  .shop-preview { position:sticky; top:0; }
  .shop-preview .avatar-scene { height:450px; }
  .achievement-grid { grid-template-columns:1fr 1fr; }
  .guide-grid { grid-template-columns:1fr 1fr; }
  .progress-summary { max-width:460px; padding-bottom:32px; }
}
@media (prefers-reduced-motion:reduce) { .player-toggle input,.player-toggle input:after { transition:none; } }
/* Telegram owns these close controls; browser fallbacks stay available. */
.has-native-back :is(#offer,#real,#chatModal,#fakeChatModal,#recap) .card-x,
.has-native-back #bridgeX { display:none; }

/* Rewards use actual inventory artwork and server-confirmed milestones. */
.achievement-reward { position:relative; width:88px; height:102px; flex:none; overflow:hidden; border-radius:13px; background:radial-gradient(ellipse at 50% 60%,#414247,#222327 75%); }
.achievement-reward img { width:100%; height:100%; object-fit:contain; padding:8px; }
.achievement-reward.reward-outfit img { padding:0; object-fit:cover; object-position:50% 17%; height:140%; }
.achievement-reward span { position:absolute; right:5px; bottom:5px; width:23px; height:23px; display:grid; place-items:center; background:#e6c774; border-radius:50%; color:#29251b; }
.achievement-reward span svg { width:15px; height:15px; }
.reward-name { color:#d0bc88; font-size:10px; margin-top:9px; letter-spacing:.02em; }
.visitor-level { color:#e7c67c; font-size:12px; margin-top:10px; }
@media(max-width:359px){ .achievement-reward{width:70px;height:94px} .player-achievement{gap:12px;padding:14px 11px} }
.catalog-reward { display:block; font-size:10px; line-height:1.4; font-weight:400; color:#bdad83; margin-top:5px; }
