:root {
  --game-blue: #4d9cff;
  --game-blue-dark: #2879e8;
  --game-blue-soft: #eaf4ff;
  --game-violet: #7c5cff;
  --game-pink: #ff91bf;
  --game-mint: #dff8e9;
  --game-bg: #f3f7fd;
  --game-ink: #172643;
  --game-muted: #7385a5;
  --pixel-shadow: 0 8px 26px rgba(52, 95, 153, .09), 0 2px 7px rgba(52, 95, 153, .05);
}

/* Journal date-bound archive and review flow */
.journal-selected-date { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; padding:10px 12px; border:1px solid #d8e8f8; border-radius:10px; background:linear-gradient(135deg,#eef7ff,#fff7fb); color:#6d819b; font-size:8px; }
.journal-selected-date strong { color:#2d68ad; font-size:10px; }
.journal-primary-actions { display:grid; grid-template-columns:minmax(110px,.35fr) minmax(220px,.65fr); gap:10px; margin-top:16px; }
.journal-primary-actions button { min-height:42px; }
.review-date-control { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:-2px 0 18px; padding:12px 14px; border:1px solid #dbe8f6; border-radius:11px; background:#f7fbff; }
.review-date-control label { color:#486889; font-size:8px; font-weight:700; }
.review-date-control input,.import-date-field input { display:block; margin-top:6px; padding:8px 10px; border:1px solid #cfe0f2; border-radius:8px; background:#fff; color:#263f60; outline:none; }
.review-date-control input:focus,.import-date-field input:focus { border-color:#6ea8ea; box-shadow:0 0 0 3px rgba(78,158,248,.12); }
.review-date-control small { color:#8597ac; font-size:7px; line-height:1.6; }
.import-date-field { display:block; margin-top:16px; color:#405875; font-size:9px; font-weight:700; }
.import-date-field input { width:100%; }
.calendar-cell.selected { outline:2px solid #7faee5; outline-offset:1px; }
.calendar-reading-actions { display:flex; gap:9px; margin-top:18px; }
.calendar-reading-actions button { flex:1; }
.reading-summary.empty-archive-section { background:#f8fafc; color:#8494a8; }
.reading-summary.review-archive { border:1px solid #d9d4f7; background:linear-gradient(135deg,#f1f4ff,#fff4fa); }
.reading-summary.review-archive ol { margin:9px 0 0; padding-left:18px; color:#526783; font-size:8px; line-height:1.7; }
.conflict-actions { flex-wrap:wrap; }

@media (max-width:720px) {
  .journal-primary-actions { grid-template-columns:1fr; }
  .review-date-control { display:grid; align-items:start; }
  .review-date-control input { width:100%; }
  .calendar-reading-actions { display:grid; }
}

.pixel-ui { background: var(--game-bg); color: var(--game-ink); }
.pixel-ui .pixel-sidebar { width: 190px; padding: 24px 16px 18px; border-right: 1px solid #dce8f7; box-shadow: 5px 0 28px rgba(55, 101, 161, .05); }
.pixel-ui .pixel-brand { padding: 0 8px; gap: 9px; }
.pixel-ui .pixel-brand b { font-size: 20px; letter-spacing: -.04em; }
.pixel-ui .pixel-brand small { font-size: 9px; color: #8b9bb6; }
.pixel-ui .pixel-nav { margin-top: 31px; gap: 5px; }
.pixel-ui .pixel-nav .nav-item { grid-template-columns: 27px 1fr; padding: 10px 11px; border-radius: 9px; }
.pixel-ui .pixel-nav .nav-item span { font-size: 15px; width: 25px; height: 25px; }
.pixel-ui .pixel-nav .nav-item b { font-size: 12px; }
.pixel-ui .pixel-nav .nav-item small { font-size: 8px; }
.pixel-ui .pixel-nav .nav-item.active { background: linear-gradient(135deg, #529fff, #3e8cf3); color: #fff; box-shadow: 0 7px 17px rgba(58, 139, 244, .25); }
.pixel-ui .pixel-nav .nav-item.active b { color: #fff; }
.pixel-ui .pixel-nav .nav-item.active small { color: rgba(255,255,255,.76); }
.pixel-ui .pixel-nav .nav-item.active span { background: rgba(255,255,255,.16); box-shadow: none; }
.sidebar-spacer { flex: 1; min-height: 25px; }
.settings-link { border: 0; background: none; padding: 9px 11px; display: flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 700; cursor: pointer; color: #536985; }
.player-card { margin-top: 15px; display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 12px 10px; border-radius: 12px; background: #f7faff; border: 1px solid #e6eef9; }
.player-card b,.player-card small { display: block; }.player-card b { font-size: 11px; }.player-card small { color: var(--game-muted); font-size: 8px; margin: 2px 0 6px; }.xp-line { height: 5px; background: #dce8f8; border-radius: 8px; overflow: hidden; }.xp-line i { display: block; width: 16%; height: 100%; background: var(--game-blue); }
.pixel-ui .pixel-main { margin-left: 190px; padding: 0 24px 42px; max-width: none; }
.pixel-ui .pixel-topbar { height: 70px; min-height: 70px; margin: 0 -24px 16px; padding: 0 25px; background: rgba(255,255,255,.75); border-bottom: 1px solid #e0e9f6; backdrop-filter: blur(15px); }
.desktop-page-title h1 { font-size: 17px; margin-top: 2px; }.desktop-page-title .eyebrow { font-size: 8px; }
.pixel-resources { gap: 10px; }
.resource-pill { display: flex; align-items: center; gap: 6px; min-width: 66px; padding: 7px 11px; border-radius: 10px; background: #edf5ff; color: #327edc; font-size: 11px; }
.resource-pill span { font-size: 15px; }.star-pill span { color: #f2b33b; text-shadow: 0 1px 0 #b67b0c; }.coin-pill { background: #f0f6ff; }.coin-pill span { color: #5fa9f4; }
.calendar-button { border: 0; background: transparent; color: #31567d; font-size: 17px; cursor: pointer; }
.pixel-ui .avatar { padding: 0; overflow: hidden; border: 2px solid white; background: #e8f3ff; display: grid; place-items: center; }
.mobile-wordmark { display: none; align-items: center; gap: 7px; }.mobile-wordmark b { font-size: 18px; }.mobile-brand-copy { display:flex; flex-direction:column; line-height:1.05; }.mobile-brand-copy small { margin-top:4px; color:#eaf3ff; font-size:8px; letter-spacing:.03em; }

/* Original chocolate-chip cookie mascot, built from CSS shapes. */
.cookie-avatar,.cookie-hero { display: inline-block; position: relative; flex: 0 0 auto; background: #e8a85f; border: 3px solid #8d542d; box-shadow: inset -4px -4px 0 #ca7941, inset 3px 3px 0 #ffd08b; image-rendering: pixelated; }
.cookie-avatar { border-radius: 48% 46% 50% 45%; }.cookie-avatar-xs { width: 28px; height: 28px; border-width: 2px; }.cookie-avatar-sm { width: 39px; height: 39px; }.cookie-avatar-md { width: 45px; height: 45px; }
.cookie-avatar .chip,.cookie-hero .chip { position: absolute; width: 5px; height: 5px; background: #6b3d2b; border-radius: 2px; }.cookie-avatar .c1,.cookie-hero .c1 { left: 22%; top: 18%; }.cookie-avatar .c2,.cookie-hero .c2 { right: 18%; top: 31%; }.cookie-avatar .c3,.cookie-hero .c3 { left: 23%; bottom: 16%; }.cookie-avatar .c4,.cookie-hero .c4 { right: 27%; bottom: 12%; }
.cookie-avatar .eye,.cookie-hero .eye { position: absolute; width: 4px; height: 6px; background: #2d2928; top: 45%; z-index: 2; }.cookie-avatar .e1,.cookie-hero .e1 { left: 34%; }.cookie-avatar .e2,.cookie-hero .e2 { right: 32%; }.cookie-avatar .smile,.cookie-hero .smile { position: absolute; left: 42%; top: 62%; width: 9px; height: 5px; border-bottom: 2px solid #743e31; border-radius: 0 0 8px 8px; }
.cookie-avatar-xs .chip { width: 3px; height: 3px; }.cookie-avatar-xs .eye { width: 3px; height: 4px; }.cookie-avatar-xs .smile { display: none; }

.pixel-hero { min-height: 242px; display: grid; grid-template-columns: 1fr 1.12fr; overflow: hidden; border-radius: 14px; background: linear-gradient(110deg, #fff 0%, #f6fbff 52%, #d9ecff 100%); border: 1px solid #dce9f8; box-shadow: var(--pixel-shadow); }
.hero-copy { padding: 25px 31px; position: relative; z-index: 3; display:flex; flex-direction:column; justify-content:center; }.hero-kicker { font-size: 9px; color: #6e86a7; font-weight: 700; letter-spacing: .08em; }.hero-copy .hero-brand-title { margin: 8px 0 7px; max-width:520px; font-size: 27px; line-height:1.25; letter-spacing: -.04em; }.hero-copy .hero-brand-support { color: #657998; font-size: 11px; margin: 0; }.hero-greeting { margin-top:18px; padding-top:14px; border-top:1px solid #dce8f7; }.hero-greeting h3 { margin:0 0 5px; font-size:14px; }.hero-greeting p { margin:0; color:#6f83a0; font-size:10px; }
.hero-world { position: relative; overflow: hidden; min-height: 154px; }
.cloud-pixel { position: absolute; background: rgba(255,255,255,.88); width: 48px; height: 10px; border-radius: 2px; box-shadow: 12px -8px 0 rgba(255,255,255,.88), 26px 0 0 rgba(255,255,255,.88); }.cloud-pixel.p1 { top: 26px; left: 14%; }.cloud-pixel.p2 { top: 50px; right: 8%; transform: scale(.65); }
.mountain { position: absolute; bottom: 24px; width: 0; height: 0; border-left: 72px solid transparent; border-right: 72px solid transparent; border-bottom: 110px solid #8bb8ed; filter: drop-shadow(8px 0 0 #6ca2e3); }.mountain:after { content:""; position:absolute; left:-30px; top:22px; width:0; height:0; border-left:30px solid transparent; border-right:30px solid transparent; border-bottom:45px solid #eef7ff; }.mountain.m1 { left: 15%; transform: scale(.78); transform-origin: bottom; }.mountain.m2 { left: 40%; }.mountain.m3 { right:-3%; transform:scale(.7); transform-origin:bottom; }
.pine { position: absolute; bottom: 20px; width: 11px; height: 22px; background:#775531; z-index: 4; }.pine:before { content:""; position:absolute; left:-12px; top:-28px; border-left:18px solid transparent; border-right:18px solid transparent; border-bottom:43px solid #398f62; filter:drop-shadow(0 7px 0 #27734b); }.pine.t1 { left: 14%; transform:scale(.65); }.pine.t2 { right:14%; }.pine.t3 { right:27%; transform:scale(.55); }
.flag-pole { position:absolute; right:14%; bottom:24px; width:3px; height:72px; background:#6a4b39; z-index:6; }.flag-pole b { position:absolute; left:3px; top:0; width:36px; height:25px; display:grid; place-items:center; background:#448cf0; color:#ffda69; font-style:normal; clip-path:polygon(0 0,100% 0,84% 50%,100% 100%,0 100%); }
.grass-platform { position:absolute; height:24px; left:0; right:0; bottom:0; background:#4eac55; border-top:7px solid #7bd25d; box-shadow:inset 0 -8px 0 #907348; z-index:5; }
.cookie-hero { width:42px; height:48px; border-radius:45%; right:28%; bottom:22px; position:absolute; z-index:8; }.cookie-hero .arm { position:absolute; width:15px; height:5px; background:#8d542d; top:55%; }.cookie-hero .a1 { left:-13px; transform:rotate(-28deg); }.cookie-hero .a2 { right:-13px; transform:rotate(28deg); }.cookie-hero .leg { position:absolute; bottom:-10px; width:6px; height:12px; background:#365c87; }.cookie-hero .l1 { left:10px; }.cookie-hero .l2 { right:9px; }

.game-card { background:#fff; border:1px solid #e1e9f4; border-radius:13px; box-shadow:var(--pixel-shadow); }
.today-primary-grid { display:grid; grid-template-columns:minmax(320px,.88fr) minmax(430px,1.12fr); gap:14px; margin-top:14px; }.today-secondary-grid { display:grid; grid-template-columns:.65fr 1.22fr .72fr; gap:14px; margin-top:14px; }.today-bottom-grid { display:grid; grid-template-columns:.9fr 1.1fr; gap:14px; margin-top:14px; }
.today-task-panel,.today-bingo-panel,.weekly-panel,.map-preview-panel,.achievement-panel,.ai-review-card,.library-preview { padding:16px; }
.game-card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }.game-card-head h3,.module-title-link { margin:0; font-size:14px; }.module-title-link { border:0; padding:0; background:none; color:inherit; font-weight:700; cursor:pointer; text-align:left; }.module-title-link:hover,.module-title-link:focus-visible { color:#3e81d8; outline:none; }.game-card-head>span,.game-card-head>div>span { color:#7190b8; font-size:10px; font-weight:700; }.game-card-head>div { display:flex; align-items:center; gap:7px; }
.pixel-edit { border:0; border-radius:7px; background:#edf5ff; color:#438be8; width:24px; height:24px; cursor:pointer; }
.pixel-ui .game-task-list { margin-top:10px; gap:0; }.pixel-ui .game-task-list .task-row { min-height:36px; padding:7px 4px; border-bottom:1px solid #edf1f7; }.pixel-ui .game-task-list .check-button { width:17px; height:17px; border-radius:4px; }.pixel-ui .game-task-list .task-name { font-size:10px; }.pixel-ui .game-task-list .task-meta { display:none; }.pixel-ui .game-task-list .core-label { font-size:0; background:none; padding:0; }.pixel-ui .game-task-list .core-label:after { content:"★"; color:#e9aa31; font-size:13px; }.pixel-ui .game-task-list .normal-label { display:none; }
.inline-add { border:0; background:none; color:#438ef0; font-size:10px; font-weight:700; padding:10px 3px 0; cursor:pointer; }
.pixel-ui .pixel-bingo { gap:7px; margin-top:12px; }.pixel-ui .pixel-bingo .bingo-tile { aspect-ratio:1.15; min-height:45px; border:0; border-radius:9px; background:linear-gradient(145deg,#f4f0ff,#eef5ff); box-shadow:inset 0 -2px 0 rgba(115,105,190,.06); }.pixel-ui .pixel-bingo .bingo-tile:nth-child(5n+2),.pixel-ui .pixel-bingo .bingo-tile:nth-child(5n+4) { background:linear-gradient(145deg,#fff0f5,#f8f0ff); }.pixel-ui .pixel-bingo .bingo-tile.done { background:linear-gradient(145deg,#e4f8ee,#dff5f0); outline:2px solid #6cc5a1; }.pixel-ui .pixel-bingo .bingo-tile.done:after { content:"✓"; position:absolute; right:3px; top:2px; width:13px; height:13px; display:grid; place-items:center; border-radius:4px; background:#4e9ef8; color:white; font-size:8px; }.pixel-ui .pixel-bingo .bingo-tile { position:relative; }.pixel-ui .pixel-bingo .bingo-icon { font-size:16px; }.pixel-ui .pixel-bingo .bingo-label { display:none; }
.streak-row { display:flex; justify-content:space-between; margin-top:12px; font-size:9px; }.streak-row span { color:#506682; }
.weekly-mini-list { margin-top:10px; display:grid; gap:10px; }.weekly-preview-item { width:100%; display:grid; grid-template-columns:1fr auto; gap:4px; align-items:center; border:0; border-radius:7px; padding:3px; background:none; color:inherit; text-align:left; font-size:9px; cursor:pointer; }.weekly-preview-item:hover,.weekly-preview-item:focus-visible,.dashboard-preview-button:hover,.dashboard-preview-button:focus-visible { background:#f2f7ff; outline:2px solid #d8e9ff; }.weekly-preview-item>i { grid-column:1/3; display:block; height:5px; background:#e8eff8; border-radius:4px; overflow:hidden; }.weekly-mini-list em { display:block; height:100%; background:#4f98f3; border-radius:inherit; }.weekly-mini-list b { color:#7190b8; }.weekly-mini-list .mini-done b { color:#3bb28a; }.dashboard-guide small { grid-column:1/3; color:#8797ae; font-size:7px; }
.card-link { border:0; background:none; color:#3e81d8; font-size:9px; font-weight:700; padding:0; cursor:pointer; }.weekly-panel>.card-link { margin-top:14px; }
.world-map-mini { height:143px; position:relative; overflow:hidden; margin-top:11px; border-radius:9px; background:linear-gradient(#d9efff 0 43%,#7fc96d 43% 74%,#62b45e 74%); border:4px solid #edf5ff; }.map-mountain { position:absolute; left:26%; top:4px; width:0; height:0; border-left:48px solid transparent; border-right:48px solid transparent; border-bottom:75px solid #80b1df; }.map-mountain:after { content:""; position:absolute; left:-20px; top:19px; border-left:20px solid transparent; border-right:20px solid transparent; border-bottom:30px solid white; }.map-river { position:absolute; z-index:2; left:43%; top:52px; width:32px; height:120px; background:#65b9e8; transform:rotate(14deg); border-radius:50%; }.map-tree { position:absolute; z-index:3; width:10px; height:26px; background:#765634; }.map-tree:before { content:""; position:absolute; left:-12px; top:-16px; width:34px; height:30px; border-radius:50%; background:#4c9d50; box-shadow:inset -8px -5px #358546; }.map-tree.tr1 { right:15%; top:46px; }.map-tree.tr2 { left:12%; top:76px; transform:scale(.75); }.map-tree.tr3 { right:34%; top:82px; transform:scale(.62); }
.map-zone { position:absolute; z-index:5; border:0; color:#fff; padding:7px 10px; border-radius:7px; background:#5792ec; font-size:9px; font-weight:700; box-shadow:0 3px 0 rgba(44,81,136,.24); }.map-zone small { display:block; opacity:.85; font-size:7px; }.map-zone.z1 { left:10%; bottom:25px; }.map-zone.z2 { right:9%; top:12px; background:#73af62; }.map-zone.z3 { right:8%; bottom:16px; background:#df769d; }.cookie-on-map { width:23px; height:23px; border-width:2px; left:48%; bottom:22px; position:absolute; z-index:6; }
.map-progress { display:grid; grid-template-columns:1fr auto; gap:5px; margin-top:8px; color:#637896; font-size:8px; }.map-progress>i { grid-column:1/3; display:block; height:6px; border-radius:4px; background:#e7eef7; overflow:hidden; }.map-progress em { display:block; height:100%; background:#4b96f5; }
.achievement-list { display:grid; gap:13px; margin-top:14px; }.achievement-list>div { display:grid; grid-template-columns:28px 1fr; gap:8px; align-items:center; }.achievement-list>div>span { width:28px; height:28px; display:grid; place-items:center; border-radius:8px; background:#eef5ff; font-size:14px; }.achievement-list p { margin:0; }.achievement-list b,.achievement-list small { display:block; }.achievement-list b { font-size:9px; }.achievement-list small { margin-top:3px; font-size:7px; color:#8192aa; }
.ai-review-card { display:grid; gap:12px; }.ai-review-card h3 { font-size:11px; margin:5px 0 0; }.ai-gradient-button { width:100%; border:0; border-radius:8px; padding:10px; color:#fff; font-size:10px; font-weight:700; background:linear-gradient(90deg,#6e55f4,#875dff); cursor:pointer; box-shadow:0 5px 12px rgba(111,83,241,.2); }.ai-review-card>small { color:#72849f; font-size:8px; }.ai-review-card>small span { color:#7995bc; }
.note-preview { display:grid; grid-template-columns:27px 1fr auto; gap:8px; align-items:center; margin-top:11px; }.dashboard-preview-button { width:100%; border:0; border-radius:8px; padding:4px; background:none; color:inherit; text-align:left; cursor:pointer; }.note-preview>span { width:27px; height:27px; display:grid; place-items:center; background:#eff5ff; border-radius:8px; }.note-preview p { margin:0; min-width:0; }.note-preview b,.note-preview small { display:block; }.note-preview b { font-size:9px; }.note-preview small,.note-preview time { color:#8797ae; font-size:7px; }
.travel-banner { display:grid; grid-template-columns:47px minmax(0,1fr); align-items:center; gap:14px; margin-top:14px; min-height:74px; padding:12px 20px; color:#fff; border-radius:12px; background:linear-gradient(110deg,#3b8ff1,#2879de 60%,#4c9af1); box-shadow:0 10px 24px rgba(49,128,224,.2); }.travel-banner>div>b,.travel-banner>div>small { display:block; }.travel-banner>div>b { font-size:12px; }.travel-banner>div>small { margin-top:4px; font-size:8px; color:rgba(255,255,255,.75); }
.countdown-section { min-width:0; }.countdown-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }.countdown-heading>b { font-size:9px; color:rgba(255,255,255,.78); }.countdown-heading button { border:0; padding:2px; background:none; color:#fff; font-size:8px; font-weight:700; cursor:pointer; }.countdown-list { display:grid; gap:7px; }.countdown-item { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; border-radius:7px; padding:4px; cursor:pointer; }.countdown-item:hover,.countdown-item:focus-visible { background:rgba(255,255,255,.11); outline:1px solid rgba(255,255,255,.32); }.countdown-item>div { min-width:0; }.countdown-item b,.countdown-item small,.countdown-empty b,.countdown-empty small { display:block; }.countdown-item b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }.countdown-item small,.countdown-empty small { margin-top:3px; color:rgba(255,255,255,.78); font-size:7px; }.countdown-empty { width:100%; border:0; border-radius:7px; padding:7px; background:rgba(255,255,255,.1); color:#fff; text-align:left; cursor:pointer; }.countdown-tools { flex:0 0 auto; display:flex; gap:3px; }.countdown-tools button,.countdown-add { border:1px solid rgba(255,255,255,.32); color:#fff; background:rgba(255,255,255,.13); cursor:pointer; }.countdown-tools button { width:22px; height:22px; padding:0; border-radius:6px; font-size:10px; }.countdown-add { margin-top:7px; padding:4px 7px; border-radius:6px; font-size:7px; }.countdown-limit { margin-top:6px!important; color:rgba(255,255,255,.82)!important; }.countdown-dialog textarea { resize:vertical; min-height:76px; }

.pixel-ui .section-toolbar { margin-top:5px; }.pixel-ui .primary-button { background:linear-gradient(135deg,var(--game-blue),var(--game-blue-dark)); }.pixel-ui .segmented button.active { background:var(--game-blue); color:white; }.pixel-ui .card,.pixel-ui .quest-item { border-radius:13px; box-shadow:var(--pixel-shadow); }.pixel-ui .quest-symbol { background:#edf5ff; }
.pixel-ui .segmented [data-quest-filter="daily"] { border-color:#b9d8ff; }.pixel-ui .segmented [data-quest-filter="weekly"] { border-color:#c7cdf7; }.pixel-ui .segmented [data-quest-filter="epic"] { border-color:#efc9dd; }
.map-page-hero { padding:24px 27px; display:flex; align-items:center; justify-content:space-between; gap:25px; }.map-page-hero h2 { margin:6px 0; font-size:23px; }.map-page-hero p { margin:0; color:var(--game-muted); font-size:10px; }.big-world-map { min-height:610px; margin-top:14px; position:relative; overflow:hidden; border-radius:16px; background:linear-gradient(#cfeaff 0 31%,#8fd070 31% 55%,#5eb961 55%); border:1px solid #d4e6f8; box-shadow:var(--pixel-shadow); }.big-river { position:absolute; top:30%; left:41%; width:100px; height:85%; border-radius:50%; background:#62bce7; transform:rotate(14deg); box-shadow:inset 12px 0 rgba(255,255,255,.18); }.big-mountain { position:absolute; top:7%; width:0; height:0; border-left:110px solid transparent; border-right:110px solid transparent; border-bottom:170px solid #7aa9dc; filter:drop-shadow(12px 8px 0 #5f94cb); }.big-mountain:after { content:""; position:absolute; left:-45px; top:39px; border-left:45px solid transparent; border-right:45px solid transparent; border-bottom:70px solid #eaf7ff; }.big-mountain.bm1 { left:8%; }.big-mountain.bm2 { right:5%; transform:scale(.72); transform-origin:top; }.big-tree { position:absolute; z-index:2; width:15px; height:42px; background:#795431; }.big-tree:before { content:""; position:absolute; width:48px; height:43px; border-radius:50%; left:-17px; top:-25px; background:#3d934b; box-shadow:inset -12px -7px #2d783d; }.big-tree.bt1 { left:9%; top:48%; }.big-tree.bt2 { right:12%; top:42%; }.big-tree.bt3 { left:25%; bottom:10%; transform:scale(.75); }.big-tree.bt4 { right:30%; bottom:15%; transform:scale(.85); }
.pixel-island-grid { position:relative; z-index:4; padding:230px 5% 45px; grid-template-columns:repeat(3,1fr); }.pixel-ui .pixel-island-grid .island-card { box-shadow:0 6px 0 rgba(49,98,66,.16); border:2px solid rgba(255,255,255,.65); }.pixel-ui .pixel-island-grid .island-scene { height:120px; }.pixel-ui .pixel-island-grid .island-label { padding:12px 13px; }.pixel-ui .pixel-island-grid .island-label h3 { font-size:11px; }.pixel-ui .pixel-island-grid .island-label p { font-size:7px; }.map-cookie { left:47%; right:auto; bottom:16%; }
.pixel-ui .companion-layout { margin-top:5px; }.pixel-ui .journal-panel,.pixel-ui .reflection-result { border:1px solid #dfe9f5; box-shadow:var(--pixel-shadow); }.pixel-ui .journal-panel textarea { background:#f8fbff; }
.coming-page { padding-top:10px; }.coming-card { max-width:640px; margin:8vh auto; padding:60px 40px; text-align:center; }.coming-icon { display:block; font-size:55px; margin-bottom:14px; }.coming-card h2 { font-size:25px; margin:8px 0; }.coming-card p { max-width:480px; margin:0 auto 24px; color:var(--game-muted); font-size:11px; line-height:1.8; }
.library-page { padding-top:5px; }.library-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px 28px; background:linear-gradient(135deg,#fff 0 60%,#eef6ff); }.library-hero h2 { margin:6px 0; font-size:24px; }.library-hero p { margin:0; color:var(--game-muted); font-size:10px; }.library-hero-actions { display:flex; gap:8px; flex:0 0 auto; }.library-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:14px 2px 11px; }.library-toolbar>span { flex:0 0 auto; color:#7389a7; font-size:9px; }.library-filters { display:flex; flex-wrap:wrap; gap:7px; }.library-filters button { border:1px solid #d4e3f4; border-radius:8px; padding:7px 11px; background:#fff; color:#5c7392; font-size:8px; cursor:pointer; }.library-filters button.active { border-color:#4b96f5; background:#4b96f5; color:#fff; box-shadow:0 3px 0 #2e75cd; }.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }.library-entry-card { position:relative; display:flex; flex-direction:column; min-height:245px; padding:17px; cursor:pointer; border-top:4px solid #72aef5; transition:transform .15s ease,box-shadow .15s ease; }.library-entry-card:nth-child(3n+2) { border-top-color:#df91b5; }.library-entry-card:nth-child(3n) { border-top-color:#7fc4a6; }.library-entry-card:hover,.library-entry-card:focus-visible { transform:translateY(-2px); box-shadow:0 10px 24px rgba(48,92,145,.15); outline:none; }.library-entry-head { display:grid; grid-template-columns:35px 1fr; align-items:start; gap:9px; }.library-entry-head>span { width:35px; height:35px; display:grid; place-items:center; border-radius:9px; background:#eef5ff; font-size:17px; }.library-entry-head small { color:#4c8fe5; font-size:7px; font-weight:700; }.library-entry-head h3 { margin:3px 0 0; font-size:12px; line-height:1.45; }.library-entry-card>p { display:-webkit-box; overflow:hidden; margin:15px 0 10px; color:#667b97; font-size:9px; line-height:1.65; -webkit-line-clamp:3; -webkit-box-orient:vertical; }.library-thought-link { align-self:flex-start; border:0; padding:0; background:none; color:#bb668b; font-size:8px; font-weight:700; cursor:pointer; }.library-entry-foot { margin-top:auto; padding-top:12px; }.library-source { display:block; overflow:hidden; color:#8798ae; font-size:7px; text-overflow:ellipsis; white-space:nowrap; }.library-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }.library-tags i { padding:4px 6px; border-radius:5px; background:#edf5ff; color:#4d83c4; font-size:7px; font-style:normal; }.library-card-actions { display:flex; justify-content:flex-end; gap:7px; margin-top:13px; padding-top:10px; border-top:1px solid #edf1f7; }.library-card-actions button { border:0; background:none; color:#4387dd; font-size:8px; cursor:pointer; }.library-card-actions button.danger { color:#d36d83; }.library-empty { grid-column:1/-1; padding:60px 30px; text-align:center; }.library-empty>span { font-size:42px; }.library-empty h3 { margin:12px 0 5px; }.library-empty p { color:var(--game-muted); font-size:10px; }.library-dialog { width:min(720px,calc(100vw - 28px)); }.library-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.library-wide-field,.library-ai-placeholder { grid-column:1/-1; }.library-dialog textarea { min-height:88px; resize:vertical; }.library-ai-placeholder { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 14px; border:1px dashed #a8c8ef; border-radius:10px; background:#f2f8ff; }.library-ai-placeholder b,.library-ai-placeholder small { display:block; }.library-ai-placeholder b { color:#346da9; font-size:9px; }.library-ai-placeholder small { margin-top:3px; color:#7d91ac; font-size:7px; }.library-ai-placeholder button { flex:0 0 auto; border:0; border-radius:7px; padding:8px 11px; background:linear-gradient(135deg,#725ef3,#9b6df5); color:#fff; font-size:8px; cursor:pointer; }.library-type-dialog { width:min(700px,calc(100vw - 28px)); }.library-type-dialog>p { color:#7488a3; font-size:9px; }.library-type-list { display:grid; gap:7px; margin:16px 0; }.library-type-row { display:grid; grid-template-columns:48px minmax(120px,1fr) 45px auto auto; gap:7px; align-items:center; }.library-type-row input { min-width:0; }.library-type-row span,.library-type-row small { color:#7b8da5; font-size:8px; }.library-type-row button { border:0; background:none; color:#4387dd; font-size:8px; cursor:pointer; }.library-type-row button.danger { color:#d36d83; }.library-type-add { display:grid; grid-template-columns:60px 1fr auto; gap:8px; padding-top:14px; border-top:1px solid #e6edf6; }.library-detail-dialog { width:min(650px,calc(100vw - 28px)); }.library-detail-meta { display:flex; justify-content:space-between; gap:20px; color:#8193aa; font-size:9px; }.library-detail-dialog section { margin-top:14px; padding:16px; border-radius:10px; background:#f6f9fd; }.library-detail-dialog section.original { background:#f8fbff; border:1px solid #e5edf7; }.library-detail-dialog section.thought { background:#fff4f8; }.library-detail-dialog section small { color:#4c87d3; font-size:8px; font-weight:700; }.library-detail-dialog section p { margin:8px 0 0; color:#40546f; font-size:11px; line-height:1.8; white-space:pre-wrap; }

@media (max-width: 1080px) {
  .today-secondary-grid { grid-template-columns:1fr 1.3fr; }.achievement-panel { grid-column:1/3; }.achievement-list { grid-template-columns:repeat(3,1fr); }
  .pixel-island-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 760px) {
  .pixel-ui { background:#eaf4ff; padding-bottom:68px; }
  .pixel-ui .pixel-main { margin-left:0; padding:0 11px 20px; }
  .pixel-ui .pixel-topbar { height:58px; min-height:58px; margin:0 -11px; padding:0 14px; background:#4c98f4; border:0; color:white; }
  .desktop-page-title { display:none; }.mobile-wordmark { display:flex; }.pixel-resources .resource-pill,.pixel-resources .calendar-button { display:none; }.pixel-ui .avatar { width:32px; height:32px; box-shadow:none; }.pixel-ui .profile-strip { margin-left:auto; }
  .pixel-hero { margin:0 -11px; border:0; border-radius:0; min-height:178px; grid-template-columns:1fr; background:linear-gradient(#4c98f4 0 62%,#96d1ff 62%); box-shadow:none; }
  .hero-copy { position:absolute; z-index:9; padding:12px 17px; color:white; }.hero-copy .hero-kicker { color:rgba(255,255,255,.72); }.hero-copy h2 { font-size:18px; margin:4px 0; }.hero-copy p { color:rgba(255,255,255,.87); font-size:9px; max-width:225px; }
  .hero-world { min-height:178px; }.mountain { bottom:24px; transform:scale(.66)!important; }.mountain.m1 { left:20%; }.mountain.m2 { left:44%; }.mountain.m3 { right:-15%; }.cookie-hero { right:25%; }.flag-pole { right:10%; }.pine.t1 { left:6%; }.pine.t2 { right:36%; }
  .today-primary-grid,.today-secondary-grid,.today-bottom-grid { display:block; margin-top:10px; }.game-card { border-radius:11px; }.today-task-panel,.today-bingo-panel,.weekly-panel,.map-preview-panel,.achievement-panel,.ai-review-card,.library-preview { padding:14px; margin-top:10px; }
  .pixel-ui .game-task-list .task-row { min-height:35px; }.pixel-ui .pixel-bingo { gap:6px; }.pixel-ui .pixel-bingo .bingo-tile { min-height:47px; aspect-ratio:1; }.pixel-ui .pixel-bingo .bingo-icon { font-size:18px; }
  .achievement-panel { display:none; }.world-map-mini { height:190px; }.map-preview-panel { display:block; }.travel-banner { grid-template-columns:40px 1fr; margin-bottom:8px; }.countdown-item b { white-space:normal; line-height:1.35; }
  .pixel-ui .pixel-mobile-nav { grid-template-columns:repeat(5,1fr); background:rgba(255,255,255,.96); padding-top:7px; }.pixel-ui .pixel-mobile-nav button { font-size:8px; }.pixel-ui .pixel-mobile-nav button span { font-size:15px; }.pixel-ui .pixel-mobile-nav button.active { color:#398af0; }
  .map-page-hero { display:block; padding:20px; }.map-page-hero h2 { font-size:19px; }.map-page-hero .journey-stat { margin-top:16px; }.big-world-map { min-height:850px; }.pixel-island-grid { padding:200px 7% 45px; grid-template-columns:1fr; }.pixel-ui .pixel-island-grid .island-scene { height:145px; }.map-cookie { bottom:2%; left:72%; }
  .coming-card { margin:5vh auto; padding:45px 25px; }
  .library-hero { display:block; padding:18px; }.library-hero h2 { font-size:19px; }.library-hero p { font-size:9px; }.library-hero-actions { margin-top:14px; }.library-hero-actions button { flex:1; padding:9px 8px; font-size:8px; }.library-toolbar { display:block; }.library-toolbar>span { display:block; margin-top:10px; }.library-filters { flex-wrap:nowrap; overflow-x:auto; padding:0 0 5px; scrollbar-width:none; }.library-filters button { flex:0 0 auto; }.library-grid { grid-template-columns:1fr; }.library-entry-card { min-height:225px; }.library-form-grid { grid-template-columns:1fr; }.library-wide-field,.library-ai-placeholder { grid-column:auto; }.library-ai-placeholder { align-items:flex-start; }.library-type-row { grid-template-columns:40px 1fr 38px; }.library-type-row button,.library-type-row small { grid-row:2; }.library-type-add { grid-template-columns:50px 1fr; }.library-type-add button { grid-column:1/3; }.library-detail-meta { display:grid; gap:5px; }
}

/* V3 visual artwork: complete 2D pixel-art scenes replace geometric placeholders. */
.pixel-hero .hero-world { min-height: 154px; }
.pixel-hero .hero-world img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 54%; display: block; }

@media (max-width:720px) {
  .pixel-hero { margin:0 -11px; display:flex; flex-direction:column; min-height:0; border:0; border-radius:0; background:#fff; box-shadow:none; }
  .pixel-hero .hero-copy { position:relative; order:1; padding:18px 17px 16px; color:#20334f; background:linear-gradient(145deg,#fff,#f2f8ff); }
  .pixel-hero .hero-copy .hero-kicker { color:#6681a7; font-size:8px; }
  .pixel-hero .hero-copy .hero-brand-title { margin:7px 0 6px; max-width:none; font-size:21px; line-height:1.32; color:#172c49; }
  .pixel-hero .hero-copy .hero-brand-support { color:#617895; font-size:10px; line-height:1.55; max-width:none; }
  .pixel-hero .hero-greeting { margin-top:13px; padding-top:11px; border-color:#d7e5f5; }
  .pixel-hero .hero-greeting h3 { font-size:13px; color:#213b5e; }
  .pixel-hero .hero-greeting p { max-width:none; color:#6c819e; font-size:9px; }
  .pixel-hero .hero-world { position:relative; order:2; min-height:178px; height:178px; }
  .pixel-hero .hero-world img { object-position:61% 50%; }
  .task-row { grid-template-columns:22px minmax(0,1fr) auto; gap:7px; }
  .task-row-tools { gap:3px; }.task-row-tools .icon-action { width:25px; height:25px; }
  .subtask-section,.quest-actions { margin-left:0; }
  .subtask-row { grid-template-columns:19px minmax(0,1fr) 26px 26px; gap:5px; }
  .task-period-fields:not([hidden]) { grid-template-columns:1fr; }
  .task-dialog-actions { flex-wrap:wrap; }.task-dialog-actions .dialog-action-spacer { display:none; }.task-dialog-actions .danger-button { margin-right:auto; }
}

/* Library dialog polish: a calm inspiration workspace, not a back-office form. */
.pixel-ui .library-dialog { width:min(790px,calc(100vw - 32px)); max-height:90vh; overflow:auto; border:1px solid rgba(185,211,240,.85); border-radius:22px; background:#f7fbff; box-shadow:0 28px 90px rgba(32,73,122,.28); }
.pixel-ui .library-dialog form { padding:0; }
.library-dialog-header { position:relative; padding:28px 32px 23px; border-bottom:1px solid #dfeaf6; background:linear-gradient(135deg,#fff 20%,#eef7ff 75%,#f9f3ff); }
.library-dialog-header:after { content:""; position:absolute; right:82px; bottom:-5px; width:38px; height:9px; border-radius:2px; background:repeating-linear-gradient(90deg,#8ec3fb 0 7px,transparent 7px 10px); opacity:.45; }
.library-dialog-header .eyebrow { color:#4a86d4; letter-spacing:.17em; }
.library-dialog-header h2 { margin:7px 0 0; color:#172f50; font-size:25px; line-height:1.25; }
.library-dialog-intro { margin:8px 0 0; color:#7186a2; font-size:10px; line-height:1.65; }
.library-dialog .dialog-close,.library-detail-dialog .dialog-close { border:1px solid #e1eaf4; background:rgba(255,255,255,.82); color:#6c7f98; box-shadow:0 3px 9px rgba(68,101,140,.08); transition:.18s ease; }
.library-dialog .dialog-close:hover,.library-detail-dialog .dialog-close:hover { color:#397ed3; border-color:#bad5f2; background:#fff; transform:translateY(-1px); }
.library-dialog-body { display:grid; gap:16px; padding:22px 32px 28px; }
.library-form-section { padding:19px 20px 21px; border:1px solid #e1eaf5; border-radius:15px; background:rgba(255,255,255,.92); box-shadow:0 6px 18px rgba(55,92,135,.055); }
.library-form-section.capture { background:linear-gradient(145deg,#fff,#f5f9ff); }
.library-form-section.refine { border-color:#eadfeb; background:linear-gradient(145deg,#fff,#fff9fc); }
.library-section-title { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.library-section-title>span { width:29px; height:29px; display:grid; place-items:center; flex:0 0 auto; border-radius:8px; background:#e8f3ff; color:#377ed1; font-size:8px; font-weight:800; box-shadow:inset 0 -2px rgba(67,132,211,.08); }
.library-form-section.refine .library-section-title>span { background:#fff0f6; color:#c2648d; }
.library-section-title b,.library-section-title small { display:block; }
.library-section-title b { color:#243d5f; font-size:11px; }
.library-section-title small { margin-top:3px; color:#8595aa; font-size:8px; }
.library-dialog label { display:block; color:#405875; font-size:9px; font-weight:700; }
.library-dialog input,.library-dialog select,.library-dialog textarea { display:block; width:100%; margin-top:7px; border:1px solid #dbe6f2; border-radius:10px; background:#fbfdff; color:#293f5d; padding:11px 12px; outline:none; font:inherit; font-size:10px; line-height:1.65; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.library-dialog input,.library-dialog select { height:42px; }
.library-dialog textarea { min-height:112px; resize:vertical; }
.library-dialog .library-thought-field textarea { min-height:128px; border-color:#eadce7; background:#fffafd; }
.library-dialog input:focus,.library-dialog select:focus,.library-dialog textarea:focus { border-color:#78adeb; background:#fff; box-shadow:0 0 0 4px rgba(74,145,229,.11); }
.library-dialog .library-thought-field textarea:focus { border-color:#da8eb0; box-shadow:0 0 0 4px rgba(218,142,176,.11); }
.library-tags-field>small { display:block; margin:7px 2px 0; color:#8a9bb0; font-size:7px; font-weight:400; }
.library-dialog .library-form-grid { gap:14px; }
.library-dialog .library-ai-placeholder { margin-top:14px; padding:15px 16px; border:1px solid #d7ccfa; border-radius:12px; background:linear-gradient(120deg,#f7f4ff,#edf6ff); box-shadow:inset 0 1px rgba(255,255,255,.7); }
.library-ai-placeholder .ai-spark { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:linear-gradient(135deg,#745cf2,#9a70f5); color:#fff; font-size:14px; box-shadow:0 5px 12px rgba(117,91,232,.22); }
.library-dialog .library-ai-placeholder b { color:#493b91; font-size:10px; }
.library-dialog .library-ai-placeholder small { max-width:400px; color:#7a7398; line-height:1.55; }
.library-dialog .library-ai-placeholder button { padding:10px 13px; border-radius:9px; box-shadow:0 5px 12px rgba(111,83,241,.18); }
.library-dialog-actions,.library-detail-actions { position:sticky; z-index:2; bottom:0; align-items:center; margin:0!important; padding:17px 32px; border-top:1px solid #dfe8f3; background:rgba(255,255,255,.96); box-shadow:0 -7px 18px rgba(45,75,112,.055); backdrop-filter:blur(10px); }
.library-dialog-actions .primary-button,.library-detail-actions .primary-button { min-width:145px; box-shadow:0 6px 14px rgba(50,126,219,.2); }
.library-dialog-actions .secondary-button,.library-detail-actions .secondary-button { min-width:82px; }
.library-dialog-actions button:disabled { cursor:not-allowed; opacity:.42; box-shadow:none; filter:saturate(.55); }

.pixel-ui .library-detail-dialog { width:min(700px,calc(100vw - 32px)); max-height:90vh; overflow:auto; border:1px solid rgba(185,211,240,.85); border-radius:22px; background:#f7fbff; box-shadow:0 28px 90px rgba(32,73,122,.28); }
.library-detail-header { padding:28px 32px 22px; border-bottom:1px solid #dde9f5; background:linear-gradient(140deg,#fff,#eff7ff 70%,#f9f5ff); }
.library-type-badge { display:inline-flex; width:max-content; align-items:center; padding:6px 9px; border:1px solid #cfe2f7; border-radius:999px; background:#f5faff; color:#397bc9; letter-spacing:.04em!important; }
.library-detail-header h2 { max-width:560px; margin:12px 0 0; color:#172f50; font-size:25px; line-height:1.35; }
.library-detail-header .library-detail-meta { margin-top:13px; padding-top:12px; border-top:1px dashed #d7e4f2; }
.library-detail-content { display:grid; gap:13px; padding:22px 32px 26px; }
.library-detail-dialog .library-reading-card { margin:0; padding:18px 19px; border:1px solid #e0eaf5; border-radius:14px; background:#fff; box-shadow:0 5px 15px rgba(55,92,135,.045); }
.library-detail-dialog .library-reading-card.original { background:#fbfdff; }
.library-detail-dialog .library-reading-card.summary { border-color:#d5e6f8; background:linear-gradient(145deg,#fff,#f2f8ff); }
.library-detail-dialog .library-reading-card.thought { position:relative; overflow:hidden; border-color:#eed8e4; background:linear-gradient(145deg,#fff,#fff4f9); }
.library-detail-dialog .library-reading-card.thought:before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(#e899ba,#8fbff4); }
.library-reading-title { display:flex; align-items:center; gap:8px; }
.library-reading-title>span { width:25px; height:25px; display:grid; place-items:center; border-radius:7px; background:#eaf4ff; color:#3f83d4; font-size:10px; }
.library-reading-card.thought .library-reading-title>span { background:#ffebf4; color:#c1618b; }
.library-detail-dialog .library-reading-title small { color:#3f6591; font-size:9px; letter-spacing:.05em; }
.library-detail-dialog .library-reading-card p { margin:12px 0 0; color:#405571; font-size:11px; line-height:1.9; white-space:pre-wrap; }
.library-detail-dialog .library-reading-card.thought p { color:#59465a; }
.library-detail-tags { padding:5px 4px 0; }
.library-detail-tags>small { color:#7e91a9; font-size:8px; font-weight:700; }
.library-detail-tags .library-tags { margin-top:8px; }
.library-detail-tags .library-tags i { padding:6px 9px; border:1px solid #d8e7f7; border-radius:999px; background:#f2f8ff; font-size:8px; }
.library-detail-tags .library-tags span { color:#9aa8b9; font-size:8px; }
.library-detail-actions .danger-button { border-color:#f0cbd4; background:#fff7f9; color:#bd5d73; box-shadow:none; }
.library-detail-actions .dialog-action-spacer { flex:1; }

@media (max-width:720px) {
  .pixel-ui .library-dialog,.pixel-ui .library-detail-dialog { width:calc(100vw - 18px); max-height:92vh; border-radius:17px; }
  .library-dialog-header,.library-detail-header { padding:21px 19px 18px; }
  .library-dialog-header h2,.library-detail-header h2 { padding-right:28px; font-size:20px; }
  .library-dialog-intro { padding-right:20px; }
  .library-dialog-body,.library-detail-content { padding:16px; gap:12px; }
  .library-form-section { padding:16px 14px 17px; border-radius:13px; }
  .library-section-title { align-items:flex-start; }
  .library-section-title small { line-height:1.5; }
  .library-dialog .library-form-grid { grid-template-columns:1fr; gap:12px; }
  .library-dialog .library-wide-field { grid-column:auto; }
  .library-dialog .library-ai-placeholder { display:grid; grid-template-columns:34px 1fr; gap:10px; }
  .library-dialog .library-ai-placeholder button { grid-column:1/3; width:100%; }
  .library-dialog-actions,.library-detail-actions { flex-wrap:wrap; padding:14px 16px max(14px,env(safe-area-inset-bottom)); }
  .library-dialog-actions button { flex:1; }
  .library-detail-actions .dialog-action-spacer { display:none; }
  .library-detail-actions .danger-button { order:3; width:100%; margin-top:2px; }
  .library-detail-actions .secondary-button,.library-detail-actions .primary-button { flex:1; min-width:0; }
  .library-detail-header .library-detail-meta { display:grid; gap:6px; }
  .library-detail-dialog .library-reading-card { padding:16px 15px; }
  .library-detail-dialog .library-reading-card p { font-size:10px; line-height:1.8; }
}
.world-map-mini { background: #6bc3ea; }
.world-map-mini > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.world-map-mini:after { content:""; position:absolute; inset:0; z-index:1; box-shadow:inset 0 0 18px rgba(27,89,128,.16); pointer-events:none; }
.world-map-mini .map-zone { z-index: 3; border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(2px); }
.world-map-mini .map-zone.z1 { left: 8%; top: 10%; bottom:auto; }
.world-map-mini .map-zone.z2 { right: 7%; top: 9%; }
.world-map-mini .map-zone.z3 { right: 8%; bottom: 9%; }

.big-world-map { min-height: 0; aspect-ratio: 3 / 2; background: #158ed0; }
.big-world-map > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.world-pin { position:absolute; z-index:5; min-width:120px; padding:9px 12px; border:2px solid rgba(255,255,255,.92); border-radius:10px; color:#fff; background:rgba(48,118,214,.9); box-shadow:0 5px 0 rgba(29,63,101,.24),0 9px 22px rgba(20,53,83,.18); backdrop-filter:blur(3px); cursor:pointer; transform:translate(-50%,-50%); }
.world-pin b,.world-pin small { display:block; }.world-pin b { font-size:10px; }.world-pin small { margin-top:3px; font-size:7px; color:rgba(255,255,255,.84); }
.world-pin:after { content:""; position:absolute; left:50%; bottom:-9px; width:10px; height:10px; background:inherit; border-right:2px solid rgba(255,255,255,.92); border-bottom:2px solid rgba(255,255,255,.92); transform:translateX(-50%) rotate(45deg); }
.pin-study { left:22%; top:22%; background:rgba(48,139,118,.92); }
.pin-ai { left:69%; top:21%; }
.pin-create { left:18%; top:61%; background:rgba(211,105,151,.92); }
.pin-health { left:76%; top:54%; background:rgba(230,126,85,.94); }
.pin-wealth { left:53%; top:79%; background:rgba(123,92,208,.92); }
.landmark-progress-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:12px; }
.landmark-progress-grid .island-scene { display:none; }
.landmark-progress-grid .island-card { cursor:default; box-shadow:var(--pixel-shadow); }
.landmark-progress-grid .island-label { padding:14px; }
.landmark-progress-grid .island-label h3 { font-size:11px; }
.landmark-progress-grid .island-label p { font-size:7px; }

@media (max-width: 1080px) {
  .landmark-progress-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .pixel-hero .hero-world { min-height:178px; }
  .pixel-hero .hero-world img { object-position:61% 50%; }
  .world-map-mini { height:auto; aspect-ratio:3 / 2; }
  .big-world-map { min-height:0; aspect-ratio:3 / 2; margin-left:-2px; margin-right:-2px; }
  .world-pin { min-width:0; padding:5px 7px; border-width:1px; border-radius:6px; box-shadow:0 3px 0 rgba(29,63,101,.2); }
  .world-pin b { font-size:7px; }.world-pin small { display:none; }.world-pin:after { width:6px; height:6px; bottom:-6px; border-width:1px; }
  .landmark-progress-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Bingo labels remain visible under each emoji on desktop and mobile. */
.pixel-ui .pixel-bingo .bingo-tile { gap:5px; }
.pixel-ui .pixel-bingo .bingo-label {
  display:block;
  padding:0 3px;
  color:#53647e;
  font-size:8px;
  font-weight:700;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:760px) {
  .pixel-ui .pixel-bingo .bingo-tile { min-height:58px; gap:4px; }
  .pixel-ui .pixel-bingo .bingo-icon { font-size:17px; }
  .pixel-ui .pixel-bingo .bingo-label { font-size:7px; }
}

/* AI journal, calendar and archive */
.journal-toolbar { display:grid; grid-template-columns:1fr auto auto; gap:20px; align-items:center; padding:18px 22px; margin-bottom:14px; }
.journal-toolbar h2 { margin:3px 0; font-size:19px; }.journal-toolbar p { margin:0; color:var(--game-muted); font-size:9px; }
.journal-tabs { display:flex; gap:4px; padding:4px; background:#eef5ff; border-radius:10px; }.journal-tabs button { border:0; padding:8px 11px; border-radius:7px; background:transparent; color:#6c7f9d; font-size:9px; font-weight:700; cursor:pointer; }.journal-tabs button.active { background:#fff; color:#347fdc; box-shadow:0 3px 9px rgba(59,106,163,.12); }
.import-button { border:1px solid #cfe1f7; border-radius:9px; padding:9px 12px; background:#fff; color:#397fd5; font-size:9px; font-weight:700; cursor:pointer; }
.journal-view { display:none; }.journal-view.active { display:block; animation:pageIn .25s ease; }.journal-layout-v2 { grid-template-columns:minmax(390px,.95fr) minmax(440px,1.05fr); }
.scrapbook-panel { position:relative; background:linear-gradient(90deg,transparent 31px,#f3b6c8 31px,#f3b6c8 32px,transparent 32px),repeating-linear-gradient(#fff 0,#fff 33px,#e9f1fb 34px); }
.journal-date-row { display:grid; grid-template-columns:160px 1fr; gap:18px; }.journal-date-row label,.journal-title-field,.journal-writing { display:block; color:#506580; font-size:9px; font-weight:700; }.journal-date-row input,.journal-title-field input { display:block; width:100%; margin-top:7px; padding:10px 11px; border:1px solid #dbe6f3; border-radius:9px; background:rgba(255,255,255,.9); outline:none; }
.weather-picker { display:flex; gap:6px; margin-top:7px; }.weather-picker button { width:34px; height:34px; padding:0; border:1px solid #dce7f4; border-radius:9px; background:#fff; cursor:pointer; font-size:16px; }.weather-picker button.active { border-color:#5c9dec; background:#e8f3ff; box-shadow:0 0 0 2px rgba(75,146,232,.12); }
.journal-title-field { margin-top:16px; }.mood-block { margin-top:16px; display:flex; justify-content:space-between; align-items:center; color:#506580; font-size:9px; font-weight:700; }.mood-emoji-rating button { width:38px; height:36px; font-size:19px; filter:grayscale(.72); opacity:.58; }.mood-emoji-rating button.active { background:#fff1f6; border-color:#f0a9c4; filter:none; opacity:1; transform:translateY(-2px); }
.journal-writing { margin-top:16px; }.journal-writing textarea { display:block; width:100%; min-height:215px; margin-top:7px; padding:15px; border:1px solid #dce7f4; border-radius:12px; background:rgba(255,255,255,.88); resize:vertical; outline:none; line-height:1.8; font-size:11px; }
.sticker-row { display:flex; justify-content:space-between; align-items:center; margin-top:15px; padding:10px 12px; border:1px dashed #cbdcf0; border-radius:10px; background:rgba(246,250,255,.9); }.sticker-row b,.sticker-row small { display:block; }.sticker-row b { font-size:9px; }.sticker-row small { color:#8999ae; font-size:7px; margin-top:2px; }.photo-button { border:0; border-radius:7px; padding:7px 10px; background:#e9f3ff; color:#347ed7; font-size:8px; font-weight:700; cursor:pointer; }.photo-preview { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }.photo-thumb { width:72px; height:72px; position:relative; border:4px solid white; border-radius:6px; box-shadow:0 3px 10px rgba(48,76,112,.14); transform:rotate(-2deg); overflow:hidden; }.photo-thumb:nth-child(even) { transform:rotate(2deg); }.photo-thumb img { width:100%; height:100%; object-fit:cover; }.photo-thumb button { position:absolute; right:2px; top:2px; width:18px; height:18px; padding:0; border:0; border-radius:50%; background:rgba(24,42,67,.72); color:white; cursor:pointer; font-size:10px; }
.calendar-board { padding:20px; }.calendar-head { display:grid; grid-template-columns:38px 1fr 38px; align-items:center; text-align:center; }.calendar-head button { width:34px; height:34px; border:1px solid #dce7f4; border-radius:9px; background:#fff; color:#3f7eca; cursor:pointer; font-size:20px; }.calendar-head h2 { margin:3px 0; font-size:19px; }.weekday-row,.diary-calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; }.weekday-row { margin:17px 0 7px; text-align:center; color:#8191a8; font-size:8px; font-weight:700; }.calendar-cell { min-height:92px; padding:8px; border:1px solid #e1e9f4; border-radius:9px; background:#fbfdff; text-align:left; cursor:pointer; }.calendar-cell.other { opacity:.35; }.calendar-cell.today { border-color:#5599ec; box-shadow:0 0 0 2px rgba(74,146,232,.1); }.calendar-cell.has-entry { background:linear-gradient(145deg,#f3f8ff,#fff3f7); }.calendar-cell .day-number { display:block; color:#657994; font-size:8px; font-weight:700; }.calendar-cell .day-mood { display:block; margin:8px 0 5px; font-size:20px; }.calendar-cell small { display:block; color:#7e90a9; font-size:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.journal-view[data-journal-view="calendar"].active { display:grid; grid-template-columns:minmax(600px,1.45fr) minmax(280px,.55fr); gap:14px; }.day-reading { padding:22px; }.empty-day { min-height:360px; display:grid; place-content:center; text-align:center; color:#8191a8; }.empty-day span { font-size:35px; }.empty-day h3 { color:var(--game-ink); margin:10px 0 4px; }.empty-day p { font-size:9px; }.reading-entry h2 { margin:6px 0; font-size:19px; }.reading-meta { display:flex; gap:7px; flex-wrap:wrap; margin:10px 0 18px; }.reading-meta span { padding:5px 8px; border-radius:10px; background:#edf5ff; color:#5680ad; font-size:8px; }.reading-body { color:#4d6079; font-size:10px; line-height:1.9; white-space:pre-wrap; }.reading-summary { margin-top:18px; padding:13px; border-radius:10px; background:linear-gradient(135deg,#edf6ff,#fff1f6); }.reading-summary b { font-size:9px; }.reading-summary p { margin:5px 0 0; font-size:9px; line-height:1.7; }
.archive-layout { display:grid; grid-template-columns:220px 1fr; gap:14px; }.archive-filter { padding:20px; }.archive-filter h3 { margin:5px 0; }.archive-filter p { color:#8292a8; font-size:8px; line-height:1.6; }.archive-stats { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:18px; }.archive-stats>div { padding:12px; text-align:center; border-radius:9px; background:#eff6ff; }.archive-stats b,.archive-stats small { display:block; }.archive-stats b { font-size:18px; color:#3e85dd; }.archive-stats small { margin-top:3px; color:#7f91a9; font-size:7px; }.diary-history { display:grid; gap:10px; }.history-card { display:grid; grid-template-columns:62px 1fr auto; gap:13px; align-items:center; padding:15px 17px; border:1px solid #e0e9f5; border-radius:11px; background:#fff; box-shadow:var(--pixel-shadow); cursor:pointer; }.history-date { text-align:center; }.history-date b,.history-date small { display:block; }.history-date b { font-size:20px; color:#377fd7; }.history-date small { font-size:7px; color:#8293aa; }.history-card h3 { margin:0 0 4px; font-size:11px; }.history-card p { margin:0; max-width:650px; color:#7c8da5; font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.history-mood { font-size:22px; }
.import-dialog { width:min(620px,calc(100% - 30px)); }.file-drop { display:flex; justify-content:space-between; align-items:center; margin-top:17px; padding:14px; border:1px dashed #aac9ed; border-radius:11px; background:#f4f9ff; color:#3d7dcc; font-size:9px; font-weight:700; }.file-drop input { width:220px; font-size:8px; }.import-file-list { display:grid; gap:5px; margin-top:8px; }.import-file-list span { padding:7px 9px; border-radius:7px; background:#f7f8fb; color:#657890; font-size:8px; }.paste-journal { display:block; margin-top:15px; font-size:9px; font-weight:700; }.paste-journal textarea { display:block; width:100%; min-height:140px; margin-top:7px; padding:12px; border:1px solid #dce6f2; border-radius:10px; resize:vertical; outline:none; }
.settings-dialog { width:min(580px,calc(100% - 30px)); }.storage-notice { display:grid; grid-template-columns:44px 1fr; gap:13px; margin-top:18px; padding:15px; border-radius:12px; background:linear-gradient(135deg,#edf6ff,#fff3f7); }.storage-notice>span { width:42px; height:42px; display:grid; place-items:center; border-radius:11px; background:white; font-size:20px; }.storage-notice b { font-size:11px; }.storage-notice p { margin:5px 0 0; color:#6f819a; font-size:9px; line-height:1.7; }.backup-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }.backup-summary>div { padding:13px; text-align:center; border:1px solid #e0eaf6; border-radius:10px; }.backup-summary b,.backup-summary small { display:block; }.backup-summary b { color:#397fd7; font-size:19px; }.backup-summary small { margin-top:3px; color:#8292a8; font-size:8px; }.backup-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; }.backup-actions button,.restore-button { width:100%; margin:0; text-align:center; cursor:pointer; }.restore-button { display:grid; place-items:center; }.storage-footnote { margin:14px 0 0; color:#8292a8; font-size:8px; text-align:center; }
.cloud-button { display:flex; align-items:center; gap:6px; border:1px solid #d9e7f6; border-radius:11px; padding:8px 10px; background:#fff; color:#607794; font-size:8px; font-weight:700; cursor:pointer; }.cloud-button i { width:7px; height:7px; border-radius:50%; background:#a9b4c2; box-shadow:0 0 0 3px rgba(169,180,194,.14); }.cloud-button.online i { background:#43b77b; box-shadow:0 0 0 3px rgba(67,183,123,.14); }.cloud-button.syncing i { background:#4c96ec; animation:cloudPulse 1s infinite; }.cloud-button.error i { background:#e47a7a; }.cloud-button.online { color:#31855d; background:#f3fff8; }@keyframes cloudPulse{50%{opacity:.35}}
.cloud-dialog { width:min(520px,calc(100% - 30px)); }.cloud-intro { margin:16px 0; padding:12px; border-radius:10px; background:#edf6ff; color:#667d99; font-size:9px; line-height:1.7; }.cloud-field { display:block; margin-top:12px; color:#506580; font-size:9px; font-weight:700; }.cloud-field input { display:block; width:100%; margin-top:6px; padding:11px 12px; border:1px solid #d9e5f3; border-radius:9px; outline:none; }.cloud-field input:focus { border-color:#5c9dec; box-shadow:0 0 0 3px rgba(76,150,236,.12); }.cloud-auth-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:16px; }.cloud-auth-actions button { width:100%; margin:0; }.auth-message { color:#7b8ca3; font-size:8px; line-height:1.7; }.auth-message.error { color:#c75c6a; }.auth-message.success { color:#31855d; }.signed-in-card { display:grid; grid-template-columns:46px 1fr; gap:12px; align-items:center; margin-top:18px; padding:15px; border-radius:12px; background:linear-gradient(135deg,#edf6ff,#effcf5); }.signed-in-card>span { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; background:white; font-size:22px; }.signed-in-card b { font-size:11px; }.signed-in-card p { margin:4px 0 0; color:#648098; font-size:8px; }

@media (max-width:760px) {
  html,body { overflow-x:hidden; }
  .journal-toolbar { display:flex; flex-wrap:wrap; gap:8px; padding:14px; }.journal-toolbar>div:first-child { width:100%; }.journal-toolbar>div:first-child p { display:none; }.journal-tabs { width:100%; min-width:0; order:2; }.journal-tabs button { flex:1; min-width:0; padding-inline:4px; }.import-button { width:100%; order:3; font-size:8px; }
  .journal-view,.journal-layout-v2,.scrapbook-panel,.reflection-result { width:100%; max-width:100%; min-width:0; }.journal-layout-v2 { display:block; }.scrapbook-panel,.reflection-result { margin-bottom:12px; }.pixel-ui .journal-panel,.pixel-ui .reflection-result { width:calc(100vw - 22px); max-width:calc(100vw - 22px); padding:18px; }.journal-date-row { grid-template-columns:1fr; }.weather-picker { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:4px; }.weather-picker button { width:100%; max-width:36px; justify-self:center; }.mood-block { display:block; }.mood-emoji-rating { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; width:100%; margin-top:8px; }.mood-emoji-rating button { width:100%; max-width:42px; justify-self:center; }.journal-writing textarea { max-width:100%; }
  .journal-view[data-journal-view="calendar"].active { display:block; }.calendar-board { padding:12px; }.weekday-row,.diary-calendar { gap:3px; }.calendar-cell { min-height:58px; padding:5px; }.calendar-cell .day-mood { margin:5px 0 2px; font-size:14px; }.calendar-cell small { display:none; }.day-reading { margin-top:10px; }.archive-layout { display:block; }.archive-filter { margin-bottom:10px; }.history-card { grid-template-columns:48px 1fr auto; padding:12px; }
  .backup-actions { grid-template-columns:1fr; }
  .cloud-button { padding:7px; }.cloud-button span { display:none; }
  .cloud-auth-actions { grid-template-columns:1fr; }
}
.reflection-loading{width:100%;max-width:430px;min-height:320px;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:center;justify-items:center;gap:0;padding:28px 20px;box-sizing:border-box}
.reflection-loading .reflection-loading-icon{width:64px;height:64px;margin:0 auto 18px;display:grid;place-items:center;border:1px solid #cfe2fa;border-radius:20px;background:linear-gradient(145deg,#eef7ff,#e8efff);color:#4b8ee8;font-size:27px;box-shadow:0 10px 26px rgba(67,126,204,.12);animation:reflection-icon-float 1.8s ease-in-out infinite}
.reflection-loading h3{width:100%;margin:0;color:#263f60;font-size:17px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;animation:reflection-message-in .35s ease both}
.reflection-loading p{width:100%;margin:9px 0 0;color:#7890ad;font-size:11px;line-height:1.7;white-space:normal}
@keyframes reflection-message-in{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes reflection-icon-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(max-width:720px){.reflection-loading{min-height:280px;padding:24px 14px}.reflection-loading h3{font-size:15px}.review-date-control label{width:100%;white-space:nowrap}.review-date-control input{min-width:0;writing-mode:horizontal-tb}}
