/* FFFF main: four destinations, one viewport. Original letterforms, no borrowed mascot. */
.ffff-inkmark {
  display:inline-flex; align-items:center; gap:.015em;
  font:700 48px/.8 Gaegu, 'Arial Rounded MT Bold', sans-serif;
  letter-spacing:-.08em; color:var(--raspberry);
}
.ffff-inkmark i { display:block; font-style:normal; transform:rotate(-7deg); }
.ffff-inkmark i:nth-child(2) { transform:translateY(.06em) rotate(5deg); }
.ffff-inkmark i:nth-child(3) { transform:translateY(-.02em) rotate(-4deg); }
.ffff-inkmark i:nth-child(4) { transform:translateY(.04em) rotate(9deg); }
.cosmic-orbit .orbit-center {
  display:flex; flex-direction:column; justify-content:center; gap:10px;
  border:2px solid #C9686855; border-radius:44% 55% 47% 52%; background:#fff3d6;
}
.cosmic-orbit .orbit-center .ffff-inkmark { font-size:clamp(18px,4vw,37px); }
.cosmic-orbit .orbit-center b { position:static; font-size:clamp(36px,6vw,66px); text-shadow:none; }
.color-pearl .ffff-inkmark { font-size:32px; animation:ffff-ink-sway 5s ease-in-out infinite; }
.rec-universe .orbit-center { gap:4px; }
.rec-universe .orbit-center b { font-size:36px; }

