
/* Participant cabinet: burger navigation, mobile bottom bar, 760px content;
   the gallery alone expands to 1160px on desktop. */
:root{
  --bg:#F3EEE8; --surface:#FFFFFF; --sunk:#EBE4DC; --ink:#1E1B18; --muted:#6B625B; --line:#E2D9CF;
  --accent:#F2601F; --accent-ink:#B5420E; --accent-soft:#FCE6D9; --on-accent:#FFFFFF;
  --head:#1E1B18; --head-fg:#F3EEE8; --head-muted:#A99E94;
  --ok:#2E7A4E; --ok-soft:#DDF0E3; --warn:#9A6411; --warn-soft:#F8EBCF; --bad:#B3261E; --bad-soft:#F7DEDB; --info:#33598C; --info-soft:#DDE7F5;
  --proto:#2B2622; --proto-fg:#E9E1D8;
  --f-display:"Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body:"Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r:12px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#1A1714; --surface:#25201C; --sunk:#2E2823; --ink:#F3EEE8; --muted:#A99E94; --line:#3A332D;
  --accent:#F2601F; --accent-ink:#FF9A66; --accent-soft:#3A2418; --on-accent:#FFFFFF;
  --head:#110F0D; --head-fg:#F3EEE8; --head-muted:#A99E94;
  --ok:#7BC897; --ok-soft:#1E3326; --warn:#E9B65E; --warn-soft:#3A2D14; --bad:#F08A80; --bad-soft:#3D1D1A; --info:#94B6E6; --info-soft:#1C2A3D;
  --proto:#0B0A09; --proto-fg:#D8CFC6; color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#1A1714; --surface:#25201C; --sunk:#2E2823; --ink:#F3EEE8; --muted:#A99E94; --line:#3A332D;
  --accent:#F2601F; --accent-ink:#FF9A66; --accent-soft:#3A2418; --on-accent:#FFFFFF;
  --head:#110F0D; --head-fg:#F3EEE8; --head-muted:#A99E94;
  --ok:#7BC897; --ok-soft:#1E3326; --warn:#E9B65E; --warn-soft:#3A2D14; --bad:#F08A80; --bad-soft:#3D1D1A; --info:#94B6E6; --info-soft:#1C2A3D;
  --proto:#0B0A09; --proto-fg:#D8CFC6; color-scheme:dark }

*{box-sizing:border-box}
body{margin:0;background:var(--bg); color:var(--ink); font:500 15px/1.55 var(--f-body)}
button,input,select,textarea{font:inherit; color:inherit}
a{color:var(--accent-ink)}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
h1,h2,h3{font-family:var(--f-display); font-weight:500; letter-spacing:-.02em; text-wrap:balance; margin:0}
h1{font-size:clamp(25px,5.4vw,32px); line-height:1.12}
h2{font-size:18px; line-height:1.25}
h3{font-size:15px; line-height:1.3}
p{margin:0}
.num{font-variant-numeric:tabular-nums}

/* прототип */
.proto{background:var(--proto);color:var(--proto-fg);font-size:13px;padding:8px 16px}
.proto-summary{max-width:1160px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 20px;align-items:center}
.proto-summary b{font:600 10px/1.5 var(--f-body);letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.proto-back,.proto-toggle,.proto-login{color:var(--proto-fg);font-size:13px;font-weight:600;text-underline-offset:3px}
.proto-toggle,.proto-login{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 0;border:0;background:none;cursor:pointer;text-decoration:underline}
.proto-back{white-space:nowrap}
.proto-login{color:var(--accent);align-self:end;min-height:38px}
.proto-controls{max-width:1000px;margin:8px auto 4px;padding:16px 0 4px;border-top:1px solid #5A514A;display:grid;gap:16px}
.proto-basic{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:12px 20px;align-items:end}
.proto-basic label{display:grid;gap:6px;min-width:0}
.proto select{min-width:0;width:100%;max-width:100%;min-height:38px;background:var(--proto);border:1px solid #5A514A;border-radius:8px;padding:6px 10px;color:var(--proto-fg)}
.proto select option{background:var(--proto);color:var(--proto-fg)}
.proto-fields{display:grid;gap:12px}
.proto-field-settings{order:-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 20px;align-items:center}
.proto-field-settings label{min-width:0}
.proto-checkbox{display:flex;gap:8px;align-items:center}
.proto-checkbox input{margin:0;width:16px;height:16px;flex:none;accent-color:var(--accent)}
.proto-hint{font-size:12px;color:#A99E94}
@media(max-width:640px){
 .proto-summary{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
 .proto-summary b{grid-column:1/-1}
 .proto-basic{grid-template-columns:minmax(0,1fr)}
 .proto-login{justify-self:start}
 .proto-field-settings{grid-template-columns:minmax(0,1fr);gap:6px}
 .proto-field-settings select{margin-bottom:8px}
 .proto-field-settings .proto-checkbox{margin-top:4px}
}

/* шапка */
.hdr{position:sticky; top:env(safe-area-inset-top,0px); z-index:20; background:var(--head); color:var(--head-fg); display:flex; align-items:center; gap:12px; padding:10px 16px; min-height:56px}
.logo{font:600 18px/1 var(--f-display); color:var(--accent); letter-spacing:-.02em; text-decoration:none; background:none; border:0; padding:0; cursor:pointer}
.logo small{display:block; font:600 9px/1.4 var(--f-body); letter-spacing:.18em; color:var(--head-muted)}
.hdr .ctx{font-size:13px; color:var(--head-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1}
.bell{position:relative; background:none; border:0; color:var(--head-fg); width:40px; height:40px; border-radius:10px; cursor:pointer; display:grid; place-items:center}
.bell i{position:absolute; top:6px; right:6px; min-width:16px; height:16px; border-radius:8px; background:var(--accent); color:#fff; font:700 10px/16px var(--f-body); font-style:normal; padding:0 4px}
.burger{width:40px; height:40px; border-radius:10px; border:1px solid #4A423C; background:none; cursor:pointer; display:grid; place-content:center; gap:4px}
.burger span{display:block; width:18px; height:2px; background:var(--head-fg); border-radius:1px}

/* каркас */
.shell{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:760px;margin:0 auto}
.rail{display:none}
main{padding:18px 16px 64px; min-width:0; max-width:760px; width:100%; margin:0 auto; display:grid; gap:24px; align-content:start}
@media (min-width:920px){main{padding:24px 20px 64px}}
.nav{display:grid; gap:2px}
.nav button{all:unset; box-sizing:border-box; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; font-weight:600; font-size:14px; color:var(--ink)}
.nav button:hover{background:var(--sunk)}
.nav button[aria-current="page"]{background:var(--surface); box-shadow:inset 3px 0 0 var(--accent)}
.nav button:focus-visible{outline:2px solid var(--accent)}
.nav .cnt{font:700 11px/18px var(--f-body); min-width:20px; text-align:center; border-radius:9px; background:var(--accent); color:#fff; padding:0 6px}
.nav .sep{height:1px; background:var(--line); margin:8px 4px}
.nav .out{color:var(--muted); font-weight:500}

/* выезжающее меню */
.drawer{position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.45); display:flex; justify-content:flex-end}
.drawer .panel{width:min(320px,86vw); background:var(--bg); height:100%; overflow:auto; padding:calc(14px + env(safe-area-inset-top,0px)) 14px 24px; display:grid; gap:12px; align-content:start}
.drawer .phead{display:flex; justify-content:space-between; align-items:center}
.x{width:40px; height:40px; border-radius:10px; border:1px solid var(--line); background:var(--surface); cursor:pointer; font-size:20px; line-height:1}

/* элементы */
.crumb{display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:13px; color:var(--muted)}
.crumb button{all:unset; cursor:pointer; color:var(--muted); font-weight:600; text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px}
.crumb .up{text-decoration:none; color:var(--ink); font-size:18px; line-height:1; padding:2px 8px 4px; margin-left:-8px; border-radius:8px}
.crumb button:focus-visible{outline:2px solid var(--accent)}
.back{all:unset; cursor:pointer; font-weight:600; font-size:14px; color:var(--accent-ink); display:inline-flex; gap:6px; align-items:center}
.back:focus-visible{outline:2px solid var(--accent)}
.card{background:var(--surface); border:0; border-radius:var(--r); padding:18px; display:grid; gap:12px; min-width:0}
.lead{font-size:17px; line-height:1.55}
.focus{display:grid; gap:4px; padding:14px 16px; border-radius:var(--r); background:var(--accent-soft)}
.focus .lbl{font:700 12px/1 var(--f-body); color:var(--accent-ink)}
.focus .deadline .d{font-size:26px}
.card.hero{border:0; background:var(--head); color:var(--head-fg)}
.card.hero .muted{color:var(--head-muted)}
.card.hero .eyebrow{color:var(--head-muted)}
.card.hero h2{font-size:22px}
.eyebrow{font:600 11px/1.3 var(--f-body); letter-spacing:.14em; text-transform:uppercase; color:var(--muted)}
.muted{color:var(--muted)}
.small{font-size:13px}
.row{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.between{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap}
.stack{display:grid; gap:10px}
.grid2{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px}
.btn{appearance:none; border:0; border-radius:10px; padding:11px 16px; min-height:44px; font-weight:700; font-size:14px; cursor:pointer; background:var(--accent); color:var(--on-accent); display:inline-flex; align-items:center; justify-content:center; gap:8px; text-align:center}
.btn.sec{background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line)}
.card.hero .btn.sec{color:var(--head-fg); box-shadow:inset 0 0 0 1.5px #4A423C}
.btn.ghost{background:none; color:var(--ink); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line); padding-inline:4px; min-height:36px; font-weight:600}
.btn[disabled]{opacity:.45; cursor:not-allowed}
.btn.wide{width:100%}
.pill{display:inline-flex; align-items:center; gap:6px; font:700 12px/1.3 var(--f-body); padding:6px 10px; border-radius:999px; background:var(--sunk); color:var(--ink); max-width:100%; white-space:normal}
.pill::before{content:""; width:7px; height:7px; flex:none; border-radius:50%; background:currentColor; opacity:.8}
.pill.ok{background:transparent; color:var(--ok); padding-inline:0} .pill.warn{background:var(--warn-soft); color:var(--warn)} .pill.bad{background:var(--bad-soft); color:var(--bad)} .pill.info{background:var(--info-soft); color:var(--info)} .pill.acc{background:var(--accent-soft); color:var(--accent-ink)}
.pill.plain::before{display:none}
.kv{align-content:start; display:grid; grid-template-columns:minmax(110px,38%) minmax(0,1fr); gap:10px 14px; font-size:14px}
.kv dt{color:var(--muted)} .kv dd{margin:0; min-width:0; overflow-wrap:anywhere}
.list{display:grid; border-top:1px solid var(--line)}
.li{all:unset; box-sizing:border-box; cursor:pointer; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:center; padding:14px 2px; border-bottom:1px solid var(--line)}
.li:hover .t{color:var(--accent-ink)}
.li:focus-visible{outline:2px solid var(--accent)}
.li .t{font-weight:700} .li .s{font-size:13px; color:var(--muted); grid-column:1} .li .r{grid-row:1 / span 2; grid-column:2; display:flex; gap:8px; align-items:center}
.li .r::after{content:"›"; font-size:20px; color:var(--muted)}
.li.static{cursor:default} .li.static .r::after{content:none}
.deadline{display:grid; gap:2px}
.deadline .d{font:500 22px/1.15 var(--f-display); letter-spacing:-.02em}
.deadline .tz{font-size:12px; color:var(--muted)}
.card.hero .deadline .tz{color:var(--head-muted)}
.note{border-radius:10px; padding:12px 14px; font-size:14px; background:var(--sunk)}
.note.warn{background:var(--warn-soft)} .note.bad{background:var(--bad-soft)} .note.ok{background:var(--ok-soft)} .note.info{background:var(--info-soft)}
.field{display:grid; gap:6px}
.field label{font-weight:700; font-size:14px}
.field .hint{font-size:12px; color:var(--muted)}
.field .err{font-size:13px; color:var(--bad); font-weight:600}
.input{width:100%; border:1.5px solid var(--line); background:var(--surface); border-radius:10px; padding:11px 12px; min-height:44px}
.input:focus{border-color:var(--accent); outline:none}
.input.bad{border-color:var(--bad)}
textarea.input{min-height:110px; resize:vertical}
.pw{position:relative} .pw .input{padding-right:84px}
.pw button{position:absolute; right:6px; top:6px; height:32px; border:0; background:var(--sunk); border-radius:8px; padding:0 10px; font-size:12px; font-weight:700; cursor:pointer}
.steps{list-style:none; margin:0; padding:0; display:grid; gap:0}
.steps li{display:grid; grid-template-columns:28px 1fr; gap:10px; padding:8px 0; position:relative}
.steps li .dot{width:22px; height:22px; border-radius:50%; border:2px solid var(--line); background:var(--surface); display:grid; place-items:center; font:700 11px var(--f-body); margin-top:1px}
.steps li.done .dot{background:var(--ok); border-color:var(--ok); color:#fff}
.steps li.now .dot{border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft)}
.steps li:not(:last-child)::after{content:""; position:absolute; left:10px; top:32px; bottom:-6px; width:2px; background:var(--line)}
.tour{display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; align-items:center}
.tour > div{min-width:0}
@media (max-width:520px){ .tour{grid-template-columns:44px minmax(0,1fr)} .tour .pill{grid-column:2; justify-self:start} }
.tour .no{width:44px; height:44px; border-radius:10px; background:var(--sunk); display:grid; place-items:center; font:600 15px var(--f-display)}
.tour.now .no{background:var(--accent); color:#fff}
.photo{aspect-ratio:4/5; max-width:100%; border-radius:10px; background:linear-gradient(150deg,var(--sunk),var(--line)); display:grid; place-items:center; color:var(--muted); font-size:13px; overflow:hidden; position:relative}
.photo img{width:100%; height:100%; object-fit:cover}
.photo .tag{position:absolute; left:8px; top:8px}
.thumbs{display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px}
.drop{border:2px dashed var(--line); border-radius:12px; padding:22px; text-align:center; display:grid; gap:8px; justify-items:center; cursor:pointer}
.drop:hover{border-color:var(--accent)}
.score{font:500 40px/1 var(--f-display); letter-spacing:-.03em}
.score small{font:600 14px var(--f-body); color:var(--muted); letter-spacing:0}
.stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px}
.stat{background:var(--sunk); border-radius:10px; padding:12px 14px; display:grid; gap:4px}
.stat b{font:500 20px/1.1 var(--f-display)} .stat span{font-size:12px; color:var(--muted)}
.bar{height:8px; border-radius:4px; background:var(--sunk); overflow:hidden} .bar i{display:block; height:100%; background:var(--accent)}
.msg{display:grid; gap:4px; max-width:88%; padding:10px 12px; border-radius:12px; background:var(--sunk); font-size:14px}
.msg.me{justify-self:end; background:var(--accent-soft)}
.msg .who{font-size:12px; color:var(--muted); font-weight:700}
.switch{display:flex; justify-content:space-between; gap:12px; align-items:center}
.tg{appearance:none; width:46px; height:28px; border-radius:14px; background:var(--line); position:relative; cursor:pointer; flex:none; border:0}
.tg::after{content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; transition:left .15s}
.tg:checked{background:var(--ok)} .tg:checked::after{left:21px}
.toast{position:fixed; left:50%; bottom:calc(20px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); background:var(--ink); color:var(--bg); padding:12px 16px; border-radius:10px; font-weight:700; font-size:14px; z-index:60; max-width:calc(100% - 32px)}
.skel{height:14px; border-radius:6px; background:linear-gradient(90deg,var(--sunk),var(--line),var(--sunk)); background-size:200% 100%; animation:sk 1.2s linear infinite}
@keyframes sk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){ .skel{animation:none} .tg::after{transition:none} }
.auth{max-width:440px; margin:0 auto; width:100%}
.modal{position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.5); display:grid; place-items:center; padding:16px}
.modal .card{max-width:440px; width:100%}
/* нижняя панель (телефон) */
.tabbar{position:fixed; left:0; right:0; bottom:0; z-index:30; background:var(--surface); border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(5,1fr); padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px))}
.tabbar button{all:unset; box-sizing:border-box; cursor:pointer; display:grid; justify-items:center; gap:2px; padding:6px 2px; border-radius:10px; font:700 11px/1.2 var(--f-body); color:var(--muted); position:relative; min-height:52px; align-content:center}
.tabbar button svg{width:22px; height:22px}
.tabbar button[aria-current="page"]{color:var(--accent-ink)}
.tabbar button:focus-visible{outline:2px solid var(--accent)}
.tabbar .cnt{position:absolute; top:4px; left:calc(50% + 6px); font:700 10px/16px var(--f-body); min-width:16px; height:16px; border-radius:8px; background:var(--accent); color:#fff; padding:0 4px; text-align:center}
.sheet{position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.45); display:flex; align-items:flex-end}
.sheet .panel{width:100%; background:var(--bg); border-radius:16px 16px 0 0; padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px)); display:grid; gap:10px}
.sheet .grip{width:40px; height:4px; border-radius:2px; background:var(--line); justify-self:center}
/* закреплённое действие */
.actbar{position:sticky; bottom:0; z-index:15; background:linear-gradient(transparent,var(--bg) 22%); padding-block:18px 12px; display:grid}
@media (max-width:919px){ .toast{bottom:calc(140px + env(safe-area-inset-bottom,0px))} main{padding-bottom:150px} .actbar{position:fixed; left:0; right:0; bottom:calc(61px + env(safe-area-inset-bottom,0px)); padding:18px 16px 10px} .hdr{min-height:52px} }
@media (min-width:920px){ .tabbar{display:none} }
/* крошки и согласия */
.crumb .up{font-weight:700}
.chk{display:grid; grid-template-columns:24px 1fr; gap:10px; align-items:start; font-size:14px; cursor:pointer}
.chk input{width:22px; height:22px; margin:1px 0 0; accent-color:var(--accent)}
.lnk{all:unset; cursor:pointer; color:var(--accent-ink); font-weight:700; text-decoration:underline; text-underline-offset:2px}
.lnk:focus-visible{outline:2px solid var(--accent)}
.photo.big{aspect-ratio:4/5; max-width:340px; width:100%}
details.more summary{cursor:pointer; font-weight:700; font-size:14px; color:var(--accent-ink); padding:6px 0}
details.more .kv{margin-top:8px}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}


/* Shared cabinet navigation. Keep the agreed burger and mobile bottom bar. */
[hidden]{display:none!important}
.burger{order:4}.bell{order:3}.hdr .ctx{order:2}
.drawer .panel{width:min(340px,90vw)}
.drawer .nav button{min-height:44px}
.btn{font-size:13px;min-height:40px}
body.menu-open{overflow:hidden}
main>*{min-width:0}main h1{overflow-wrap:anywhere}
.participant-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gallery-work{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px;text-align:left;display:grid;gap:6px;font:inherit;color:inherit;cursor:pointer}.gallery-work img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px}.gallery-work span,.gallery-work small{font-size:12px}.gallery-photo-dialog{border:0;border-radius:16px;width:min(680px,90vw);max-height:90vh;padding:16px}.gallery-photo-dialog img{display:block;width:100%;max-height:75vh;object-fit:contain;margin-top:12px}.gallery-photo-dialog::backdrop{background:#0009}@media(max-width:500px){.participant-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

.gallery-filters .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.gallery-filters .field{min-width:0;display:grid;gap:6px}.gallery-filters select{display:block;width:100%;min-width:0;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font:inherit;color:var(--ink);box-sizing:border-box}.gallery-filters>.field{margin-bottom:12px}.participant-gallery{padding-bottom:12px}.gallery-work{min-width:0;overflow:hidden}.gallery-work img{display:block;max-width:100%}.gallery-photo-dialog{box-sizing:border-box}.gallery-photo-dialog img{max-width:100%}@media(max-width:420px){.gallery-filters .row{grid-template-columns:1fr}}

/* Only the gallery uses the wide desktop canvas. */
@media(min-width:1000px){
 body.gallery-desktop .shell{max-width:1160px}
 body.gallery-desktop main{max-width:none;padding:24px 20px 64px}
 body.gallery-desktop .participant-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
 body.gallery-desktop .gallery-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;align-items:start}
 body.gallery-desktop .gallery-filters>.field{margin:0}
 body.gallery-desktop .gallery-filters .row{margin:0}
}
.gallery-work{appearance:none;align-content:start;overflow-wrap:anywhere}
.gallery-work:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.gallery-work img{height:auto}
.gallery-photo-dialog{background:var(--surface);color:var(--ink);margin:auto;overflow:auto;max-width:calc(100vw - 32px)}
.gallery-link-cover{display:grid;place-items:center;aspect-ratio:1;border-radius:9px;background:var(--sunk);font-size:14px!important}
.gallery-demo-link{overflow-wrap:anywhere;margin:12px 0}

/* ===== Главная: объединённая карточка Игры (11.10.2026) ===== */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hero-game{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.hg-name{font:600 18px/1.2 var(--f-display);color:var(--head-fg)}
.card.hero .pill.ok{color:#7BC897}
.tsteps{list-style:none;margin:2px 0 6px;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.tsteps li{display:grid;gap:6px;font:700 12px/1 var(--f-body);color:var(--head-muted)}
.tsteps li i{display:block;height:6px;border-radius:3px;background:#4A423C}
.tsteps li.done i{background:#7BC897}
.tsteps li.done{color:#7BC897}
.tsteps li.now i{background:var(--accent)}
.tsteps li.now{color:var(--head-fg)}
.card.hero .btn.ghost{color:var(--head-fg)}

/* Программный фокус на main после перехода — без рамки */
main:focus,main:focus-visible{outline:none}

/* ===== Компьютер: меню постоянно слева (11.10.2026) ===== */
@media (min-width:920px){
 .shell{max-width:1040px;grid-template-columns:220px minmax(0,1fr);gap:28px;padding:0 24px;box-sizing:border-box}
 .rail{display:block;position:sticky;top:56px;align-self:start;padding:24px 0;max-height:calc(100vh - 56px);overflow:auto;box-sizing:border-box}
 .hdr .burger{display:none}
 main{margin:0;padding:24px 0 64px;max-width:760px}
}
@media(min-width:1000px){
 body.gallery-desktop .shell{max-width:1240px}
 body.gallery-desktop main{padding:24px 0 64px}
}
@media (min-width:920px){ .hdr{padding-inline:max(24px, calc((100vw - 1040px)/2 + 24px))} }
@media (min-width:1000px){ body.gallery-desktop .hdr{padding-inline:max(24px, calc((100vw - 1240px)/2 + 24px))} }

/* Калибровка на странице результата тура */
.calib{color:var(--accent);letter-spacing:.12em;margin-right:4px}

/* Главная: итоги туров */
.last-res{gap:14px}
.lr-main{display:grid;gap:8px}
.lr-prev{display:grid;gap:4px;border-top:1px solid var(--line);padding-top:14px}

/* Страница Игры: следующий шаг и текущий тур */
.next-step{background:var(--accent-soft)}
.next-step .deadline .d{font-size:26px}
.li.now{background:var(--accent-soft);margin:0 -10px;padding-inline:12px;border-radius:10px;border-bottom-color:transparent}

/* Мои Игры: карточка Игры (шаги туров на светлом фоне) */
.my-game h3{margin:0 0 2px;font-size:18px}
.my-game .tsteps li{color:var(--muted)}
.my-game .tsteps li i{background:var(--sunk)}
.my-game .tsteps li.done,.my-game .tsteps li.done i{color:var(--ok)}
.my-game .tsteps li.done i{background:var(--ok)}
.my-game .tsteps li.now{color:var(--accent-ink)}
.my-game .tsteps li.now i{background:var(--accent)}
.card.empty{gap:6px}
.card.empty p{margin:0}
/* Шаги туров: работа не сдана */
.tsteps li.miss{color:#F08A80}
.tsteps li.miss i{background:#F08A80}
.my-game .tsteps li.miss{color:var(--bad)}
.my-game .tsteps li.miss i{background:var(--bad);opacity:.7}
.out-step{background:var(--warn-soft)}
.tsteps li.lsub{color:#C9B48A} .tsteps li.lsub i{background:#C9B48A}
.my-game .tsteps li.lsub{color:var(--warn)} .my-game .tsteps li.lsub i{background:var(--warn);opacity:.6}
.focus .small{color:var(--accent-ink)}

/* Шаг 5 · Задание: компактный срок, требования, референсы, «работа сдана» */
.focus{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:10px 14px}
.focus .deadline{display:contents}
.focus .lbl{font-size:13px}
.focus .deadline .tz{flex-basis:100%}
.focus .deadline .d{font-size:19px}
.reqs{list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.reqs li{display:flex;gap:8px;align-items:flex-start;font-size:14px;font-weight:600}
.reqs li::before{content:"✓";color:var(--ok);font-weight:700}
.refs .thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
label.btn{cursor:pointer}
.done-head{display:flex;align-items:center;gap:12px}
.ok-ic{flex:none;width:36px;height:36px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;font:700 18px/1 var(--f-body)}

/* Подтверждение сдачи */
.confirm-sheet{z-index:60}
.confirm-sheet .panel{max-width:560px;margin:0 auto;gap:12px}
.ask-row{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start}
.ask-ph{aspect-ratio:3/4;min-height:0;font-size:11px}
.ask-row .kv{margin:0}
@media (min-width:920px){ .confirm-sheet{align-items:center} .confirm-sheet .panel{border-radius:16px} }
.link-focus{box-shadow:0 0 0 2px var(--accent)}

/* Каталог и запись */
.ev-card{gap:8px}
.ev-card h2{margin:0}
details.more.card{padding:14px 18px}
.chk span{line-height:1.45}

/* Мои достижения */
.stat-link{all:unset;box-sizing:border-box;cursor:pointer;display:grid;gap:4px;padding:inherit}
.stats .stat-link{background:var(--sunk);border-radius:var(--r);padding:12px 14px;position:relative}
.stat-link::after{content:"›";position:absolute;right:12px;top:10px;color:var(--muted);font-size:18px}
.stat-link:hover{outline:1.5px solid var(--line)} .stat-link:focus-visible{outline:2px solid var(--accent)}
.stat-link span{font-size:12px;color:var(--muted)} .stat-link b{font:500 20px/1.1 var(--f-display)}
.rchart{width:100%;height:auto;display:block}
.rchart polyline{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round}
.rchart circle{fill:var(--accent)}
.rchart text{font:700 11px var(--f-body);fill:var(--ink)}
.rchart text.ax{font-weight:500;fill:var(--muted)}
/* Компьютер: кнопка действия — обычным блоком после содержимого, без наложения */
@media (min-width:920px){ .actbar{position:static;background:none;padding-block:4px 0} .actbar .btn.wide{max-width:420px} }
.rchart{max-width:560px}
@media (min-width:920px){ .refs .thumbs{grid-template-columns:repeat(3,minmax(0,170px))} }
.rchart line.sep{stroke:var(--line);stroke-width:1;stroke-dasharray:3 3}
.rchart circle.sm{opacity:.55}
.rchart{max-width:640px}
.rchart text{font-size:19px} .rchart text.ax{font-size:16px} .rchart polyline{stroke-width:3}
@media (min-width:920px){ .rchart text{font-size:15px} .rchart text.ax{font-size:13px} }
.rchart text.ax{font-size:19px} @media (min-width:920px){ .rchart text.ax{font-size:14px} }

/* Профиль */
.lbl-static{font-weight:600;font-size:14px}
.static-val{padding:10px 0 2px;font-size:15px}
.pill.always{flex:none}

/* Публичность и правила */
.btn.danger{color:var(--bad);box-shadow:inset 0 0 0 1.5px var(--bad-soft)}
.rules-upd{background:var(--warn-soft)}
.chg{margin:0;padding-left:18px;display:grid;gap:6px}
/* Материал к заданию */
.mat-card{border:1.5px solid var(--accent,#db743b)}
.mat-card .mat-media .photo{aspect-ratio:4/5;width:180px;max-width:100%}
.mat-card .mat-media{margin:6px 0 10px}
.grp-card-p{border:1.5px solid var(--accent,#db743b)}
.partners{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:10px}
.partners li{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.partners li>div{display:grid;gap:2px}
.partners .btn{width:auto}
.pchip{display:inline-block;font-size:11px;font-weight:600;padding:2px 7px;border-radius:6px;margin-left:6px;vertical-align:middle}
.pchip.ok{background:#e5ecdf;color:#49613c}.pchip.wait{background:#fde3cf;color:#8a4a1c}
.crit-bars{list-style:none;margin:10px 0;padding:0;display:grid;gap:10px}
.crit-bars li{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.6fr) 36px;gap:10px;align-items:center;font-size:14px}
.cb-bar{height:8px;border-radius:5px;background:var(--sunk,#eee6da);overflow:hidden}.cb-bar i{display:block;height:100%;background:var(--accent,#db743b);border-radius:5px}
.crit-bars b{text-align:right}
/* ===== Места нажатия на телефоне (12.10.2026) ===== */
@media (pointer:coarse), (max-width:760px){
  .crumb button{padding:10px 0; margin:-10px 0}
  .crumb .up{min-width:40px; min-height:40px; display:inline-flex; align-items:center; justify-content:center; padding:0; margin:-8px 0 -8px -10px}
  .lnk{display:inline-block; padding:10px 2px; margin:-10px -2px}
  .back{padding-top:10px; padding-bottom:10px; margin-top:-10px; margin-bottom:-10px}
  .chk{padding:6px 0}
  .chk input{width:24px; height:24px}
}
/* Призы и скидки (12.10.2026) */
.disc-list{list-style:none;margin:8px 0;padding:0;display:grid;gap:10px}
.disc-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px dashed var(--line);border-radius:12px}
.disc-code{font-weight:700;font-size:16px;letter-spacing:.02em;margin-top:4px;white-space:nowrap}
.disc-list li>div{min-width:0}
