/* 历年试卷 (papers-lobby.blade.php). The site's minimal look: the app font,
   warm neutrals, soft tinted cards without borders at the top, hairline
   cards for the subjects, the peach accent, no shadows. Two things keep their
   own style on purpose: the subject icons (strong tile, white glyph, darker
   bottom edge) and the shortcut icons (light tint, coloured glyph). Motion
   stays quiet: things fade up in turn, numbers count up, the week ring draws
   in, bars and rings fill when their card is shown, the 3D fire flickers.
   Nothing moves under prefers-reduced-motion. */

.pl {
    --ink: #1f1d1a;
    --ink-2: #5f5a53;
    --muted: #6b6a66;
    --line: #ece8e2;
    --soft: #f7f5f2;
    --chip: #f4f2ee;

    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 104px;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Bar: the page name on the left, like the other pages ---------- */
.pl-header { border-bottom: 0; }
/* Less room above the page than the other pages have. */
.pl-page .chat-scroll { padding-top: 6px; }
.pl-header-title { margin: 0; overflow: hidden; color: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pl-header-gap { margin-left: auto; }
.pl-header .chat-header-actions { margin-left: 0; }

/* ---------- The swipe card's mechanics (papers-lobby.js loops it both ways) ---------- */
.pl-slides-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; cursor: grab; }
.pl-slides-track::-webkit-scrollbar { display: none; }
.pl-slides-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.pl-slides-track:focus-visible { outline: 2px solid #f2a07b; outline-offset: 2px; }
.pl-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; box-sizing: border-box; }
.pl-slides-nav { display: flex; align-items: center; justify-content: center; }
.pl-slides-dots { display: flex; gap: 6px; }
.pl-slides-dots button { padding: 0; border: 0; border-radius: 999px; cursor: pointer; transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s; }

/* ================= Full-screen search ================= */
body.pl-locked { overflow: hidden; }
.pl-search { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pl-search[hidden] { display: none; }
.pl-search-scrim { position: absolute; inset: 0; background: rgba(31, 29, 26, 0.32); opacity: 0; transition: opacity 0.25s ease; }
.pl-search.is-open .pl-search-scrim { opacity: 1; }
.pl-search-panel { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); outline: none; max-height: min(760px, 100%); overflow: hidden; border-radius: 28px; background: #fff; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.pl-search.is-open .pl-search-panel { opacity: 1; transform: none; }
.pl-search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 8px 24px; }
.pl-search-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.pl-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--chip, #f4f2ee); color: #1f1d1a; cursor: pointer; }
.pl-icon-btn .material-symbols-outlined { --icon-size: 22px; font-size: 22px; }
.pl-search-body { flex: 1; overflow-y: auto; padding: 4px 24px 16px; overscroll-behavior: contain; }
.pl-search-group + .pl-search-group { margin-top: 22px; }
.pl-search-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #6b6a66; font-size: 13px; font-weight: 600; }
.pl-req { padding: 1px 8px; border-radius: 999px; background: #ffe9dd; color: #8a4116; font-size: 11px; font-weight: 700; }
.pl-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-pick { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border: 1.5px solid transparent; border-radius: 18px; background: color-mix(in srgb, var(--c) 40%, #fff); color: #1f1d1a; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.15s, transform 0.15s, background-color 0.15s; }
.pl-pick:active { transform: scale(0.97); }
.pl-pick-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 255, 255, 0.75); color: rgba(31, 29, 26, 0.72); --icon-size: 20px; font-size: 20px; }
.pl-pick-name { flex: 1; min-width: 0; }
.pl-pick-check { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1f1d1a; color: #fff; --icon-size: 14px; font-size: 14px; opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pl-pick.is-on { border-color: color-mix(in srgb, var(--c) 60%, #1f1d1a 35%); background: color-mix(in srgb, var(--c) 75%, #fff); }
.pl-pick.is-on .pl-pick-check { opacity: 1; transform: none; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip { min-height: 38px; padding: 0 15px; border: 1px solid #ece8e2; border-radius: 999px; background: #fff; color: #5f5a53; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.pl-chip:active:not(:disabled) { transform: scale(0.95); }
.pl-chip.is-on { border-color: #ffd7c2; background: #ffd7c2; color: #8a4116; font-weight: 600; }
.pl-chip:disabled { opacity: 0.35; cursor: default; }
.pl-search-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 18px 24px; border-top: 1px solid #ece8e2; background: #fff; }
.pl-search-count { color: #5f5a53; font-size: 14px; font-weight: 600; }
.pl-search-count.is-bump { animation: pl-bump 0.3s ease; }
.pl-go { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #ffd7c2; color: #8a4116; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color 0.15s, transform 0.15s, opacity 0.15s; }
.pl-go:hover:not(:disabled) { background: #ffcbb1; }
.pl-go:active:not(:disabled) { transform: scale(0.97); }
.pl-go:disabled { opacity: 0.45; cursor: default; }
.pl-go .material-symbols-outlined { --icon-size: 20px; font-size: 20px; }

@keyframes pl-bump { 0% { transform: none; } 40% { transform: translateY(-3px); } 100% { transform: none; } }

/* The search on a phone fills the screen and slides up, like an app page. */
@media (max-width: 719px) {
    .pl { padding-bottom: calc(var(--dock-h, 64px) + 40px); }
    .pl-search { padding: 0; align-items: stretch; }
    .pl-search-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; transform: translateY(40px); padding-top: env(safe-area-inset-top, 0px); }
    .pl-search-head { padding: 14px 16px 6px 20px; }
    .pl-search-body { padding: 4px 16px 16px; }
    .pl-search-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
    .pl-search-count { font-size: 13.5px; }
}
/* Subject picks: rows always full (an odd count: the last one two wide on a phone, the first wider on a computer). */
.pl-picks[data-n2="1"] .pl-pick:last-child { grid-column: span 2; }
@media (min-width: 720px) {
    .pl-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pl-picks[data-n2="1"] .pl-pick:last-child { grid-column: auto; }
    .pl-picks[data-n4="3"] .pl-pick:first-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-search *, .pl-search-scrim, .pl-search-panel { animation: none !important; transition: none !important; }
}

/* ================= The page ================= */
.mn {
    --ink: #1f1d1a;
    --ink-2: #5f5a53;
    --muted: #6b6a66;
    --line: #ece8e2;
    --soft: #f7f5f2;
    --chip: #f4f2ee;
    --accent: #f2a07b;
    --peach-bg: #fff0e6;
    --peach: #ffd7c2;
    --peach-ink: #8a4116;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    max-width: 760px;
}

/* Shortcut icon tints (kept from the 任务 design). */
.mn [data-c="orange"] { --c: #ff9600; --l: #fff3e0; --w: #fffaf2; }
.mn [data-c="red"] { --c: #ff4b4b; --l: #ffdfe0; --w: #fff6f6; }
.mn [data-c="grey"] { --c: #b8b2aa; --l: #f2f0ec; --w: #faf9f7; }
.mn [data-c="blue"] { --c: #1cb0f6; --l: #ddf4ff; --w: #f5fbff; }

.mn [data-tint="butter"] { --c: #d99a00; --l: #fff4d4; }
.mn [data-tint="pink"] { --c: #e0557a; --l: #fde6ec; }

/* ---------- Swipe card ---------- */
.mn-slides { animation: mn-up 0.5s var(--ease) both; }
.mn .pl-slides-track { border-radius: 20px; }
.mn .pl-slide { min-height: 148px; padding: 16px 18px; border: 0; border-radius: 20px; background: var(--slide-bg, #faf7f3); color: var(--ink); }
/* No borders: each card has its own soft tint. */
.mn-streak { --slide-bg: #fff4ec; }
.mn-progress { --slide-bg: #eaf7ef; }
.mn-tasks { --slide-bg: #fff8e1; }
.mn .pl-slide + .pl-slide { margin-left: 10px; }
/* The dots ride inside the card, at its foot. */
.mn-slides { position: relative; }
.mn .pl-slides-nav { position: absolute; right: 0; bottom: 10px; left: 0; margin: 0; pointer-events: none; }
.mn .pl-slides-dots { pointer-events: auto; }
.mn .pl-slide { padding-bottom: 28px; }
.mn .pl-slides-dots button { width: 6px; height: 6px; background: rgba(31, 29, 26, 0.16); }
.mn .pl-slides-dots button.is-on { width: 18px; background: var(--accent); }
.mn-kicker { color: var(--muted); font-size: 12px; font-weight: 600; }
.mn-note { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }

/* 1: the streak — the week ring round the 3D fire */
.mn-streak { display: flex; align-items: center; gap: 18px; }
.mn-ring7 { position: relative; display: grid; flex: none; place-items: center; width: 88px; height: 88px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.15s ease; }
.mn-ring7:active { transform: scale(0.94); }
.mn-ring7.is-burst { animation: mn-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mn-ring7 svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mn-seg { fill: none; stroke: #f3e1d3; stroke-width: 8; stroke-linecap: round; }
.mn-seg.is-done { stroke: #f26a1b; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mn-seg.is-today { stroke: #f8b48a; animation: mn-pulse 1.8s ease-in-out infinite; }
/* Practised days draw in one after another. */
.is-seen .mn-seg.is-done { animation: mn-draw 0.5s var(--ease) both; animation-delay: calc(250ms + var(--i, 0) * 110ms); }
.mn-ring7 .dl-fire { width: 44px; height: 44px; }
.mn-streak-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mn-streak-text strong { display: flex; align-items: baseline; gap: 4px; font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.mn-streak-text strong small { color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.mn-streak:not(.is-lit) .mn-streak-text strong { color: #a49e96; }
.mn-streak-k { color: var(--peach-ink); font-size: 12.5px; font-weight: 600; }

/* The fire: Google's animated Noto emoji (it moves by itself); with no streak, the still one, greyed out. */
.mn .dl-fire { position: relative; display: block; width: 40px; height: 40px; }
.mn .dl-fire-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mn .dl-fire-still { display: none; filter: grayscale(1) opacity(0.45); }
.mn-streak:not(.is-lit) .dl-fire-live, .mn-guest .dl-fire-live { display: none; }
.mn-streak:not(.is-lit) .dl-fire-still, .mn-guest .dl-fire-still { display: block; }
.mn .dl-spark { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--sc, #ffc800); pointer-events: none; animation: mn-spark 0.7s var(--ease) forwards; }

/* 2: progress */
.mn-progress { display: flex; align-items: center; gap: 16px; }
.mn-ring { position: relative; flex: none; width: 84px; height: 84px; }
.mn-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.mn-ring circle { fill: none; stroke-width: 9; }
.mn-ring-track { stroke: #fff; }
.mn-ring-fill { stroke: #4fb883; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.is-seen .mn-ring-fill { stroke-dashoffset: var(--off); transition: stroke-dashoffset 1s var(--ease) 0.1s; }
.mn-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.mn-ring-num small { color: #2f6b4f; font-size: 11px; }
.mn-progress .mn-kicker { color: #2f6b4f; }
.mn-progress-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mn-progress-text strong { font-size: 17px; font-weight: 700; line-height: 1.3; }

/* 3: today's tasks */
.mn-tasks { display: flex; flex-direction: column; gap: 10px; }
.mn-tasks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mn-tasks-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.mn-tasks-head span { color: var(--muted); font-size: 11.5px; }
.mn-task { display: flex; align-items: center; gap: 12px; }
.mn-task-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--l); color: var(--c); --icon-size: 20px; font-size: 20px; font-variation-settings: 'FILL' 1; }
.mn-tasks .mn-task-icon { background: #fff; }
.mn-task.is-done .mn-task-icon { background: #fff; color: #2f6b4f; }
.mn-task-main { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.mn-task-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mn-task-title { color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
a.mn-task-title:hover { text-decoration: underline; }
.mn-task-count { flex: none; color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mn-bar { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); overflow: hidden; }
.mn-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); transition-delay: calc(120ms + var(--i, 0) * 100ms); }
/* 今日任务: amber on a pale-yellow track, done or not — the same family as the yellow card
   (the user picked it over deep orange and green, 2026-10-15). */
.mn-tasks .mn-bar { background: #fbe9b5; }
.mn-tasks .mn-bar i,
.mn-tasks .mn-task.is-done .mn-bar i { background: #f5b42a; }
.mn-tasks .mn-task.is-done .mn-task-icon { color: #f5b42a; }
.mn-tasks.is-seen .mn-bar i { transform: none; }

/* ---------- 收藏 / 错题本 / 考题分析 (icon style kept) ---------- */
.mn-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mn-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 14px 8px 12px; border: 0; border-radius: 18px; background: var(--w); color: var(--ink); text-align: center; text-decoration: none; animation: mn-up 0.45s var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 50ms); transition: background-color 0.15s, transform 0.15s; }
.mn-tile:not(.is-soon):hover { background: var(--l); }
.mn-tile:not(.is-soon):active { transform: scale(0.97); }
.mn-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: var(--l); color: var(--c); --icon-size: 24px; font-size: 24px; font-variation-settings: 'FILL' 1; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mn-tile:not(.is-soon):hover .mn-tile-icon { transform: rotate(-6deg) scale(1.06); }
.mn-tile b { font-size: 14px; font-weight: 600; }
.mn-tile small { color: var(--muted); font-size: 12px; }
.mn-tile.is-soon { cursor: default; }
.mn-tile.is-soon b { color: #a49e96; }
.mn-soon { padding: 1px 8px; border-radius: 999px; background: var(--chip); font-size: 10.5px !important; font-weight: 600; white-space: nowrap; }

/* ---------- Subjects (icon style kept), every row full ---------- */
.mn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.mn-head h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; font-size: 15px; font-weight: 600; }
.mn-head h2 small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.mn-search { display: grid; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink); cursor: pointer; transition: background-color 0.15s, transform 0.15s; }
.mn-search:hover { background: #ebe7e1; }
.mn-search:active { transform: scale(0.92); }
.mn-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mn-search .material-symbols-outlined { --icon-size: 22px; font-size: 22px; }
.mn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mn-subject { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; animation: mn-up 0.45s var(--ease) both; animation-delay: calc(200ms + var(--i, 0) * 40ms); transition: background-color 0.15s, transform 0.15s; }
.mn-subject:hover { background: var(--soft); }
.mn-subject:active { transform: scale(0.97); }
.mn-subject-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-bottom: 4px solid var(--e); border-radius: 13px; background: var(--c); color: #fff; --icon-size: 22px; font-size: 22px; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mn-subject:hover .mn-subject-icon { transform: rotate(-6deg) scale(1.06); }
.mn-subject-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mn-subject b { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
/* Small phones: a little tighter still, so names show in full. */
@media (max-width: 400px) {
    .mn-subject { gap: 8px; padding: 10px; }
    .mn-subject-icon { width: 36px; height: 36px; border-radius: 12px; --icon-size: 20px; font-size: 20px; }
    .mn-subject b { font-size: 13px; }
}
.mn-grid[data-odd="1"] .mn-subject:last-child { grid-column: 1 / -1; }
.mn-subject small { overflow: hidden; color: var(--muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }

@keyframes mn-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mn-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes mn-pop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes mn-bounce { 0% { transform: scale(1); } 35% { transform: scale(1.15, 0.9); } 60% { transform: scale(0.95, 1.08); } 100% { transform: none; } }
@keyframes mn-fire { 0%, 100% { transform: scale(1, 1) rotate(0deg); } 20% { transform: scale(0.96, 1.06) rotate(-2deg); } 45% { transform: scale(1.04, 0.96) rotate(1.5deg); } 70% { transform: scale(0.97, 1.05) rotate(-1deg); } 85% { transform: scale(1.02, 0.98) rotate(1deg); } }
@keyframes mn-ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--ex, 3px), -30px) scale(0.3); } }
@keyframes mn-spark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }

@media (min-width: 720px) {
    .mn .pl-slide { min-height: 140px; padding: 18px 22px 30px; }
    .mn .pl-slides-arrow { display: none; }
    .mn-grid { gap: 12px; }
    .mn-subject { gap: 12px; padding: 14px; }
    .mn-subject-icon { width: 44px; height: 44px; }
    .mn-subject b { font-size: 14.5px; }
    .mn-subject small { font-size: 12px; }
    }

@media (prefers-reduced-motion: reduce) {
    .mn *, .mn-slides { animation: none !important; transition: none !important; }
    .mn .pl-slide .mn-bar i { transform: none; }
}

/* ---------- Guests: one card asking them to sign in ---------- */
.mn-guest { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff4ec; animation: mn-up 0.5s var(--ease) both; }
.mn-guest-fire { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; }
.mn-guest-fire .dl-fire { width: 40px; height: 40px; }
.mn-guest-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.mn-guest-text strong { font-size: 15px; font-weight: 600; }
.mn-guest-btn { flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--peach); color: var(--peach-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, transform 0.15s; }
.mn-guest-btn:hover { background: #ffcbb1; }
.mn-guest-btn:active { transform: scale(0.96); }
@media (max-width: 480px) {
    .mn-guest { flex-wrap: wrap; }
    .mn-guest-btn { width: 100%; }
}

/* ================= The one-time guide (papers-lobby-guide.js) =================
   The page dims except for a hole round what's being explained; a note
   with 下一步 / 跳过 sits beside it. The hole glides from one thing to the
   next. (The dim is a spread outline of the hole — it's the mask, not a shadow.) */
.lg { position: fixed; inset: 0; z-index: 300; }
.lg-block { position: absolute; inset: 0; }
.lg-hole { position: fixed; border-radius: 22px; box-shadow: 0 0 0 200vmax rgba(31, 29, 26, 0.62); pointer-events: none; opacity: 0; transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.4s, opacity 0.3s ease; }
.lg.is-in .lg-hole { opacity: 1; }
.lg-hole::after { content: ""; position: absolute; inset: -4px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: inherit; animation: lg-ring 1.8s ease-in-out infinite; }
.lg-tip { position: fixed; width: min(320px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 20px; background: #fff; color: #1f1d1a; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.lg.is-in .lg-tip { opacity: 1; transform: none; }
.lg-step { color: #8a4116; font-size: 12px; font-weight: 600; }
.lg-title { margin: 4px 0 4px; font-size: 17px; font-weight: 700; }
.lg-text { margin: 0; color: #5f5a53; font-size: 13.5px; line-height: 1.55; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.lg-dots { display: flex; gap: 5px; }
.lg-dots i { width: 6px; height: 6px; border-radius: 999px; background: #e3ded6; transition: width 0.25s, background-color 0.2s; }
.lg-dots i.is-on { width: 16px; background: #f2a07b; }
.lg-actions { display: flex; align-items: center; gap: 6px; }
.lg-skip { padding: 8px 10px; border: 0; border-radius: 999px; background: none; color: #6b6a66; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.lg-skip:hover { background: #f4f2ee; }
.lg-next { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: #ffd7c2; color: #8a4116; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color 0.15s, transform 0.15s; }
.lg-next:hover { background: #ffcbb1; }
.lg-next:active { transform: scale(0.96); }
.lg-next:focus, .lg-skip:focus { outline: none; }
@keyframes lg-ring { 0%, 100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 0.35; transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) {
    .lg-hole, .lg-tip { transition: none !important; }
    .lg-hole::after { animation: none !important; }
}
.lg-on .chat-scroll { overflow: hidden; }
