/* Shared by the live page and the test pages: corner pop-ups, calendar, sign in, comments */
.ap-toast{position:fixed;z-index:80;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:min(340px,calc(100vw - 32px));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:center;padding:14px 40px 14px 16px;border-radius:14px;background:#0b0b0b;border:1px solid #2a2a2a;box-shadow:0 20px 50px rgba(0,0,0,.7);color:#fff;font-family:"Satoshi","Helvetica Neue",Arial,sans-serif;font-size:14px;line-height:1.4;transform:translateY(24px);opacity:0;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .35s}
.ap-toast.in{transform:none;opacity:1}
.ap-toast::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:4px;border-radius:0 4px 4px 0;background:#FFD100}
.ap-toast.win::before{background:#1FBF5B}
.ap-toast b{font-weight:900}
.ap-t-go{height:36px;padding:0 14px;border-radius:10px;background:#FFD100;color:#000;display:inline-flex;align-items:center;font-family:"Clash Display","Satoshi",Arial,sans-serif;font-weight:600;font-size:13px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap}
.ap-t-x{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:8px;background:none;border:0;color:#bbb;font-size:20px;line-height:1;cursor:pointer}
.ap-t-x:hover{color:#fff;background:#1a1a1a}
@media (max-width:600px){.ap-toast{left:16px;right:16px;width:auto}}

.cal-sheet{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.7);display:grid;place-items:center;padding:16px}
.cal-box{position:relative;width:min(560px,100%);max-height:calc(100vh - 32px);overflow-y:auto;border-radius:18px;background:#080808;border:1px solid #232323;color:#fff;padding:20px;font-family:"Satoshi","Helvetica Neue",Arial,sans-serif}
.cal-x{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:10px;background:#141414;border:1px solid #2a2a2a;color:#fff;font-size:20px;cursor:pointer}
.cal-top{display:flex;align-items:center;justify-content:center;gap:16px;margin:0 40px 12px}
.cal-top h3{margin:0;font-family:"Clash Display","Satoshi",Arial,sans-serif;font-weight:600;font-size:24px;text-transform:uppercase;min-width:9ch;text-align:center}
.cal-top button{width:36px;height:36px;border-radius:10px;background:#141414;border:1px solid #2a2a2a;color:#fff;font-size:20px;cursor:pointer}
.cal-key{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:12px;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.cal-key span{display:inline-flex;align-items:center;gap:6px}
.cal-key em,.cal-d em{display:inline-block;width:8px;height:8px;border-radius:50%}
em.game{background:#FFD100}em.birth{background:#5B84FF}em.anniv{background:#E8253A}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-h{text-align:center;font-size:11px;font-weight:900;color:#cfcfd4;padding:4px 0}
.cal-d{min-height:52px;border-radius:10px;background:#111;padding:6px;display:flex;flex-direction:column;gap:4px}
.cal-d b{font-family:"Clash Display","Satoshi",Arial,sans-serif;font-weight:600;font-size:14px}
.cal-d i{display:flex;gap:3px;flex-wrap:wrap}
.cal-d.today{background:#FFD100;color:#000}
.cal-list{margin-top:16px;display:flex;flex-direction:column}
.cal-row{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px 0 10px 12px;border-top:1px solid #1c1c1c;position:relative;font-size:14px;font-weight:600}
.cal-row::before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:2px;background:#FFD100}
.cal-row.birth::before{background:#5B84FF}.cal-row.anniv::before{background:#E8253A}
.cal-row b{font-size:11.5px;font-weight:900;letter-spacing:.08em;color:#ccc;padding-top:2px}

.ap-google{display:inline-flex;align-items:center;gap:10px;height:42px;padding:0 16px;border-radius:10px;background:#fff;color:#1f1f1f;font-family:"Satoshi","Helvetica Neue",Arial,sans-serif;font-weight:700;font-size:14px;text-decoration:none}
.ap-c-open{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;height:32px;padding:0 4px;background:none;border:0;color:#cfcfd4;font-family:"Satoshi","Helvetica Neue",Arial,sans-serif;font-size:13px;font-weight:800;cursor:pointer}
.ap-c-open svg{width:17px;height:17px}
.ap-c-open:hover{color:#fff}
.ap-c-box{display:flex;flex-direction:column;gap:12px;padding:12px 0 4px}
.ap-c-box[hidden]{display:none}
.ap-c-form{display:flex;gap:8px;align-items:center}
.ap-c-form input{flex:1;min-width:0;height:40px;padding:0 12px;border-radius:10px;background:#111;border:1px solid #2a2a2a;color:#fff;font:inherit;font-size:15px}
.ap-c-form button{height:40px;padding:0 14px;border-radius:10px;background:#FFD100;color:#000;border:0;font-weight:900;font-size:13px;cursor:pointer}
.ap-c-pic{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:none;background:#111}
.ap-c-err{margin:0;color:#E8253A;font-size:13px;font-weight:700}
.ap-c-list{display:flex;flex-direction:column;gap:12px}
.ap-c{display:flex;gap:10px}
.ap-c p{margin:0;font-size:14.5px;line-height:1.4}
.ap-c p b{font-weight:900;margin-right:8px}
.ap-c p span{font-size:12px;color:#cfcfd4;font-weight:700}
.ap-c-act{display:flex;gap:12px;margin-top:4px}
.ap-c-act button{background:none;border:0;padding:0;color:#cfcfd4;font-size:12px;font-weight:800;cursor:pointer}
.ap-c-act button:hover{color:#fff}
