/* ===== UI rev 52 "Home Shop style": raised toy-like frames with strong outlines, candy-blue buttons, rounded Nunito headings.
   Each object keeps its own shape and palette: the light-blue City Map, the My Tasks clipboard with a gold clip,
   the light-blue phone with pastel apps, the brown backpack, and the Find Work / My Home windows from the phone.
   Display: Nunito (Google Fonts, already loaded). Body and controls: Source Sans 3 (bundled, OFL). */
@font-face { font-family: 'Source Sans 3'; src: url("/fonts/SourceSans3-Variable.ttf") format('truetype'); font-weight: 200 900; font-style: normal; font-display: swap; }
.ob, .ob button, .ob input, .ob select { font-family: 'Source Sans 3', 'Noto Sans SC', Arial, sans-serif; }
.ob { --ink: #2B3F4C; --ink2: #5B6F7C; position: relative; color: var(--ink); font-weight: 500; text-align: left; }
.ob h2, .ob h3 { margin: 0; font-family: 'Nunito', 'Noto Sans SC', sans-serif; font-weight: 900; letter-spacing: -.01em; }
.ob p { margin: 0; } .ob button { cursor: pointer; font-weight: 600; } .ob .ic { margin: 0; }
#modal:has(> .ob) { background: rgba(40, 52, 70, .12); padding: 12px; }
.ob-head { display: flex; align-items: baseline; gap: 16px; padding: 0 56px 12px 4px; }
.ob-head h2 { font-size: 34px; white-space: nowrap; text-shadow: 0 2px 0 #fff, 0 3px 0 rgba(164, 98, 125, .33); }
.ob-head h2 span { color: #CA618D; } .ob-head h2 em { font-style: normal; color: #2887B4; }
.ob-head p { font-size: 17px; color: var(--ink2); }
.ob-x { position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 2px solid #D7AEB8; background: linear-gradient(#fff, #FFEFF1); color: #2B3F4C; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #BB8A9C; }
.ob-x svg { width: 20px; height: 20px; } .ob-x:active { transform: translateY(2px); box-shadow: inset 0 2px 0 #fff, 0 1px 0 #BB8A9C; }
.ob-kick { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6D8795; }
.ob-kick.tagged { display: inline-block; padding: 3px 10px; border-radius: 8px; background: #D7EDDD; color: #3D795E; }
.ob-fine { display: block; margin-top: 6px; font-size: 11px; color: #7A8B95; text-align: center; }
.ob-coin { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #5B4012; white-space: nowrap; } .ob-coin .ic { width: 22px; height: 22px; }
.ob-pill { display: inline-flex; align-items: center; border-radius: 10px; padding: 3px 9px; background: #D7EDDD; color: #3D795E; font-size: 12px; font-style: normal; font-weight: 600; }
.ob-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 6px 18px; border-radius: 14px; border: 2px solid #299BCD; background: linear-gradient(#C7EFFF, #91D6EF); color: #205D7D; font-size: 17px; font-weight: 700; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #4F9EBC; }
.ob-primary .ic { width: 26px; height: 26px; } .ob-primary:hover { background: linear-gradient(#D8F4FF, #A2DDF2); } .ob-primary:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #4F9EBC; }
.ob-primary.big { width: 100%; min-height: 48px; font-size: 20px; }
.ob-second { min-height: 40px; padding: 4px 16px; border-radius: 14px; border: 2px solid #D5BAC2; background: linear-gradient(#fff, #FFF2F5); color: #205D7D; font-size: 16px; font-weight: 700; box-shadow: inset 0 1px 0 #fff, 0 3px 0 #C9A3B1; }
.ob-link { border: 0; background: none; padding: 4px; color: #2F6E95; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.ob-tabs { display: flex; gap: 7px; } .ob-tabs button { height: 36px; padding: 0 16px; border: 1px solid #D5BAC2; border-radius: 13px; background: #FFF2F5; color: #71828C; font-size: 15px; }
.ob-tabs button.on { border: 2px solid #299BCD; background: linear-gradient(#C7EFFF, #91D6EF); color: #205D7D; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #4F9EBC; }
.ob-tabs.wide button { flex: 1; }
.ob-emptynote { font-size: 14px; color: var(--ink2); padding: 10px; text-align: center; }
.ob-how { font-size: 13px; color: var(--ink2); }
.ob-bul { margin: 0; padding-left: 18px; font-size: 14.5px; color: #34495A; line-height: 1.5; }
.ob-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ob-facts.two { grid-template-columns: 1fr 1fr; }
.ob-facts > div { padding: 7px 10px; border-radius: 10px; background: #EEE6DD; } .ob-facts small { display: block; font-size: 12px; color: #6D7C86; } .ob-facts b { font-size: 17px; color: #22394A; }
.ob-photo { display: grid; place-items: center; height: 120px; flex: none; border-radius: 12px; border: 2px solid #fff; background: linear-gradient(180deg, #BFE6F7, #EAF7FD 68%, #F2E4C4 68%); box-shadow: 0 0 0 1px #C9DCE6; }
.ob-photo.food { background: linear-gradient(180deg, #FAD9C6, #FFF3EA 68%, #EBD4BA 68%); } .ob-photo.shop { background: linear-gradient(180deg, #F8CFE0, #FFF0F6 68%, #EAD3DA 68%); } .ob-photo.home { background: linear-gradient(180deg, #CDEBDB, #F0F9F3 68%, #DAD3C2 68%); }
.ob-photo .ic { width: 86px; height: 86px; }

/* a generic raised window (Find Work, My Home) */
.ob-win { width: min(1120px, calc(100vw - 40px)); height: min(590px, calc(100dvh - 160px)); box-sizing: border-box; display: flex; flex-direction: column; padding: 22px 22px 18px; margin-bottom: 70px;
  border: 3px solid #D69AAE; border-radius: 31px; background: linear-gradient(115deg, #FFEDF2, #FBDBE5); box-shadow: inset 0 0 0 4px #FFF8FC, 0 6px 0 #AF6C87, 0 9px 0 #F3BDD0, 0 15px 25px rgba(23, 62, 80, .27); }
.ob-win.ob-work { background: linear-gradient(115deg, #FFF6EA, #F6E7D2); border-color: #D7B98C; box-shadow: inset 0 0 0 4px #FFFBF4, 0 6px 0 #A88457, 0 9px 0 #EAD3AE, 0 15px 25px rgba(23, 62, 80, .27); }
.ob-win.ob-homedir { background: linear-gradient(115deg, #DDF2FC, #C3E3F3); border-color: #84B8D2; box-shadow: inset 0 0 0 4px #EFFAFF, 0 6px 0 #5F92B0, 0 9px 0 #C2E9FA, 0 15px 25px rgba(23, 62, 80, .27); }
.ob-win.ob-homedir .ob-head h2 span { color: #2F7AA6; } .ob-win.ob-homedir .ob-head h2 em { color: #9A5BB0; }

/* ---------- My phone: chunky light-blue shell, side keys, inset pastel screen ---------- */
.ob-phone { justify-self: end; align-self: end; margin: 0 30px 16px 0; width: 360px; height: min(640px, calc(100dvh - 96px)); box-sizing: border-box; padding: 15px; border-radius: 49px;
  background: linear-gradient(110deg, #A1DCF3, #67B3D8); border: 5px solid #5E9EBF; border-top-color: #A2D7EE; border-left-color: #9FD7ED; box-shadow: inset 0 0 0 3px #D2F1FF, 4px 5px 0 #386E91, 7px 7px 0 #B5DCEF, 0 11px 20px rgba(26, 64, 92, .33); }
.ob-btn { position: absolute; width: 7px; border-radius: 5px; } .ob-btn.a { left: -12px; top: 128px; height: 38px; background: #EFAFC7; border: 1px solid #B77F9E; } .ob-btn.b { left: -12px; top: 176px; height: 38px; background: #EEB0C7; border: 1px solid #B77F9E; } .ob-btn.c { right: -12px; top: 160px; height: 68px; background: #8ABDD8; border: 1px solid #527C9A; }
.ob-x-phone { right: -16px; top: -16px; }
.ob-screen { position: relative; height: 100%; box-sizing: border-box; overflow: hidden auto; scrollbar-width: none; padding: 8px 14px 14px; border-radius: 32px; background: linear-gradient(140deg, #FFF9FB, #F6E6F0); border: 2px solid #74A5C0; }
.ob-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 22px; font-size: 11.5px; font-weight: 700; color: #3E6680; }
.ob-cam { position: absolute; left: 50%; top: 4px; width: 64px; height: 6px; margin-left: -32px; border-radius: 4px; background: #5A7F96; }
.ob-cam::after { content: ""; position: absolute; right: -13px; top: -1px; width: 8px; height: 8px; border-radius: 50%; background: #3F6178; }
.ob-sb { display: inline-flex; gap: 5px; align-items: center; } .ob-sig { width: 14px; height: 10px; fill: #3E6680; } .ob-bat { width: 20px; height: 10px; color: #3E6680; fill: #7FCB9A; }
.ob-dtitle h2 { font-size: 28px; color: #31759A; margin-top: 2px; } .ob-dtitle p { font-size: 13px; color: #748895; margin: 0 0 10px; }
.ob-notice { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; margin-bottom: 10px; border-radius: 14px; background: #fff; border: 2px solid #E7CCD8; box-shadow: 0 2px 0 #E0C2CF; }
.ob-notice .ic { width: 26px; height: 26px; flex: none; } .ob-notice > div { flex: 1; min-width: 0; }
.ob-notice b { font-size: 13.5px; color: #2B3F4C; } .ob-notice p { font-size: 12px; color: #6E7F8A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-notice button { border: 1px solid #83BDD6; border-radius: 9px; background: #C2E9FA; color: #205D7D; font-size: 12.5px; padding: 5px 10px; }
.ob-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ob-app { position: relative; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; border: 2px solid #DDBCCB; background: linear-gradient(#FFFEFE, #F9DDE9); box-shadow: inset 0 2px 0 #fff, 0 3px 0 #BA9EAF; color: #2B3F4C; font-size: 13.5px; }
.ob-app:nth-child(3n+2) { background: linear-gradient(#F0FBFF, #C4E3F6); border-color: #9AC6DC; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #759DB9; }
.ob-app:nth-child(3n) { background: linear-gradient(#FFFDF4, #F4DFB3); border-color: #D5BE8B; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #B5A174; }
.ob-app .ic { width: 40px; height: 40px; } .ob-app b { font-weight: 700; }
.ob-app em { position: absolute; top: -5px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #E2576F; color: #fff; border: 2px solid #fff; font: 700 10.5px/14px 'Source Sans 3', sans-serif; text-align: center; padding: 0 3px; box-sizing: border-box; }
.ob-app:active { transform: translateY(2px); }
.ob-allapps { display: block; margin: 4px 0 0 auto; border: 0; background: none; color: #2F6E95; font-size: 12.5px; padding: 2px; }
.ob-today { margin-top: 8px; padding: 9px 11px; border-radius: 14px; background: #D7EDF7; border: 2px solid #A7C8DB; }
.ob-today small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #708E9D; }
.ob-today b { display: block; font-size: 16px; color: #22394A; } .ob-today span { display: block; font-size: 12px; color: #648297; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-today button { margin-top: 6px; width: 100%; min-height: 32px; border: 1px solid #83BDD6; border-radius: 9px; background: linear-gradient(#B9E6F9, #8ACDEA); color: #205D7D; font-size: 13.5px; font-weight: 700; }
.ob-home { margin-top: 10px; font-size: 12px; color: #6E8392; text-align: center; }
.ob-gesture { display: block; width: 100px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: #8FB3C7; }

/* ---------- City Map: light-blue frame, schematic street sheet, destination card ---------- */
.ob-mapwin { justify-self: center; align-self: end; margin: 0 0 88px; width: min(1180px, calc(100vw - 60px)); height: min(560px, calc(100dvh - 170px)); box-sizing: border-box; display: flex; flex-direction: column; padding: 18px 20px 18px;
  border: 3px solid #619CB9; border-radius: 31px; background: linear-gradient(120deg, #CAEDFB, #A9D7ED); box-shadow: inset 0 0 0 4px #EAFAFF, 0 6px 0 #497A9B, 0 9px 0 #C2E9FA, 0 14px 25px rgba(23, 62, 80, .27); }
.ob-mapwin .ob-head h2 span { color: #287BA9; } .ob-mapwin .ob-head h2 em { color: #2F758D; } .ob-mapwin .ob-x { border-color: #7FAEC4; }
.ob-mapbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
.ob-paper { position: relative; min-height: 0; overflow: hidden; border-radius: 16px; border: 2px solid #7EAEC5; box-shadow: inset 0 0 0 2px #fff; background: #A3D4E4; }
.ob-map-svg { display: block; width: 100%; height: 100%; }
.ob-road { stroke: #FFFDF5; stroke-width: 5; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 .7px #A99C7C); }
.ob-ml { font-family: 'Source Sans 3', Arial, sans-serif; font-weight: 600; fill: #5B5442; paint-order: stroke; stroke: #F4EFE2; stroke-width: 1.4px; }
.ob-ml.dist { font-family: 'Nunito', sans-serif; font-weight: 900; fill: #34495A; letter-spacing: .06em; text-anchor: middle; }
.ob-ml.sea { fill: #4F86A0; stroke: none; letter-spacing: .3em; } .ob-ml.park { fill: #5E8C59; stroke: none; letter-spacing: .12em; } .ob-ml.you { fill: #2887B4; font-weight: 800; }
.ob-route { fill: none; stroke: #D2537F; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; }
.ob-poi { cursor: pointer; } .ob-poi .dot { fill: #A1ABB1; stroke: #fff; }
.ob-poi.food .dot { fill: #C99578; } .ob-poi.shop .dot { fill: #BB91AE; } .ob-poi.home .dot { fill: #91B48F; } .ob-poi.work .dot { fill: #7D8BC8; } .ob-poi.pin .dot { fill: #E05C83; }
.ob-poi:hover .dot { stroke: #22394A; }
.ob-pin { fill: #E25786; stroke: #fff; stroke-width: .9; } .ob-me { fill: #2887B4; stroke: #fff; }
.ob-search { position: absolute; left: 14px; top: 12px; z-index: 4; display: flex; align-items: center; gap: 8px; width: min(260px, 50%); height: 40px; box-sizing: border-box; padding: 0 12px; border: 2px solid #98B7C6; border-radius: 15px; background: #FFF9F1; box-shadow: 0 2px 0 rgba(118, 150, 170, .2); }
.ob-search input { flex: 1; min-width: 0; width: auto; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; font-size: 15px; color: #22394A; outline: none; }
.ob-search svg { order: -1; width: 18px; height: 18px; color: #4A6B80; flex: none; }
.ob-hits { position: absolute; left: -2px; right: -2px; top: calc(100% + 4px); display: flex; flex-direction: column; background: #FFFDF8; border: 2px solid #98B7C6; border-radius: 12px; box-shadow: 0 8px 18px rgba(30, 50, 62, .2); overflow: hidden; }
.ob-hits button { display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 8px 12px; font-size: 14px; color: #22394A; text-align: left; }
.ob-hits button:hover { background: #EAF6FC; } .ob-hits small { color: #6D818C; font-weight: 500; }
.ob-guide { display: none; }
.ob-compass { position: absolute; right: 14px; top: 12px; display: flex; flex-direction: column; align-items: center; font: 800 11px 'Nunito', sans-serif; color: #3F6178; }
.ob-compass svg { width: 16px; height: 20px; fill: #3F6178; }
.ob-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.ob-zoom button { width: 38px; height: 38px; border: 1px solid #5F9CBB; border-radius: 9px; background: #EFFAFF; color: #22394A; font-size: 22px; line-height: 1; padding: 0; box-shadow: 0 2px 0 #7CA9BD; }
.ob-legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(244, 250, 249, .92); font-size: 11.5px; font-weight: 600; color: #34495A; }
.ob-legend span { display: inline-flex; align-items: center; gap: 5px; } .ob-legend i { width: 7px; height: 7px; border-radius: 50%; background: #A1ABB1; }
.ob-legend .you i { background: #2887B4; } .ob-legend .pin i { background: #E05C83; } .ob-legend .home i { background: #91B48F; } .ob-legend .food i { background: #C99578; } .ob-legend .shop i { background: #BB91AE; } .ob-legend .work i { background: #7D8BC8; }
.ob-place { display: flex; flex-direction: column; gap: 7px; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 13px; border-radius: 18px; background: #F3FBFF; border: 2px solid #8DB6CA; box-shadow: inset 0 0 0 2px #fff; }
.ob-place h3 { font-size: 24px; color: #22394A; line-height: 1.1; } .ob-place > p { font-size: 13px; color: #6D8795; }
.ob-tags { display: flex; flex-wrap: wrap; gap: 5px; } .ob-tags span { padding: 2px 9px; border-radius: 10px; background: #D7EDDD; color: #3D795E; font-size: 12px; font-weight: 600; }
.ob-seg { display: flex; gap: 6px; margin-top: 2px; } .ob-seg button { flex: 1; height: 34px; border: 1px solid #D5BAC2; border-radius: 13px; background: #FFF2F5; color: #71828C; font-size: 14px; }
.ob-seg button.on { border: 2px solid #299BCD; background: linear-gradient(#C7EFFF, #91D6EF); color: #205D7D; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #4F9EBC; }
.ob-ft { font-size: 14px; color: #22394A; }
.ob-place .ob-primary, .ob-place .ob-second { width: 100%; }
.ob-place.empty p { font-size: 15px; color: #4F6876; }

/* ---------- My Tasks: blue clipboard frame, gold clip, cream paper ---------- */
.ob-board { justify-self: end; align-self: end; margin: 0 30px 92px 0; width: min(820px, calc(100vw - 340px)); height: min(530px, calc(100dvh - 190px)); box-sizing: border-box; padding: 16px; border-radius: 28px;
  background: linear-gradient(120deg, #6FA4C6, #4F84A8); border: 3px solid #3F6F92; box-shadow: inset 0 0 0 3px #8DC0DD, 0 6px 0 #2E5876, 0 14px 25px rgba(23, 62, 80, .3); }
.ob-clip { position: absolute; left: 50%; top: -21px; z-index: 3; width: 166px; height: 39px; margin-left: -83px; border: 3px solid #BA8C49; border-radius: 11px; background: linear-gradient(#FFE79D, #D6AA59); box-shadow: inset 0 2px 0 #FFF5CF, 0 3px 0 rgba(27, 64, 92, .4); }
.ob-clip::before { content: ""; position: absolute; left: 56px; top: -14px; width: 48px; height: 20px; border-radius: 10px 10px 0 0; border: 4px solid #BC8D49; border-bottom: 0; background: #426982; }
.ob-paper2 { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding: 18px 20px 14px; border-radius: 16px; background: #FFF9F6; border: 2px solid #B8C7CF; box-shadow: 0 3px 0 #1B3D59; }
.ob-paper2 .ob-head h2 span { color: #2D6E99; } .ob-paper2 .ob-head h2 em { color: #2887B4; } .ob-paper2 > .ob-x { right: 30px; top: 30px; }
.ob-tbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; }
.ob-tlist { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding-right: 18px; border-right: 1.5px dashed #D9CED2; }
.ob-tscroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 3px 4px 6px 2px; scrollbar-width: thin; }
.ob-task { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 11px 13px; border-radius: 16px; border: 2px solid #E3CAD3; background: #F7ECEF; color: #2B3F4C; font-weight: 500; box-shadow: 0 3px 0 #DDBFCB; }
.ob-task.on { background: #E9F6FC; border-color: #299BCD; box-shadow: 0 3px 0 #4F9EBC; } .ob-task.done { background: #F2F7EA; border-color: #C6D9B3; box-shadow: 0 3px 0 #B6CBA1; }
.ob-th { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .ob-th b { font: 800 17px 'Nunito', sans-serif; }
.ob-th em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #3D795E; background: #D7EDDD; border-radius: 8px; padding: 2px 7px; flex: none; }
.ob-task small { font-size: 13px; color: #6F7D88; line-height: 1.3; }
.ob-prog { display: block; height: 6px; border-radius: 4px; background: #E6DCE0; } .ob-prog s { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7CC6F0, #3E9FE6); }
.ob-tf { display: flex; justify-content: space-between; align-items: center; } .ob-tf small { font-size: 12px; } .ob-tf .ob-coin { font-size: 17px; }
.ob-tcount { font-size: 12px; color: #6F7D88; text-align: center; }
.ob-tdetail { min-height: 0; overflow-y: auto; padding: 0 4px 4px 22px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.ob-tdetail.empty { justify-content: center; text-align: center; color: var(--ink2); }
.ob-kickrow { display: flex; justify-content: space-between; align-items: center; } .ob-kickrow em { font-style: normal; font-size: 11px; font-weight: 700; color: #3D795E; background: #D7EDDD; border-radius: 8px; padding: 2px 8px; text-transform: uppercase; }
.ob-tdetail h3 { font-size: 30px; color: #2D6E99; line-height: 1.05; } .ob-tdetail > p { font-size: 14.5px; color: #5B6F7C; }
.ob-placecard { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 13px; background: #E7F1F5; }
.ob-pic { display: grid; place-items: center; width: 50px; height: 44px; flex: none; } .ob-pic .ic { width: 43px; height: 43px; }
.ob-placecard > div { flex: 1; min-width: 0; } .ob-placecard b { display: block; font-size: 16px; color: #22394A; } .ob-placecard small { font-size: 13px; color: #6D8795; }
.ob-placecard button { border: 1px solid #83BDD6; border-radius: 9px; background: #C2E9FA; color: #205D7D; font-size: 13px; padding: 6px 10px; white-space: nowrap; }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ob-steps li { display: flex; gap: 12px; align-items: flex-start; } .ob-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 13px; color: #6D4C2E; background: linear-gradient(#FFE2A5, #E3BA71); border: 2px solid #C99B52; flex: none; }
.ob-steps li.done i { color: #fff; background: #5FAE84; border-color: #4C946D; } .ob-steps b { display: block; font-size: 15px; color: #22394A; font-weight: 700; } .ob-steps small { font-size: 12.5px; color: #6F7D88; }
.ob-reward { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #BFCBD0; }
.ob-reward .ob-coin { font-size: 22px; margin-top: 4px; } .ob-reward .ob-coin .ic { width: 28px; height: 28px; }
.ob-claimed { padding: 7px 14px; border-radius: 12px; border: 2px solid #E3BF72; background: linear-gradient(#FFF0C4, #F6D682); color: #6D4C2E; font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 #C99B52; }

/* ---------- My Backpack: brown bag, tan flap label, cream slots, item tag beside it ---------- */
.ob-bagwrap { justify-self: end; align-self: end; margin: 0 50px 90px 0; display: flex; align-items: center; }
.ob-bag { position: relative; width: 470px; height: min(570px, calc(100dvh - 190px)); box-sizing: border-box; padding: 112px 26px 50px; margin-top: 40px; border-radius: 74px 74px 40px 40px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 6px), linear-gradient(180deg, #B98656, #94663D); border: 4px solid #6E4729; box-shadow: inset 0 0 0 5px rgba(255, 228, 180, .16), 0 6px 0 #5A3A22, 0 16px 28px rgba(50, 32, 18, .38); }
.ob-handle { position: absolute; left: 50%; top: -46px; width: 120px; height: 60px; margin-left: -60px; border: 13px solid #7A5032; border-bottom: 0; border-radius: 60px 60px 0 0; box-sizing: border-box; }
.ob-strap { position: absolute; top: 24px; width: 26px; height: 100px; border-radius: 7px; background: #6E4729; box-shadow: inset 0 0 0 2px #5A3A22; }
.ob-strap::after { content: ""; position: absolute; left: 0; top: 58px; width: 26px; height: 20px; border-radius: 4px; border: 3px solid #E3BA71; box-sizing: border-box; background: rgba(0, 0, 0, .1); }
.ob-strap.l { left: 60px; } .ob-strap.r { right: 60px; }
.ob-pouch { position: absolute; top: 140px; width: 34px; height: 250px; border-radius: 18px; background: linear-gradient(90deg, #8A5E38, #A97A4C); border: 3px solid #6E4729; }
.ob-pouch.l { left: -34px; } .ob-pouch.r { right: -34px; }
.ob-plate { position: absolute; left: 50%; top: 26px; width: 210px; margin-left: -105px; padding: 6px 4px; text-align: center; border-radius: 16px; background: #EED4A8; border: 2px solid #9A7043; box-shadow: 0 3px 0 #70462D; }
.ob-plate b { display: block; font: 900 26px 'Nunito', sans-serif; color: #634630; } .ob-plate small { font-size: 12.5px; color: #896D48; }
.ob-x-bag { right: -10px; top: 6px; background: linear-gradient(#FFF8EA, #FFF3DC); border-color: #B58B58; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #9A7043; }
.ob-zip { position: absolute; left: 34px; right: 34px; top: 100px; height: 0; border-top: 3px dashed #E8C98F; }
.ob-pocket { position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: #8B5F39; border: 2px dashed #D9B07A; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); }
.ob-filters { display: flex; gap: 5px; } .ob-filters button { flex: 1; height: 34px; display: inline-flex; gap: 5px; align-items: center; justify-content: center; border: 1px solid #BD965F; border-radius: 13px; background: #B5844D; color: #FFECCC; font-size: 13.5px; }
.ob-filters button.on { background: linear-gradient(#FFE2A5, #E3BA71); border-color: #E8C582; color: #6D4C2E; box-shadow: 0 2px 0 #5F422B; } .ob-filters em { font-style: normal; font-size: 11px; opacity: .8; }
.ob-slots { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 92px; gap: 9px; padding: 3px; scrollbar-width: thin; scrollbar-color: #D9B07A transparent; }
.ob-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; border-radius: 16px; border: 2px solid #E4C99C; background: linear-gradient(#FFF8EA, #F3E2C3); color: #5A3E26; box-shadow: 0 3px 0 #6E4729; }
.ob-slot .ic { width: 46px; height: 46px; } .ob-slot b { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-slot em { position: absolute; top: 4px; right: 7px; font-style: normal; font-size: 11px; font-weight: 700; color: #8A6A48; }
.ob-slot.on { background: linear-gradient(#EFFAFF, #C9EAF8); border-color: #299BCD; box-shadow: 0 3px 0 #4F9EBC; }
.ob-slot.empty { border: 2px dashed rgba(240, 214, 170, .45); background: rgba(0, 0, 0, .07); box-shadow: none; }
.ob-pocket footer { position: absolute; left: 12px; right: 12px; bottom: -40px; display: flex; align-items: center; gap: 12px; color: #F6E6CB; font-size: 13px; }
.ob-cap { flex: 1; height: 7px; border-radius: 4px; background: #613E2A; overflow: hidden; } .ob-cap s { display: block; height: 100%; background: #E2BA76; }
.ob-pocket .ob-emptynote { color: #F6E6CB; } .ob-pocket .ob-emptynote .ob-link { color: #FFE2A5; }
.ob-tag { position: relative; width: 240px; box-sizing: border-box; margin-left: 26px; padding: 26px 16px 16px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; border-radius: 22px; background: #FFFDFB; border: 2px solid #E6D3C2; box-shadow: inset 0 0 0 3px #fff, 0 4px 0 #CDB59D, 0 14px 26px rgba(50, 40, 25, .25); }
.ob-tag::before { content: ""; position: absolute; left: -28px; top: 34px; width: 32px; height: 2px; background: #9A7043; transform: rotate(-10deg); }
.ob-eyelet { position: absolute; left: 50%; top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 3px solid #B88A55; background: #fff; box-sizing: border-box; }
.ob-tagpic { display: grid; place-items: center; height: 100px; } .ob-tagpic .ic { width: 96px; height: 96px; }
.ob-tag .ob-kick { color: #A07A55; } .ob-tag h3 { font-size: 26px; color: #2D6E99; line-height: 1.05; } .ob-tag > p { font-size: 13px; color: #6F7D88; }
.ob-eff { display: flex; flex-direction: column; align-items: center; gap: 4px; } .ob-eff span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 10px; background: #D7EDDD; color: #3D795E; font-size: 13.5px; font-weight: 700; } .ob-eff .ic { width: 18px; height: 18px; }
.ob-kv { display: flex; justify-content: space-between; font-size: 13.5px; color: #4D5A63; } .ob-kv b { font-weight: 700; }
.ob-tag .ob-primary { width: 100%; }
.ob-give { display: flex; flex-direction: column; align-items: center; gap: 4px; } .ob-give select { width: 100%; padding: 5px 8px; border-radius: 10px; border: 1.5px solid #D9CAD0; background: #fff; font-size: 13px; color: #2B3F4C; }

/* ---------- Find Work ---------- */
.ob-wbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; }
.ob-wlist { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ob-job { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 18px; border: 2px solid #E2D2BF; background: linear-gradient(#FFFDF9, #F8EFE2); box-shadow: 0 3px 0 #D3BFA5; color: #2B3F4C; font-weight: 500; }
.ob-job.on { border-color: #299BCD; background: linear-gradient(#F4FBFF, #E0F2FB); box-shadow: 0 3px 0 #4F9EBC; }
.ob-job > .ic { grid-row: 1 / 2; width: 50px; height: 50px; } .ob-job > span b { display: block; font: 800 19px 'Nunito', sans-serif; } .ob-job > span small { font-size: 13px; color: #6D7C86; }
.ob-job .ob-pill { justify-self: start; grid-column: 1 / 2; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; } .ob-job .ob-coin { justify-self: end; font-size: 16px; }
.ob-wdetail { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 20px; background: #FFFDF9; border: 2px solid #E2D2BF; box-shadow: inset 0 0 0 2px #fff; scrollbar-width: thin; }
.ob-wdetail.empty { justify-content: center; text-align: center; color: var(--ink2); }
.ob-wdetail h3 { font-size: 30px; color: #2D6E99; line-height: 1.05; } .ob-wdetail .ob-photo { height: 110px; }
.ob-wfoot { display: flex; gap: 8px; } .ob-wfoot .ob-second { flex: 1; }
/* ---------- My Home ---------- */
.ob-hbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; gap: 18px; }
.ob-hlist { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 3px; scrollbar-width: thin; }
.ob-tower { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 18px; border: 2px solid #B9D3E2; background: linear-gradient(#FFFFFF, #EEF6FA); box-shadow: 0 3px 0 #9FBCCD; color: #2B3F4C; font-weight: 500; }
.ob-tower.on { border-color: #299BCD; background: linear-gradient(#E9F8FF, #C9EAF8); box-shadow: 0 3px 0 #4F9EBC; } .ob-tower .ic { width: 44px; height: 44px; flex: none; }
.ob-tower b { display: block; font: 800 19px 'Nunito', sans-serif; } .ob-tower small { font-size: 13px; color: #6D7C86; }
.ob-tower.lockd { background: linear-gradient(#FFF8E1, #FBE7AE); border-color: #E3C27A; box-shadow: 0 3px 0 #C9A75C; }
.ob-hstage { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 10px; border-radius: 20px; background: #F6FBFE; border: 2px solid #B9D3E2; }
.ob-stageimg { flex: 1; min-height: 0; width: 100%; object-fit: contain; border-radius: 14px; background: #fff; }
.ob-layouts { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .ob-layouts figure { margin: 0; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.ob-layouts img { width: 100%; min-height: 0; flex: 1; object-fit: contain; border-radius: 10px; background: #fff; } .ob-layouts figcaption { font-size: 12.5px; font-weight: 700; text-align: center; color: #34495A; }
.ob-hcard { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; padding: 14px 16px; border-radius: 20px; background: #FFFFFF; border: 2px solid #B9D3E2; scrollbar-width: thin; }
.ob-hcard h3 { font-size: 27px; color: #2D6E99; } .ob-hcard > p { font-size: 14px; color: #6D7C86; } .ob-hcard .ob-facts > div { background: #EDF4F8; } .ob-hcard .ob-facts b { font-size: 16px; }
.ob-hcard .ob-fine { margin-top: auto; }

/* ---------- landscape phones: the windows fill the short screen, their insides scroll ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  #modal:has(> .ob) { padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .ob-head { gap: 10px; padding-bottom: 6px; } .ob-head h2 { font-size: 22px; } .ob-head p { font-size: 12px; }
  .ob-x { width: 34px; height: 34px; right: 8px; top: 8px; } .ob-x svg { width: 16px; height: 16px; }
  .ob-primary { min-height: 34px; font-size: 14px; padding: 4px 12px; } .ob-primary.big { min-height: 38px; font-size: 16px; } .ob-second { min-height: 32px; font-size: 13px; }
  .ob-tabs button { height: 30px; padding: 0 10px; font-size: 13px; }
  .ob-phone { margin: 0 8px 0 0; align-self: center; width: 300px; height: calc(100dvh - 14px); padding: 9px; border-radius: 34px; border-width: 4px; }
  .ob-screen { border-radius: 24px; padding: 4px 10px 10px; } .ob-dtitle h2 { font-size: 21px; } .ob-dtitle p { margin-bottom: 6px; }
  .ob-app { height: 62px; font-size: 12.5px; border-radius: 14px; } .ob-app .ic { width: 30px; height: 30px; } .ob-apps { gap: 7px; }
  .ob-x-phone { right: -10px; top: -10px; }
  .ob-mapwin, .ob-board, .ob-win { margin: 0; align-self: stretch; justify-self: stretch; width: auto; height: auto; padding: 10px 12px; border-radius: 20px; }
  .ob-mapwin { height: calc(100dvh - 12px); }   /* a fixed height: with height:auto the map grew past the bottom of an 844×390 screen */
  .ob-mapbody { grid-template-columns: minmax(0, 1fr) 210px; gap: 8px; }
  .ob-search { height: 32px; top: 8px; left: 8px; } .ob-legend { display: none; } .ob-zoom button { width: 32px; height: 32px; }
  .ob-place { padding: 8px; gap: 5px; } .ob-photo { height: 64px; } .ob-photo .ic { width: 54px; height: 54px; } .ob-place h3 { font-size: 18px; }
  .ob-board { margin-top: 18px; } .ob-paper2 { padding: 10px 12px 8px; } .ob-paper2 > .ob-x { right: 22px; top: 22px; }
  .ob-tbody { grid-template-columns: 220px minmax(0, 1fr); } .ob-tlist { padding-right: 10px; } .ob-tdetail { padding-left: 12px; gap: 6px; } .ob-tdetail h3 { font-size: 21px; }
  .ob-bagwrap { margin: 0; align-self: stretch; justify-self: center; align-items: stretch; }
  .ob-bag { height: calc(100dvh - 40px); width: min(420px, 56vw); margin-top: 26px; padding: 64px 14px 34px; border-radius: 44px 44px 24px 24px; }
  .ob-handle { top: -30px; width: 80px; height: 40px; margin-left: -40px; border-width: 9px; } .ob-strap, .ob-pouch { display: none; }
  .ob-plate { top: 8px; width: 170px; margin-left: -85px; padding: 2px 8px; } .ob-plate b { font-size: 17px; } .ob-plate small { display: none; } .ob-zip { top: 56px; } .ob-x-bag { right: -6px; top: 4px; }
  .ob-pocket { padding: 8px; gap: 6px; } .ob-slots { grid-auto-rows: 66px; gap: 6px; } .ob-slot .ic { width: 30px; height: 30px; } .ob-pocket footer { bottom: -28px; }
  .ob-tag { width: 200px; margin: 30px 0 0 14px; padding: 16px 12px 10px; gap: 5px; overflow-y: auto; } .ob-tagpic { height: 56px; } .ob-tagpic .ic { width: 52px; height: 52px; } .ob-tag h3 { font-size: 19px; }
  .ob-wbody { grid-template-columns: 240px minmax(0, 1fr); gap: 10px; } .ob-job { padding: 7px 9px; grid-template-columns: 36px minmax(0, 1fr); } .ob-job > .ic { width: 34px; height: 34px; } .ob-job > span b { font-size: 15px; }
  .ob-wdetail { padding: 10px 12px; gap: 6px; } .ob-wdetail h3 { font-size: 21px; } .ob-wdetail .ob-photo { height: 64px; } .ob-facts b { font-size: 14px; }
  .ob-hbody { grid-template-columns: 190px minmax(0, 1fr) 220px; gap: 8px; } .ob-tower { padding: 6px 8px; } .ob-tower .ic { width: 30px; height: 30px; } .ob-tower b { font-size: 15px; } .ob-hcard { padding: 8px 10px; } .ob-hcard h3 { font-size: 19px; }
}