body[data-view=pick] { margin:0; min-height:0; }
body[data-view=pick] .top, body[data-view=pick] nav { display:none; }
body[data-view=pick] main { width:100%; max-width:1160px; padding:0; margin:0 auto; }
#view-pick.on { padding:0; margin:0; min-height:0; animation:none; }
.hub {
  --hub-gap:clamp(12px,2.3vh,22px);
  display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; gap:var(--hub-gap);
  height:100vh; height:100dvh; min-height:480px;
  padding:calc(20px + env(safe-area-inset-top)) 28px calc(12px + env(safe-area-inset-bottom));
}
.hub-head { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:44px; }
.hub-brand { display:flex; align-items:center; gap:18px; }
.hub-brand .ffff-inkmark { font-size:47px; }
.hub-brand-line { font-size:11px; letter-spacing:.07em; }
.hub-utilities { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.hub-utilities a { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; font-size:12px; color:var(--space); text-decoration:none; border-radius:25px; }
.hub-utilities a:last-child { border:1px solid #01264119; }
.hub-utilities a:hover { background:#f0eee8; }
.hub-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.hub-intro p { margin:0 0 7px; font-size:12px; line-height:1.4; color:var(--muted); }
.hub-intro h1 { font-size:clamp(25px,3.4vw,38px); font-weight:700; line-height:1.22; letter-spacing:-.055em; margin:0; }
.hub-intro h1 em { font-style:normal; color:var(--raspberry); white-space:nowrap; }
.hub-doodle { font:700 26px/1.1 Gaegu,cursive; color:#426f79; transform:rotate(-6deg); padding-right:15px; white-space:nowrap; }
.hub-doodle i { display:inline-block; color:var(--coral); font-size:38px; font-style:normal; vertical-align:middle; animation:hub-star 5s ease-in-out infinite; }
.hub-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:16px; min-height:0; }
.hub .hub-tile {
  position:relative; display:grid; grid-template-columns:minmax(0,1fr) 40%; grid-template-rows:auto 1fr;
  gap:12px; width:100%; min-width:0; min-height:0; padding:26px;
  color:var(--space); text-align:left; text-decoration:none; font-family:var(--font);
  border:1px solid #0126410d; border-radius:26px; box-shadow:none; cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
  isolation:isolate; -webkit-tap-highlight-color:transparent;
}
.hub .hub-tile:hover { transform:translateY(-3px); box-shadow:0 9px 20px #0126410b; }
.hub .hub-tile:active { transform:scale(.985); }
.hub .hub-tile:disabled { cursor:wait; opacity:.75; }
.hub-tile:focus-visible, .hub-utilities a:focus-visible, .hub-dialog :is(button,input,summary):focus-visible { outline:3px solid var(--raspberry); outline-offset:4px; }
.hub .hub-today { background:var(--space); color:var(--honey); }
.hub .hub-closet { background:#f5e4df; }
.hub .hub-date { background:#fbefd0; }
.hub .hub-tags { background:#dcebed; }
.hub-tile-top { grid-column:1; display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:10px; font-weight:650; letter-spacing:.11em; line-height:1.2; }
.hub-arrow { display:grid; place-items:center; width:28px; height:28px; border:1px solid currentColor; border-radius:50%; font-size:19px; font-weight:400; letter-spacing:0; flex-shrink:0; opacity:.7; }
.hub-tile-copy { grid-column:1; grid-row:2; align-self:center; display:flex; flex-direction:column; gap:7px; min-width:0; }
.hub-tile-copy strong { display:block; font-size:clamp(21px,2.3vw,29px); line-height:1.25; letter-spacing:-.05em; font-weight:750; word-break:keep-all; }
.hub-tile-copy>span { display:block; font-size:13px; line-height:1.5; font-weight:500; word-break:keep-all; }
.hub-tile-copy>.hub-card-note, .hub-tile-copy>.hub-live-hint { margin-top:10px; font-size:11px; line-height:1.5; font-weight:400; opacity:.75; }
.hub-tile-copy>.hub-live-hint { opacity:1; display:flex; align-items:center; gap:6px; }
.hub-live-hint i { display:inline-block; width:10px; height:10px; border:1px solid #ffffff88; border-radius:50%; flex-shrink:0; }
.hub-art { grid-column:2; grid-row:1 / 3; align-self:center; justify-self:center; display:grid; place-items:center; position:relative; width:100%; max-width:190px; height:clamp(100px,23vh,210px); min-height:0; pointer-events:none; }
.hub-fortune-stamp { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; width:82%; height:90%; border:1px solid #FADFA14d; border-radius:48% 49% 46% 51%; background:var(--space); transform:rotate(-5deg); animation:ffff-ink-sway 6s ease-in-out infinite; }
.hub-fortune-stamp .ffff-inkmark { font-size:29px; color:var(--raspberry); }
.hub-fortune-stamp>b { font-family:var(--hanja),serif; font-size:clamp(32px,5vw,54px); font-weight:800; line-height:1.1; letter-spacing:-.08em; }
.hub-fortune-stamp small { font:700 17px/1 Gaegu,cursive; }
.hub-orbit-line { position:absolute; width:108%; height:52%; border:1px solid #FADFA15c; border-radius:50%; transform:rotate(-26deg); }
.hub-orbit-line.second { width:101%; transform:rotate(31deg); opacity:.6; }
.hub-spark { position:absolute; right:-1%; top:10%; font-size:26px; color:var(--raspberry); animation:hub-star 5s ease-in-out infinite; }
.hub-closet-art img { width:100%; height:100%; object-fit:contain; animation:hub-hanger 6s ease-in-out infinite; transform-origin:50% 15%; }
.hub-camera-flash { position:absolute; top:8%; right:3%; display:grid; place-items:center; width:32px; height:32px; background:var(--coral); color:#fffdf8; border-radius:50%; font-size:25px; font-weight:400; animation:hub-capture 5s ease-in-out infinite; }
.hub-photo-corners { position:absolute; inset:12% 5%; border:1px dashed #C9686877; border-radius:20px; }
.hub-calendar-art { padding:10px; }
.hub-calendar, .hub-calendar-back { width:76%; height:86%; border:1px solid #01264125; border-radius:12px; }
.hub-calendar-back { position:absolute; background:#e9d092; transform:rotate(9deg); }
.hub-calendar { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--paper); transform:rotate(-5deg); animation:hub-calendar 6s ease-in-out infinite; }
.hub-calendar::before,.hub-calendar::after { content:''; position:absolute; top:-6px; width:5px; height:12px; border-radius:8px; background:var(--coral); }
.hub-calendar::before { left:25%; } .hub-calendar::after { right:25%; }
.hub-calendar small { display:block; width:100%; padding:10px 3px; text-align:center; border-bottom:1px solid #01264113; font-size:10px; color:#64717a; }
.hub-calendar>b { display:grid; place-items:center; flex:1; font:700 clamp(38px,6.5vh,70px)/1 Gaegu,sans-serif; color:var(--raspberry); }
.hub-calendar>span { font:700 15px/1 Gaegu,cursive; padding:4px 0 10px; white-space:nowrap; }
.hub-calendar-star { position:absolute; bottom:10%; right:3%; color:var(--coral); font-size:28px; font-style:normal; animation:hub-star 6s ease-in-out infinite; }
.hub-tags-art { grid-template-rows:repeat(3,auto); align-content:center; gap:7px; }
.hub-floating-tag { display:block; position:relative; width:max-content; max-width:100%; padding:9px 18px; border:1px solid #01264119; border-radius:9px; background:#fffdf8; color:var(--space); font-size:17px; font-weight:700; transform:rotate(-8deg); animation:hub-tag 6s ease-in-out infinite; }
.hub-floating-tag:nth-child(2) { background:var(--coral); color:var(--paper); transform:translateX(18px) rotate(5deg); animation-delay:-2s; }
.hub-floating-tag:nth-child(3) { background:var(--honey); transform:translateX(-6px) rotate(-4deg); animation-delay:-4s; }
.hub-floating-tag i { font-style:normal; margin-left:8px; }
.hub-tag-spark { position:absolute; top:4%; left:3%; color:var(--coral); font-size:24px; font-style:normal; }
.hub-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:30px; font-size:10px; line-height:1.4; color:var(--muted); }
#hub-motion-slot .motion-toggle { position:static; margin:0; font-size:10px; min-height:30px; padding:5px 9px; background:transparent; backdrop-filter:none; white-space:nowrap; opacity:1; }

/* Date and tag pickers use the top layer: focus is contained and Escape closes. */
.hub-dialog { width:min(540px,calc(100% - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:28px; border:1px solid #01264115; border-radius:26px; color:var(--space); background:var(--paper); box-shadow:0 24px 100px #01264122; overscroll-behavior:contain; }
.hub-dialog::backdrop { background:#01264165; backdrop-filter:blur(7px); }
.hub-dialog[open] { animation:hub-sheet .25s ease-out; }
.hub-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.hub-dialog-kicker { font-size:11px; letter-spacing:.1em; font-weight:650; color:#536776; }
.hub-dialog .hub-close { width:44px; height:44px; padding:0; border:1px solid #0126411a; border-radius:50%; color:var(--space); background:transparent; font:400 25px/1 var(--font); cursor:pointer; }
.hub-dialog h2 { font-size:26px; line-height:1.3; letter-spacing:-.05em; margin:0 0 10px; }
.hub-dialog>p { margin:0 0 22px; font-size:13px; line-height:1.6; color:var(--muted); }
.hub-dialog .hub-input-label { display:block; margin:20px 0 8px; font-size:12px; font-weight:650; }
.hub-dialog input { width:100%; min-width:0; max-width:100%; height:54px; padding:12px 15px; border:1px solid #0126412b; border-radius:12px; background:white; color:var(--space); font:500 16px var(--font); }
.hub-dialog input[type=date] { appearance:none; -webkit-appearance:none; }
.hub-quick { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 26px; }
.hub-quick button,.hub-tag-options button { min-height:44px; padding:10px 14px; border:1px solid #01264115; border-radius:12px; background:#f0eee8; font:500 13px var(--font); color:var(--space); cursor:pointer; }
.hub-quick button:hover,.hub-tag-options button:hover { background:var(--honey); }
.hub-dialog .hub-submit { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:54px; padding:16px 20px; border:0; border-radius:14px; background:var(--space); color:var(--paper); font:650 15px var(--font); cursor:pointer; }
.hub-submit:disabled { opacity:.6; }
.hub-tag-options { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.hub-tag-options button:nth-child(3n+2) { background:#f5e4df; }
.hub-tag-options button:nth-child(3n) { background:#dcebed; }
.hub-dialog .hub-tags-status { font-size:12px; margin:14px 0 0; }
.hub-tags-status:empty { display:none; }
.hub-all-tags,.hub-retry { min-height:44px; margin-top:18px; padding:10px 0; border:0; background:transparent; color:var(--space); font:650 13px var(--font); cursor:pointer; }
.hub-tag-group { border-top:1px solid #0126411a; padding:12px 0; }
.hub-tag-group summary { display:flex; align-items:center; justify-content:space-between; padding:10px 0; cursor:pointer; font-size:14px; font-weight:600; }
.hub-tag-group summary>span { font-weight:400; color:var(--muted); }
.hub-tag-group .hub-tag-options { margin:8px 0; }

@keyframes ffff-ink-sway { 0%,100% { transform:rotate(-5deg) translateY(0); } 50% { transform:rotate(3deg) translateY(-3px); } }
@keyframes hub-star { 0%,100% { transform:scale(.85) rotate(-10deg); } 50% { transform:scale(1.1) rotate(12deg); } }
@keyframes hub-hanger { 0%,100% { transform:rotate(-3deg); } 50% { transform:rotate(3deg); } }
@keyframes hub-capture { 0%,70%,100% { transform:scale(1); } 80% { transform:scale(1.16); } }
@keyframes hub-calendar { 0%,70%,100% { transform:rotate(-5deg); } 80% { transform:translateY(-5px) rotate(1deg); } }
@keyframes hub-tag { 0%,100% { translate:0 0; } 50% { translate:0 -5px; } }
@keyframes hub-sheet { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }

@media(max-width:700px) {
  .hub { --hub-gap:16px; padding:calc(14px + env(safe-area-inset-top)) 18px calc(8px + env(safe-area-inset-bottom)); }
  .hub-brand-line,.hub-doodle { display:none; }
  .hub-brand .ffff-inkmark { font-size:44px; }
  .hub-utilities { gap:4px; }
  .hub-utilities a { padding:8px 10px; font-size:11px; }
  .hub-intro { display:block; }
  .hub-intro h1 { font-size:clamp(23px,6.3vw,34px); }
  .hub-intro p { font-size:11px; margin-bottom:7px; }
  .hub-grid { gap:12px; }
  .hub .hub-tile { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; gap:6px; padding:17px 16px; border-radius:22px; }
  .hub-tile-top { grid-row:1; font-size:8px; letter-spacing:.075em; }
  .hub-arrow { width:22px; height:22px; font-size:16px; }
  .hub-art { grid-column:1; grid-row:2; width:100%; height:100%; max-height:180px; max-width:155px; }
  .hub-tile-copy { grid-column:1; grid-row:3; align-self:end; gap:5px; }
  .hub-tile-copy strong { font-size:clamp(17px,4.7vw,23px); }
  .hub-tile-copy>span { font-size:11px; line-height:1.5; }
  .hub-tile-copy>.hub-card-note { display:none; }
  .hub-tile-copy>.hub-live-hint { font-size:9px; gap:4px; margin-top:2px; }
  .hub-live-hint i { width:8px; height:8px; }
  .hub-fortune-stamp { width:80%; height:86%; gap:6px; }
  .hub-fortune-stamp .ffff-inkmark { font-size:24px; }
  .hub-fortune-stamp>b { font-size:36px; }
  .hub-fortune-stamp small { font-size:13px; }
  .hub-spark { font-size:21px; top:9%; right:1%; }
  .hub-closet-art { max-width:160px; }
  .hub-camera-flash { top:12%; width:25px; height:25px; font-size:21px; }
  .hub-calendar-art { padding:3px; }
  .hub-calendar { height:85%; min-height:0; }
  .hub-calendar small { padding:7px 2px; font-size:9px; }
  .hub-calendar>b { font-size:clamp(32px,6.5vh,55px); }
  .hub-calendar>span { font-size:13px; padding:3px 0 8px; }
  .hub-calendar-star { font-size:25px; bottom:7%; }
  .hub-tags-art { gap:5px; }
  .hub-floating-tag { padding:6px 12px; font-size:14px; }
  .hub-floating-tag:nth-child(2) { transform:translateX(8px) rotate(5deg); }
  .hub-floating-tag:nth-child(3) { transform:translateX(-4px) rotate(-4deg); }
  .hub-tag-spark { top:6%; left:1%; font-size:18px; }
  .hub-foot { font-size:8px; }
  .hub-dialog { padding:22px; }
  .hub-dialog h2 { font-size:23px; }
  .rec-universe .orbit-center .ffff-inkmark { font-size:15px; }
  .rec-universe .orbit-center b { font-size:26px; }
}
@media(max-width:700px) and (max-height:720px) {
  .hub { --hub-gap:12px; }
  .hub .hub-tile { padding:13px 14px; gap:5px; }
  .hub-fortune-stamp { gap:3px; }
  .hub-fortune-stamp .ffff-inkmark { font-size:19px; }
  .hub-fortune-stamp>b { font-size:29px; }
  .hub-fortune-stamp small { display:none; }
  .hub-tile-copy>.hub-live-hint { display:none; }
  .hub-floating-tag { padding:4px 10px; font-size:12px; }
  .hub-calendar>b { font-size:36px; }
  .hub-calendar>span { display:none; }
  .hub-calendar small { padding:5px 1px; font-size:8px; }
}
@media(max-width:360px) {
  .hub { padding-inline:12px; }
  .hub-grid { gap:10px; }
  .hub .hub-tile { padding-inline:12px; }
  .hub-tile-copy strong { font-size:16px; }
  .hub-tile-copy>span { font-size:10px; }
  .hub-intro h1 { font-size:23px; }
}
@media(max-width:559px) and (max-height:580px) {
  .hub { min-height:400px; --hub-gap:8px; padding-top:calc(8px + env(safe-area-inset-top)); }
  .hub-head { min-height:38px; }
  .hub-brand .ffff-inkmark { font-size:36px; }
  .hub-utilities a { min-height:38px; }
  .hub-intro h1 { font-size:22px; }
  .hub-intro p { font-size:10px; margin-bottom:4px; }
  .hub .hub-tile { padding-block:10px; gap:4px; }
  .hub-tile-copy strong { font-size:16px; }
  .hub-tile-copy>span { font-size:10px; }
  .hub-fortune-stamp .ffff-inkmark { font-size:15px; }
  .hub-fortune-stamp>b { font-size:24px; }
  .hub-floating-tag { padding:3px 9px; font-size:11px; }
  .hub-tags-art { gap:3px; }
  .hub-floating-tag:nth-child(3) { display:none; }
  .hub-calendar>b { font-size:30px; }
  .hub-calendar small { padding:3px 1px; }
}
@media(min-width:701px) and (max-height:620px) {
  .hub { --hub-gap:10px; padding-block:10px; }
  .hub .hub-tile { padding:16px 20px; gap:8px; }
  .hub-art { height:120px; max-width:130px; }
  .hub-tile-copy>.hub-card-note,.hub-fortune-stamp small { display:none; }
  .hub-tile-copy>.hub-live-hint { margin-top:0; }
  .hub-tile-copy strong { font-size:22px; }
  .hub-fortune-stamp>b { font-size:35px; }
  .hub-floating-tag { font-size:13px; padding:5px 10px; }
  .hub-calendar small { padding:5px 1px; }
  .hub-calendar>span { display:none; }
}
/* In a short landscape viewport the four cards form a single row. */
@media(min-width:560px) and (max-height:480px) {
  .hub { min-height:320px; --hub-gap:8px; padding:8px 16px; }
  .hub-head { min-height:36px; }
  .hub-brand .ffff-inkmark { font-size:34px; }
  .hub-utilities a { min-height:36px; }
  .hub-intro p,.hub-doodle { display:none; }
  .hub-intro h1 { font-size:23px; }
  .hub-grid { grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:10px; }
  .hub .hub-tile { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; padding:12px; gap:4px; border-radius:18px; }
  .hub-tile-top { grid-column:1; grid-row:1; font-size:8px; }
  .hub-arrow { width:18px; height:18px; font-size:14px; }
  .hub-art { grid-column:1; grid-row:2; height:100%; max-height:130px; }
  .hub-tile-copy { grid-column:1; grid-row:3; gap:4px; }
  .hub-tile-copy strong { font-size:16px; }
  .hub-tile-copy>span { font-size:10px; }
  .hub-tile-copy>.hub-live-hint,.hub-tile-copy>.hub-card-note,.hub-fortune-stamp small { display:none; }
  .hub-fortune-stamp .ffff-inkmark { font-size:17px; }
  .hub-fortune-stamp>b { font-size:26px; }
  .hub-calendar>span { display:none; }
  .hub-calendar small { font-size:8px; padding:4px; }
  .hub-calendar>b { font-size:30px; }
  .hub-floating-tag { font-size:11px; padding:4px 9px; }
}
@media(prefers-reduced-motion:reduce) {
  .hub *, .ffff-inkmark, .color-pearl .ffff-inkmark { animation:none!important; transition:none!important; }
}
