/* АРХИМЕД · приложение родителя — оформление.
   Палитра и кнопки те же, что в детском приложении, чтобы это читалось как один продукт. */
:root { --deep:#0b1712; --panel:#13251c; --card:#182f24; --card2:#101f18;
  --brass:#d9a441; --brass-d:#a3762a; --ivory:#e8e0cc; --muted:#8fa08f;
  --glass:#7fb8a0; --glow:#7fd1ff; --danger:#e86a5a; --ok:#5f9a6a;
  --hairline:rgba(217,164,65,.25); }
* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
body { font-family:Georgia,'Times New Roman',serif; color:var(--ivory); min-height:100vh;
  background: radial-gradient(ellipse at 50% -10%, #1a3226 0%, transparent 55%),
    radial-gradient(ellipse at 90% 110%, #132a20 0%, transparent 45%), var(--deep); }
.wrap { max-width:900px; margin:0 auto; padding:14px 14px 110px; }
header { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  border-bottom:1px solid var(--hairline); padding-bottom:10px; margin-bottom:12px; }
.logo { font-size:20px; color:var(--brass); letter-spacing:.05em; display:flex; align-items:center; gap:10px; }
.logo small { display:block; font-size:11.5px; color:var(--muted); letter-spacing:.02em; margin-top:2px; }
.logo .app-mark { width:40px; height:40px; border-radius:10px; flex-shrink:0;
  box-shadow:0 4px 16px -6px rgba(217,164,65,.6); }
.logo .logo-txt { line-height:1.15; }
.hud { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip { background:var(--panel); border:1px solid var(--hairline); border-radius:999px; padding:5px 12px; font-size:12.5px; }
.chip b { color:var(--brass); }
.small { font-size:12.5px; color:var(--muted); line-height:1.5; }
.card { background:linear-gradient(180deg,rgba(24,47,36,.92),rgba(16,31,24,.92)); border:1px solid var(--hairline);
  border-radius:16px; padding:14px; }
h2 { font-size:19px; color:var(--brass); font-weight:normal; }

/* кнопки — как в детском приложении, с мягким золотым бликом */
@keyframes arSheen {
  0%   { transform:translateX(-165%) skewX(-16deg); opacity:0 }
  14%  { opacity:.6 }
  32%  { opacity:.85 }
  60%  { opacity:.95 }
  84%  { opacity:.6 }
  100% { transform:translateX(245%) skewX(-16deg); opacity:0 }
}
.btn { position:relative; overflow:hidden; font-family:inherit; font-size:14.5px; cursor:pointer;
  color:#20180a; background:linear-gradient(180deg,#f3d58a,#d9a441 55%,#b9852c);
  border:1px solid rgba(255,240,200,.55); border-radius:12px; padding:11px 16px; min-height:46px;
  transition:.15s; }
.btn:hover { filter:brightness(1.06); box-shadow:0 0 0 1px rgba(255,215,106,.35), 0 10px 22px -10px rgba(255,196,90,.7); }
.btn::after { content:''; position:absolute; top:-70%; left:0; width:54%; height:240%; pointer-events:none; opacity:0;
  background:linear-gradient(97deg,
    rgba(255,215,106,0)    0%, rgba(255,224,140,.03) 10%, rgba(255,230,160,.12) 22%,
    rgba(255,236,180,.30) 34%, rgba(255,240,200,.46) 44%, rgba(255,243,212,.52) 50%,
    rgba(255,240,200,.46) 56%, rgba(255,236,180,.30) 66%, rgba(255,230,160,.12) 78%,
    rgba(255,224,140,.03) 90%, rgba(255,215,106,0) 100%);
  filter:blur(6px); transform:translateX(-165%) skewX(-16deg); }
.btn:hover::after, .btn:focus-visible::after { opacity:1; animation:arSheen 1.45s cubic-bezier(.35,.05,.25,1); }
.btn.ghost { color:var(--ivory); background:linear-gradient(180deg,#22422f,#16301f); border-color:#3d5c49; }
.btn.ghost:hover { border-color:rgba(255,215,106,.85); }
.btn:disabled { opacity:.55; cursor:default; }
@media (prefers-reduced-motion: reduce) {
  .btn::after { animation:none !important; opacity:0 !important; }
}
.gate-in { width:100%; font-family:inherit; font-size:16px; padding:12px 12px; margin:4px 0 10px;
  border:2px solid var(--hairline); border-radius:12px; background:#0d1a13; color:var(--ivory); outline:none; min-height:52px; }
.gate-in:focus { border-color:var(--brass); box-shadow:0 0 0 3px rgba(217,164,65,.18); }
.gate-in.code { font-size:22px; letter-spacing:.14em; text-align:center; text-transform:uppercase; }
.gate-in.pin { font-size:22px; letter-spacing:.42em; text-align:center; }
.rod-login { max-width:400px; margin:18px auto; }
.rod-login-ico { font-size:38px; line-height:1; }
.rod-login-ico img { width:84px; height:84px; border-radius:22px; display:block; margin:0 auto 4px;
  box-shadow:0 10px 28px -12px rgba(217,164,65,.7); }
.rod-go { width:100%; min-height:52px; font-size:16px; }
.rod-go:disabled { opacity:.6; }
.rod-check { display:flex; gap:10px; align-items:center; margin:8px 0 4px; min-height:44px; }
.rod-check input { width:18px; height:18px; accent-color:var(--brass); }
.rod-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.rod-sep { display:flex; align-items:center; gap:10px; margin:18px 0 8px; }
.rod-sep i { flex:1; height:1px; background:linear-gradient(90deg,rgba(217,164,65,.45),transparent); }
.rod-sep b { font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--brass); font-weight:normal; }
.rod-key { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.rod-code { font-size:22px; color:var(--brass); letter-spacing:.08em; }
.rod-note-in { width:100%; min-height:74px; resize:vertical; font-family:inherit; font-size:14px; line-height:1.5;
  padding:10px 12px; border:1px solid var(--hairline); border-radius:10px; background:#0d1a13; color:var(--ivory); }
.rod-note { border-left:3px solid var(--brass); background:rgba(255,255,255,.03); border-radius:8px; padding:7px 10px; margin-top:6px; }
.rod-note .t { font-size:14px; line-height:1.45; }
.rod-note .d { font-size:11px; color:var(--muted); margin-top:2px; }
.rod-err { color:var(--danger); font-size:13px; min-height:18px; margin-top:2px; }
.rod-ok { color:var(--ok); font-size:13px; min-height:18px; margin-top:2px; }
.rod-ava img { width:100%; height:100%; object-fit:cover; object-position:center 18%; display:block; }
.rod-who { display:flex; gap:10px; justify-content:center; margin:0 0 14px; }
.rod-who-btn { flex:1 1 120px; max-width:168px; display:flex; flex-direction:column; align-items:center; gap:6px;
  background:#20382b; color:var(--ivory); border:2px solid var(--hairline); border-radius:16px;
  padding:10px 8px 8px; cursor:pointer; font-family:inherit; font-size:14px; min-height:104px; }
.rod-who-btn img { width:56px; height:56px; border-radius:50%; object-fit:cover; object-position:center 18%;
  display:block; box-shadow:0 0 0 2px rgba(217,164,65,.28); background:#0d1a13; }
.rod-who-btn.sel { border-color:var(--brass); background:rgba(217,164,65,.18); color:var(--brass); font-weight:bold; }
.rod-who-btn.sel img { box-shadow:0 0 0 2px var(--brass); }
.rod-who-mini { font-family:inherit; font-size:12.5px; cursor:pointer; color:var(--ivory);
  background:#20382b; border:1px solid var(--hairline); border-radius:999px; padding:4px 12px; margin-left:4px; }
.rod-who-mini.sel { border-color:var(--brass); color:var(--brass); background:rgba(217,164,65,.18); }
.toast { position:fixed; left:50%; bottom:86px; transform:translateX(-50%) translateY(20px); opacity:0;
  background:rgba(19,37,28,.97); border:1px solid var(--hairline); border-radius:12px; padding:10px 16px;
  font-size:13.5px; pointer-events:none; transition:.25s; z-index:96; max-width:88vw; text-align:center; }
.toast.on { opacity:1; transform:translateX(-50%) translateY(0); }
.nav { position:fixed; left:0; right:0; bottom:0; display:flex; justify-content:center; background:rgba(11,23,18,.97);
  border-top:1px solid var(--hairline); z-index:85; backdrop-filter:blur(6px);
  padding:6px 8px env(safe-area-inset-bottom,0px); max-width:900px; margin:0 auto; }
.nav button { flex:1; max-width:420px; background:none; border:0; color:var(--muted); font-family:inherit; font-size:12px;
  padding:8px 6px; border-radius:10px; display:flex; flex-direction:column; align-items:center; gap:2px; }
.nav button.active { color:var(--brass); background:rgba(217,164,65,.1); }
.nav button .ic { font-size:19px; }
/* диалог подтверждения (в приложении родителя своих модальных окон нет) */
.rod-dim { position:fixed; inset:0; z-index:152; display:flex; align-items:center; justify-content:center;
  padding:max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background:radial-gradient(120% 80% at 50% 0%, rgba(26,50,38,.97), rgba(4,9,6,.98) 62%);
  -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); }
.rod-dcard { width:100%; max-width:430px; max-height:calc(100vh - 24px); overflow:auto; text-align:center;
  background:linear-gradient(180deg,#1a3226,#101f18); border:1px solid rgba(217,164,65,.5); border-radius:20px;
  padding:20px 18px 16px; box-shadow:0 24px 70px rgba(0,0,0,.7); }
.rod-dkick { font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--brass); }
.rod-dtext { font-size:16px; line-height:1.55; color:var(--ivory); margin:12px 0 4px; }
.rod-drow { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.rod-drow .btn { flex:1 1 46%; min-height:50px; }

@media (max-width:520px){
  .wrap { padding:10px 10px 104px; }
  .logo { font-size:18px; }
  .chip { font-size:11.5px; padding:4px 9px; }
  header { gap:6px; }
  .gate-in.code { font-size:18px; letter-spacing:.08em; }
  .rod-key { flex-direction:column; align-items:flex-start; }
  .rod-row .btn { flex:1 1 100%; }
  .rod-drow .btn { flex:1 1 100%; }
  .rod-login { margin:10px auto; }
}
@media (max-width:360px){
  .logo { font-size:16px; }
  .gate-in.code { font-size:16px; letter-spacing:.06em; }
}
@media (max-height:500px){
  .wrap { padding-bottom:80px; }
  .rod-login-ico { font-size:28px; }
}
