/* Tab pupils module — picture login (same pastel style as the site) */
.tp-start{display:flex;flex-direction:column;align-items:center;gap:10px}
.tp-choices{display:flex;flex-direction:column;gap:clamp(14px,2.6vmin,22px);align-items:stretch;width:min(560px,92vw)}
.tp-choice{display:flex;align-items:center;justify-content:center;gap:14px;min-height:clamp(84px,13vmin,112px);padding:10px 26px;border-radius:44px;box-shadow:var(--shadow);font-size:clamp(25px,4.4vmin,38px);font-weight:700;border:0;cursor:pointer}
.tp-login-btn{background:var(--lav-soft,#ebe6f7);color:#5d4f94}
.tp-guest-btn{background:var(--sun-soft,#fcefc9);color:#7a5a12}
.tp-choice .tp-key{font-size:1.25em}
.tp-choice:active{transform:translateY(3px)}
.tp-key{font-size:1.1em}
.tp-two{display:flex;gap:4px}.tp-two img{width:46px;height:46px}
.tp-me{display:flex;align-items:center;gap:14px;background:var(--card,#fffdf8);border-radius:40px;padding:8px 24px 8px 12px;box-shadow:var(--shadow)}
.tp-me-pic{width:64px;height:64px}
.tp-hello{font-size:clamp(26px,4.6vmin,40px);font-weight:700;color:var(--teal,#3f8f86)}
.tp-switch{font-size:16px;color:var(--muted,#6b7780);background:transparent;border:2px solid #e2ddd2;border-radius:20px;padding:6px 14px;min-height:40px}
.tp-switch.sure{background:var(--coral-soft,#fbe3d8);border-color:var(--coral,#e8956f);color:#8a4a2c;font-weight:700}
.tp-switch.sm{min-height:36px;font-size:15px}
.tp-home{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
.tp-hchip{display:inline-flex;align-items:center;gap:8px;background:var(--card,#fffdf8);border-radius:30px;padding:4px 16px 4px 8px;box-shadow:var(--shadow);font-size:20px;font-weight:700;min-height:52px}
.tp-hpic{width:40px;height:40px}
.tp-over{position:fixed;inset:0;z-index:200;background:rgba(246,241,231,.97);display:grid;place-items:center;padding:12px;overflow:auto}
.tp-card{position:relative;background:var(--card,#fffdf8);border-radius:var(--radius,28px);box-shadow:var(--shadow);padding:18px 14px 22px;width:min(680px,100%);text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.tp-x{position:absolute;top:10px;inset-inline-end:10px;width:52px;height:52px;border-radius:18px;background:#f1ece2;font-size:24px}
.tp-h{font-size:clamp(26px,5vmin,40px);color:var(--teal,#3f8f86);font-weight:700}
.tp-slots{display:flex;align-items:center;gap:12px}
.tp-slot{width:clamp(70px,16vmin,104px);height:clamp(70px,16vmin,104px);border-radius:22px;border:4px dashed #d9d2c4;display:grid;place-items:center;background:#faf7f0}
.tp-slot.on{border-style:solid;border-color:var(--teal,#3f8f86);background:var(--teal-soft,#d9eeea)}
.tp-slot img{width:80%;height:80%}
.tp-plus{font-size:34px;color:#c9c1b2;font-weight:700}
.tp-msg{min-height:1.6em;font-size:clamp(18px,3.4vmin,26px);color:#8a4a2c}
.tp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(8px,2vmin,16px);width:100%}
.tp-cell{aspect-ratio:1;border-radius:24px;background:#faf7f0;box-shadow:0 4px 0 rgba(47,59,69,.10);display:grid;place-items:center;border:4px solid transparent;max-height:140px;justify-self:center;width:100%;max-width:140px;cursor:pointer}
.tp-cell img{width:72%;height:72%}
.tp-cell:active{transform:translateY(3px)}
.tp-cell.on{border-color:var(--teal,#3f8f86);background:var(--teal-soft,#d9eeea)}
.tp-welcome{display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 0}
.tp-big{width:clamp(110px,28vmin,180px);height:clamp(110px,28vmin,180px)}
.tp-go{margin-top:6px}
.tp-wiggle{animation:tpw .5s}
@keyframes tpw{0%,100%{transform:translateX(0)}25%{transform:translateX(-10px)}75%{transform:translateX(10px)}}
a.tp-morah{text-decoration:none;color:inherit;display:flex}
@media (max-height:700px){.tp-cell{max-height:100px;max-width:100px}.tp-card{gap:6px;padding-top:12px}}
@media (prefers-reduced-motion:reduce){.tp-wiggle{animation:none}}
.tp-cell.on{border-color:var(--teal,#3f8f86);background:var(--teal-soft,#d9eeea)}
.tp-cell.tp-wiggle{border-color:var(--coral,#e8956f);background:var(--coral-soft,#fbe3d8)}

.tp-linkmsg{margin:0;font-size:clamp(18px,3vmin,24px);color:#8a4a2c;background:var(--coral-soft,#fbe3d8);border-radius:18px;padding:8px 18px;text-align:center}
