/* Профиль TiKoPa. Локальная страница: без API профиля, без Метрики. */
.profile{padding-bottom:72px}
.profile-hero{padding-top:24px;max-width:860px}
.profile-hero h1{font-size:clamp(34px,5.2vw,58px);line-height:1.04}
.profile-hero .lead{max-width:64ch}
.profile-status{min-height:22px;margin-top:12px;color:var(--muted);font-size:14px;line-height:1.45}
.profile-status.is-error{color:#a32035}
.profile-status.is-ok{color:#146c43}
.profile-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:22px;align-items:start;margin-top:16px}
.profile-preview{position:sticky;top:18px;min-width:0}
.profile-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:22px;min-width:0}
.avatar-stage{display:grid;place-items:center;padding:12px;border-radius:22px;background:linear-gradient(160deg,#f3f6ff,#fff);border:1px solid #e7ecfa;overflow:hidden}
.avatar{display:block;width:100%;max-width:420px;height:auto;aspect-ratio:1;object-fit:cover;border-radius:40px;background:#f3ebff}
.profile-kicker{margin-top:18px;color:var(--blue);font-size:11px;font-weight:650;line-height:1.4;letter-spacing:.16em;text-transform:uppercase}
.profile-name{margin-top:6px;min-height:1.1em;font-size:clamp(30px,4.4vw,46px);font-weight:800;line-height:1.08;letter-spacing:-.05em;overflow-wrap:anywhere}
.profile-caption{margin-top:8px;color:var(--muted);font-size:14px;line-height:1.45}
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.profile-note{margin-top:14px;font-size:12.5px;line-height:1.5}
.profile-editor{min-width:0}
.panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px}
.panel + .panel{margin-top:18px}
.panel h2{font-size:26px;line-height:1.12;letter-spacing:-.04em;font-weight:750}
.panel p{margin-top:8px;color:var(--muted);font-size:14.5px;line-height:1.5}
.name-reels{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;margin-top:16px}
.reel{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:stretch;min-height:64px;border:1px solid var(--line);border-radius:16px;background:#fbfcff;min-width:0}
.reel-button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:22px;line-height:1;cursor:pointer;border-radius:14px}
.reel-button:hover{background:#eef1ff;color:var(--blue)}
.reel-word{display:grid;place-items:center;min-width:0;padding:8px 4px;text-align:center;font-size:18px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.dice-wrap{display:grid;justify-items:center;gap:4px}
.dice-label{color:var(--muted);font-size:10.5px;font-weight:650;line-height:1.2;white-space:nowrap}
.dice-button{width:56px;height:56px;border:0;border-radius:50%;background:var(--blue);color:#fff;font:inherit;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 6px 14px #3158ff2e;transition:background .18s,transform .18s}
.dice-button:hover{background:#244bea;transform:rotate(-8deg)}
.dice-button:active{transform:scale(.96)}
.name-caption{margin-top:16px;color:var(--ink);font-size:13px;font-weight:650;line-height:1.4}
.name-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.name-option{min-height:52px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:650;line-height:1.3;text-align:left;cursor:pointer;overflow-wrap:anywhere;transition:border-color .16s,background .16s}
.name-option:hover{background:#f5f7ff;border-color:#b9c6f5}
.name-option.is-active{border-color:var(--blue);background:#eef1ff;box-shadow:inset 0 0 0 1px var(--blue)}
.name-hint{margin-top:10px;font-size:12.5px;line-height:1.5}
.access-note{margin-top:14px;padding:12px 14px;border:1px solid #f0dfb7;border-radius:12px;background:#fffaef;color:#6b5322;font-size:12.5px;line-height:1.5}
.access-note a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.creature-note{margin-top:14px;padding:12px 14px;border:1px solid #e3e8f5;border-radius:12px;background:#f7f9ff;color:#4c5577;font-size:12.5px;line-height:1.5}
.avatar-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.avatar-choice{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px;min-height:84px;padding:8px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.avatar-choice img{width:68px;height:68px;border-radius:12px;object-fit:cover;display:block;background:#f3ebff}
.avatar-choice span{font-size:13.5px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.avatar-choice:hover{background:#f5f7ff;border-color:#b9c6f5}
.avatar-choice.is-active{border-color:var(--blue);background:#eef1ff;box-shadow:inset 0 0 0 1px var(--blue)}
.reel-button:focus-visible,.dice-button:focus-visible,.name-option:focus-visible,.avatar-choice:focus-visible{outline:3px solid #3158ff55;outline-offset:2px}
.no-js .profile-editor,.no-js .profile-actions,.no-js .profile-status{display:none}
@media(max-width:900px){
  .profile-layout{grid-template-columns:1fr}
  .profile-preview{position:static}
  .avatar{max-width:360px}
  .panel{padding:20px}
}
@media(max-width:700px){
  .name-reels{grid-template-columns:1fr}
  .dice-button{justify-self:center;width:52px;height:52px}
}
@media(max-width:600px){
  .profile{padding-bottom:54px}
  .profile-card,.panel{padding:18px;border-radius:20px}
  .profile-name{font-size:clamp(28px,8.2vw,38px)}
  .name-options{grid-template-columns:1fr}
  .reel{min-height:58px}
  .reel-word{font-size:16px}
  .avatar-choices{grid-template-columns:1fr}
}
@media(max-width:380px){
  .avatar-choice{grid-template-columns:58px minmax(0,1fr);min-height:74px}
  .avatar-choice img{width:58px;height:58px}
  .profile-card,.panel{padding:15px}
}
@media(prefers-reduced-motion:reduce){
  .dice-button,.name-option,.avatar-choice,.reel-button{transition:none}
  .dice-button:hover{transform:none}
}

/* ===== 2026-11-22 playroom profile shell ===== */
.profile{padding-bottom:76px}
.profile-hero{padding-top:34px}
.profile-hero h1{font-family:var(--display);font-size:clamp(44px,6.3vw,72px);line-height:.93;letter-spacing:-.052em}
.profile-hero .lead{font-size:17px;max-width:64ch}
.profile-card{background:var(--card);border-color:var(--line);border-radius:32px;padding:20px}
.avatar-stage{background:linear-gradient(150deg,#f3ebff,#fff8ef);border-color:#e4d5f1;border-radius:26px;padding:10px}
.avatar{border-radius:30px}
.profile-kicker{color:var(--blue);font-family:var(--display);font-size:11px;letter-spacing:.08em}
.profile-name{font-family:var(--display);font-weight:800;letter-spacing:-.045em}
.profile-caption{font-size:13.5px}
.profile-note{background:#f8f2ff;border-color:#e4d6f0;color:#57476e}
.panel{background:var(--card);border-color:var(--line);border-radius:28px}
.panel h2{font-family:var(--display);font-size:28px;font-weight:800}
.reel{background:#fffaf2;border-color:var(--line);border-radius:18px}
.reel-button{border-radius:14px}
.reel-word{font-family:var(--display);font-size:17px}
.name-option{border-color:var(--line);background:#fffaf2;border-radius:15px}
.name-option:hover{background:#fff;border-color:#cdbce6}
.name-option.is-active{border-color:var(--blue);background:#f1edff;box-shadow:inset 0 0 0 1px var(--blue)}
.avatar-choices{gap:9px}
.avatar-choice{background:#fffaf2;border-color:var(--line);border-radius:18px}
.avatar-choice:hover{background:#fff;border-color:#cdbce6}
.avatar-choice.is-active{border-color:var(--blue);background:#f1edff;box-shadow:inset 0 0 0 1px var(--blue)}
.access-note{border-color:#eedba9;background:#fff8e7;color:#6b5322}
.creature-note{border-color:#e4d6f0;background:#f8f2ff;color:#57476e}
.profile-status{color:var(--muted)}
@media(max-width:600px){
 .profile-card{padding:14px;border-radius:25px}
 .avatar-stage{border-radius:21px;padding:7px}
 .avatar{border-radius:24px}
 .panel h2{font-size:24px}
 .profile-hero h1{font-size:clamp(36px,11vw,52px)}
}

/* ===== 2026-11-22 profile modes ===== */
.profile-actions[hidden],.profile-editor[hidden]{display:none}
.profile[data-mode="summary"] .profile-editor{display:none}
.profile[data-mode="summary"] [data-profile-actions="edit"]{display:none}
.profile[data-mode="create"] [data-profile-actions="summary"],
.profile[data-mode="edit"] [data-profile-actions="summary"]{display:none}
.profile[data-mode="summary"] .profile-layout{grid-template-columns:minmax(0,560px);justify-content:center}
.profile[data-mode="summary"] .profile-preview{position:static}
.profile[data-mode="summary"] .profile-card{box-shadow:0 18px 50px #533a7f14}
html.profile-saved .profile[data-mode="create"] .profile-editor{display:none}
html.profile-saved .profile[data-mode="create"] [data-profile-actions="edit"]{display:none}
html.profile-saved .profile[data-mode="create"] [data-profile-actions="summary"]{display:flex}
html.profile-saved .profile-layout{grid-template-columns:minmax(0,560px);justify-content:center}
html.profile-saved .profile-preview{position:static}
.profile-status{min-height:22px}
.profile-status:empty{display:none}
.profile-local-note{margin-top:16px;color:var(--muted);font-size:12.5px;line-height:1.5}
.profile-local-note a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
@media(min-width:901px){
  .profile[data-mode="summary"] .profile-hero{text-align:center}
  .profile[data-mode="summary"] .profile-hero .lead{margin-inline:auto}
}

/* ===== server profile: code and conflict panels ===== */
.profile-link-panel,.profile-conflict-panel{margin-top:14px;padding:14px 15px;border:1px solid #d8e0f8;border-radius:16px;background:#f5f7ff}
.profile-link-text,.profile-conflict-panel p{color:var(--ink);font-size:13px;line-height:1.45}
.profile-link-panel .profile-actions,.profile-conflict-panel .profile-actions{margin-top:10px}
.profile-code{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.profile-code p{color:var(--muted);font-size:12px}
.profile-code-value{display:block;margin:6px 0 8px;font-family:var(--display);font-size:24px;font-weight:800;letter-spacing:.08em;overflow-wrap:anywhere}
.profile-conflict-panel{border-color:#f0d7a8;background:#fffaf0}

/* Hero roster: five heroes, then their free/pass variants. */
.hero-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}
.hero-choice{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:9px;min-height:68px;padding:7px;border:1px solid var(--line);border-radius:16px;background:#fffaf2;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
.hero-choice img{width:54px;height:54px;border-radius:12px;object-fit:cover;display:block;background:#f3ebff}
.hero-choice span{font-size:13px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.hero-choice:hover{background:#fff;border-color:#cdbce6}
.hero-choice.is-active{border-color:var(--blue);background:#f1edff;box-shadow:inset 0 0 0 1px var(--blue)}
.variant-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.variant-heading h3{font-family:var(--display);font-size:18px;font-weight:800;letter-spacing:-.02em}
.variant-heading span{color:var(--muted);font-size:12px;font-weight:600}
@media(max-width:600px){
 .hero-choices{grid-template-columns:1fr 1fr;gap:6px}
 .hero-choice{grid-template-columns:44px minmax(0,1fr);min-height:58px;padding:5px;border-radius:13px}
 .hero-choice img{width:44px;height:44px;border-radius:10px}
 .hero-choice span{font-size:11.5px}
}
