/* Website Desktop Mascot theo style 02 'kawaii scrapbook' (project designer, Rowan 2026-11-21): token :root và component CSS
   chép từ bản tham chiếu; font tự host (fonts/): Dancing Script 700 cho tiêu đề, Patrick Hand cho chữ thân (Delius của style
   không có dấu tiếng Việt nên không dùng). */
@font-face { font-family: 'Dancing Script'; font-weight: 700; font-display: swap; src: url(fonts/dancing-script-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Dancing Script'; font-weight: 700; font-display: swap; src: url(fonts/dancing-script-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Dancing Script'; font-weight: 700; font-display: swap; src: url(fonts/dancing-script-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Patrick Hand'; font-display: swap; src: url(fonts/patrick-hand-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Patrick Hand'; font-display: swap; src: url(fonts/patrick-hand-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Patrick Hand'; font-display: swap; src: url(fonts/patrick-hand-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --paper: #fbf3e6; --card: #fffaf2; --ink: #5a4033; --muted: #9a7f6c; --line: #d9c4ad;
  --a1: #f2c9b0; --a2: #e89a9a; --a3: #f3d38a; --hl: #f6dcc4; --tape: rgba(240, 190, 170, 0.55);
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 19px/1.45 'Patrick Hand', 'Segoe Print', sans-serif; }
.muted { color: var(--muted); }

/* thanh trên: nút Đăng nhập / Đăng ký miễn phí bên phải */
.topbar { display: flex; justify-content: flex-end; padding: 10px 22px; border-bottom: 1.5px dashed var(--line); background: var(--card); }
.account { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.who { padding: 5px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; }
.credits { padding: 0 8px; background: var(--a3); border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 22px 48px; }

/* thỏ trong vòng tròn + hộp tên app */
.brand { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.bun-circle { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line); box-shadow: 3px 4px 0 rgba(90, 64, 51, 0.08); flex: none; }
.bun-circle svg { width: 74px; height: 80px; }
.name-box { position: relative; padding: 14px 34px 16px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 3px 4px 0 rgba(90, 64, 51, 0.08); transform: rotate(-0.6deg); }
h1 { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 58px; margin: 0; line-height: 1; }

/* sân khấu: Hana tạo dáng bên trái (slide mờ dần qua lại, không khung), mô tả + hướng dẫn bên phải */
.stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: start; }
.poses { position: relative; margin: 0; height: 712px; } /* Rowan 2026-11-24: tranh Hana to hơn ~20% (556 -> 668 px) */
.poses img { position: absolute; left: 50%; bottom: 34px; height: calc(100% - 44px); width: auto; max-width: 100%; object-fit: contain; transform: translateX(-50%) scale(0.97); opacity: 0; transition: opacity 0.9s ease, transform 0.9s ease; filter: drop-shadow(4px 5px 0 rgba(90, 64, 51, 0.08)); }
.poses img.on { opacity: 1; transform: translateX(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .poses img { transition: none; } }
.dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 10px; }
.dots button { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--card); cursor: pointer; }
.dots button.on { background: var(--a2); }
.spark { position: absolute; color: var(--a2); font-size: 26px; pointer-events: none; }
.spark.s1 { top: 6%; left: 8%; color: var(--a3); }
.spark.s2 { top: 12%; right: 8%; }
.spark.s3 { bottom: 26%; left: 4%; color: var(--a3); }
.side { display: grid; gap: 26px; padding-top: 6px; }

.card { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 18px 22px 20px; box-shadow: 3px 4px 0 rgba(90, 64, 51, 0.06); min-width: 0; }
.tilt-l { transform: rotate(-0.5deg); }
.tilt-r { transform: rotate(0.6deg); }
.card h2 { display: inline-block; font-weight: 400; font-size: 19px; letter-spacing: 0.06em; margin: 0 0 12px; padding: 4px 14px; background: linear-gradient(transparent 20%, var(--hl) 20%, var(--hl) 85%, transparent 85%); }
.card h2 .ic { margin-left: 8px; color: var(--a2); }
.card p { margin: 0 0 10px; }
.tape { position: absolute; width: 86px; height: 26px; background: var(--tape); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 6px, transparent 6px 12px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.45) 0 6px, transparent 6px 12px); top: -12px; right: 18px; transform: rotate(14deg); }
.tape.l { left: 14px; right: auto; transform: rotate(-12deg); }
.clip { position: absolute; top: -16px; left: 28px; width: 16px; height: 38px; border: 3px solid #b0a49a; border-radius: 10px; }

ul { list-style: none; margin: 0 0 16px; padding: 0; }
.prio li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1.5px dashed var(--line); }
.num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); flex: none; }
.prio li:nth-child(1) .num { background: var(--a1); }
.prio li:nth-child(2) .num { background: var(--a2); }
.prio li:nth-child(3) .num { background: var(--a3); }
.prio small { display: block; color: var(--muted); font-size: 15px; }

/* nút: viên giấy bo tròn, bóng sticker lệch không mờ */
.btn { display: inline-block; padding: 7px 20px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: var(--card); text-decoration: none; cursor: pointer; font: inherit; font-size: 18px; box-shadow: 3px 3px 0 rgba(90, 64, 51, 0.15); }
.btn:hover { transform: rotate(-1deg) translateY(-1px); }
.btn.primary { background: var(--a1); }
.btn.primary:hover { background: var(--a2); }
.btn.disabled { opacity: 0.45; pointer-events: none; }

/* modal đăng nhập / đăng ký: tờ giấy dán băng washi, trang Keycloak (theme mascot-web) trong iframe */
.auth { position: relative; width: min(440px, calc(100vw - 32px)); padding: 26px 6px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 4px 5px 0 rgba(90, 64, 51, 0.12); overflow: visible; }
.auth::backdrop { background: rgba(90, 64, 51, 0.35); }
.auth iframe { display: block; width: 100%; height: 480px; border: 0; border-radius: 10px; background: var(--card); }
.auth.reg iframe { height: 450px; max-height: calc(100vh - 120px); }
.auth .close { position: absolute; top: 6px; right: 10px; width: 32px; height: 32px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.auth .close:hover { background: var(--a1); }

/* thanh cuộn theo style (băng washi đào, viền kraft) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #f2c9b0; border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; box-shadow: inset 0 0 0 1px #d9c4ad; }
::-webkit-scrollbar-thumb:hover { background: #e89a9a; background-clip: padding-box; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; gap: 30px; }
  .poses { height: 576px; }
}
@media (max-width: 600px) {
  .topbar { justify-content: center; padding: 10px 16px; }
  .wrap { padding: 16px 16px 30px; }
  .brand { gap: 14px; }
  .bun-circle { width: 76px; height: 76px; }
  .bun-circle svg { width: 54px; height: 58px; }
  .name-box { padding: 10px 18px 12px; }
  h1 { font-size: 40px; }
  .card { transform: none !important; }
  .poses { height: 480px; }
}
