/* Four-part day card. Layered paper follows the island palette. */
.gal-time-card { --period-color: #4f6d77; --period-accent: #ecd39e; position: relative; isolation: isolate; display: flex; align-items: stretch; width: 211px; height: 75px; color: #fff8e5; transform: rotate(-3deg); text-shadow: none; filter: drop-shadow(3px 5px 0 #233c4540) drop-shadow(0 5px 10px #1b33382b); }
.gal-time-card[data-period="morning"] { --period-color: #648f83; --period-accent: #f8df99; }
.gal-time-card[data-period="noon"] { --period-color: #71875f; --period-accent: #f1d186; }
.gal-time-card[data-period="night"] { --period-color: #515575; --period-accent: #d3d0eb; }
.gal-date-tile { position: relative; z-index: 2; flex: 0 0 65px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff5dc; color: #4f7165; border: 2px solid #fffdf0; border-radius: 5px 3px 6px 4px; transform: rotate(-3deg); box-shadow: 3px 2px #25494335; }
.gal-date-tile > span { font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.gal-date-tile > strong { font-family: Georgia, serif; font-size: 35px; font-weight: 700; line-height: .95; }
.gal-date-tile > strong > small { margin-left: 2px; font-family: sans-serif; font-size: 8px; font-weight: 400; }
.gal-date-tile > i { margin-top: 2px; color: #bdac80; font-size: 6px; font-style: normal; letter-spacing: 2px; }
.gal-period-tile { position: relative; flex: 1; margin-left: -4px; padding: 7px 16px 9px 19px; background: var(--period-color); border: 2px solid #fcf4da; border-radius: 3px 12px 8px 3px; transform: rotate(2deg); overflow: hidden; }
.gal-period-tile::after { content: '◒'; position: absolute; right: 11px; top: 23px; font-size: 37px; line-height: 1; color: var(--period-accent); opacity: .24; transform: rotate(-13deg); }
.gal-time-card[data-period="morning"] .gal-period-tile::after, .gal-time-card[data-period="noon"] .gal-period-tile::after { content: '☀'; }
.gal-time-card[data-period="night"] .gal-period-tile::after { content: '☾'; }
.gal-period-tile > span { display: block; font-size: 7px; letter-spacing: 1px; opacity: .7; white-space: nowrap; }
.gal-period-tile > strong { display: block; margin-top: 3px; font-size: 23px; font-weight: 800; letter-spacing: 5px; line-height: 1.1; }
.gal-period-tile > small { display: block; margin-top: 3px; font-family: Georgia, serif; font-size: 7px; letter-spacing: 2px; color: var(--period-accent); }
.gal-period-track { position: absolute; bottom: 6px; right: 11px; display: flex; gap: 4px; }
.gal-period-track i { width: 4px; height: 4px; background: #ffffff35; border-radius: 50%; }
.gal-period-track i.active { background: var(--period-accent); box-shadow: 0 0 0 2px #ffffff14; }
.gal-weather-ribbon { position: absolute; z-index: 3; bottom: -11px; right: -4px; min-width: 139px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #fff5d5; border-radius: 4px 9px 5px 4px; padding: 4px 9px; background: #f3dfb2; color: #6c765c; transform: rotate(2deg); box-shadow: 2px 3px #314e4433; }
.gal-weather-ribbon > span { font-size: 8px; letter-spacing: 1px; }
.gal-weather-ribbon > i { font-style: normal; font-size: 12px; color: #a9905d; }
/* Phone and inventory sit outside the landscape stage, including on portrait phones. */
.gal-external-panel[hidden], .gal-external-panel [hidden] { display: none !important; }
.gal-external-panel { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; color: #4d6758; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.gal-external-panel button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gal-external-panel button:focus-visible { outline: 3px solid #cdac73; outline-offset: 3px; }
.gal-external-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #173d4263; backdrop-filter: blur(8px); }
.gal-phone-device { position: relative; isolation: isolate; z-index: 1; display: flex; flex-direction: column; overflow: hidden; width: min(380px, calc(100vw - 38px)); height: min(730px, calc(100dvh - 48px)); border: 8px solid #284d48; border-radius: 40px; background: #fff8e9; box-shadow: 0 24px 100px #12383480, inset 0 0 0 2px #ffffff63; animation: gal-device-in .25s ease both; }
.gal-phone-speaker { position: absolute; z-index: 4; width: 76px; height: 18px; top: 7px; left: 50%; transform: translateX(-50%); border-radius: 0 0 13px 13px; background: #284d48; }
.gal-phone-status { display: flex; align-items: center; gap: 8px; flex: none; padding: 11px 16px 7px; height: 34px; background: #f4f4e5; font-size: 9px; font-weight: 600; color: #6f8875; }
#galPhonePeriod { margin-left: auto; }
.gal-phone-signal { display: flex; align-items: center; gap: 6px; font-size: 8px; }
.gal-phone-signal i { width: 17px; height: 8px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.gal-phone-signal i::before { content: ''; position: absolute; inset: 1px; background: currentColor; border-radius: 1px; }
.gal-phone-signal i::after { content: ''; position: absolute; right: -3px; top: 2px; width: 2px; height: 3px; border-radius: 0 1px 1px 0; background: currentColor; }
.gal-phone-appbar { flex: none; display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid #aac3ad50; background: linear-gradient(110deg,#dcecdf,#faf1d9); }
.gal-phone-app-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 12px; background: #7c9c83; color: #fff8e6; font-size: 18px; transform: rotate(-5deg); }
.gal-phone-appbar > div { display: grid; gap: 3px; }
.gal-phone-appbar b { font-size: 14px; font-weight: 600; letter-spacing: 2px; }
.gal-phone-appbar small { font-size: 8px; color: #93a187; letter-spacing: 1px; }
.gal-phone-appbar > button { margin-left: auto; width: 29px; height: 29px; border: 1px solid #a7bda35e; border-radius: 50%; background: #fffdf08c; color: #7b957d; font-size: 21px; line-height: 1; }
.gal-phone-screen { flex: 1; min-height: 0; overflow: hidden; background: radial-gradient(circle at 100% 0,#f2dca332 0 38px,transparent 39px), linear-gradient(155deg,#fffbee,#eef4e7); }
.gal-phone-home { flex: none; width: 94px; height: 4px; margin: 8px auto 9px; border-radius: 3px; background: #3c6053; opacity: .65; }
.gal-sms-inbox-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 25px 20px 15px; }
.gal-sms-inbox-head span { font-size: 7px; letter-spacing: 3px; color: #b3b693; }
.gal-sms-inbox-head h3 { margin: 6px 0 0; font-size: 19px; font-weight: 500; letter-spacing: 2px; }
.gal-sms-inbox-head > b { margin-bottom: 2px; padding: 5px 8px; border-radius: 9px; color: #b98975; background: #f5e7d5; font-size: 8px; font-weight: 400; }
.gal-sms-contacts { padding: 0 13px; }
.gal-sms-contact { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 10px; margin-bottom: 10px; border: 1px solid #d5ddc5; border-radius: 15px 17px 13px 16px; background: #fffdf3c9; color: #63816a; text-align: left; box-shadow: 0 3px 10px #66795508; }
.gal-sms-contact:hover { border-color: #a6b797; background: #f4f7e9; }
.gal-sms-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 13px; background-image: url('./assets/galgame-characters.png'); background-size: 800% auto; background-position: 27% 9%; background-color: #e9d6bc; box-shadow: inset 0 0 0 1px #90a48820; }
.gal-sms-avatar[data-person="shiori"] { background-position: 79% 9%; background-color: #dce5dd; }
.gal-sms-contact > span:nth-child(2) { min-width: 0; flex: 1; }
.gal-sms-contact b { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.gal-sms-contact b small { font-size: 8px; color: #a2ad92; font-weight: 400; }
.gal-sms-contact em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 7px; font-size: 11px; font-style: normal; color: #788b70; }
.gal-sms-contact > i { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%; background: #cd907a; color: #fff9eb; font-size: 8px; font-style: normal; }
.gal-sms-contact > strong { font-size: 21px; font-weight: 400; color: #b9c1a7; }
.gal-sms-inbox-note { margin: 60px 20px 20px; text-align: center; color: #a8b194; }
.gal-sms-inbox-note > span { display: block; font-size: 35px; color: #c7bd91; margin-bottom: 14px; }
.gal-sms-inbox-note > b { font-family: "Songti SC",serif; font-size: 14px; font-weight: 400; letter-spacing: 2px; }
.gal-sms-inbox-note > p { font-size: 10px; line-height: 2.1; color: #b3b89c; }
.gal-sms-thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.gal-sms-thread-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px dashed #b7c7a96b; background: #fffaf2a8; }
.gal-sms-thread-head > button { border: 0; background: transparent; color: #89a184; font-size: 26px; padding: 0 4px 0 0; line-height: 1; }
.gal-sms-thread-head .gal-sms-avatar { width: 29px; height: 29px; flex-basis: 29px; border-radius: 10px; }
.gal-sms-thread-head > div { display: grid; gap: 3px; }
.gal-sms-thread-head > div > b { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.gal-sms-thread-head > div > small { font-size: 7px; color: #a3af93; }
.gal-sms-thread-head > span:last-child { margin-left: auto; border: 1px solid #dce1cd; border-radius: 7px; padding: 5px 7px; color: #9eaa8c; font-size: 8px; white-space: nowrap; }
.gal-sms-thread-head > span:last-child > b { font-weight: 500; color: #7d977b; }
.gal-sms-chat { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 15px; scrollbar-width: thin; }
.gal-sms-day { text-align: center; font-size: 8px; letter-spacing: 1px; color: #aab698; margin: 15px 0 17px; }
.gal-sms-row { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 13px; }
.gal-sms-row > .gal-sms-avatar { width: 26px; height: 26px; flex-basis: 26px; border-radius: 9px; }
.gal-sms-row.mine { justify-content: flex-end; }
.gal-sms-bubble { min-width: 0; max-width: 85%; padding: 9px 11px; border: 1px solid #dce3cb; border-radius: 3px 14px 14px 14px; background: #fffdf4; box-shadow: 0 2px 6px #596a4505; }
.gal-sms-bubble > small { display: block; color: #a3ad91; font-size: 7px; margin-bottom: 4px; }
.gal-sms-bubble > p { margin: 0; color: #586e55; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.gal-sms-row.mine .gal-sms-bubble { background: #f2e4ba; border-color: #e5d9b4; border-radius: 14px 3px 14px 14px; }
.gal-sms-row.mine .gal-sms-bubble > p { color: #7b795a; }
.gal-sms-photo { display: block; width: 100%; margin-top: 9px; border: 1px solid #d5ddc4; border-radius: 9px; overflow: hidden; padding: 0; background: #e0e8d4; text-align: left; }
.gal-sms-photo > img { display: block; width: 100%; height: 115px; object-fit: cover; }
.gal-sms-photo > span { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; font-size: 8px; color: #91a07f; background: #f7f7e9; }
.gal-sms-photo b { font-size: 12px; font-weight: 400; }
.gal-sms-offer { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px dashed #c9c99c; border-radius: 9px; background: #f9f5e4; }
.gal-sms-offer > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #b09b62; background: #eee5ba; font-size: 17px; }
.gal-sms-offer > div { flex: 1; display: grid; gap: 4px; }
.gal-sms-offer small { color: #b5b08a; font-size: 7px; }
.gal-sms-offer b { color: #8b936f; font-size: 10px; font-weight: 500; }
.gal-sms-offer > footer { display: flex; gap: 6px; width: 100%; margin-top: 3px; }
.gal-sms-offer button { flex: 1; padding: 6px 9px; border: 1px solid #c3cfad; border-radius: 6px; color: #7b9472; background: #f3f5e7; font-size: 8px; }
.gal-sms-offer button:first-child { color: #fff8e3; background: #8eaa83; border-color: #8eaa83; }
.gal-sms-offer > em { margin-left: auto; font-size: 8px; font-style: normal; color: #9aaa83; }
.gal-sms-compose { flex: none; display: flex; gap: 7px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid #d8dfc5; background: #fffaf0; }
.gal-sms-compose textarea { min-width: 0; flex: 1; height: 38px; min-height: 38px; max-height: 70px; padding: 9px 10px; resize: none; border: 1px solid #d5ddc5; border-radius: 11px; background: #f5f5e8; color: #586e55; font: inherit; font-size: 13px; line-height: 1.6; }
.gal-sms-compose textarea::placeholder { color: #b0b79b; }
.gal-sms-compose button { height: 38px; padding: 0 13px; border: 0; border-radius: 11px; background: #7e9e80; color: #fffae9; font-size: 10px; }
.gal-sms-compose button:disabled, .gal-sms-compose textarea:disabled { opacity: .5; cursor: default; }
.gal-sms-bubble.typing { display: flex; align-items: center; gap: 4px; }
.gal-sms-bubble.typing i { width: 3px; height: 3px; border-radius: 50%; background: #b1c19a; animation: gal-sms-dot 1s ease infinite; }
.gal-sms-bubble.typing i:nth-child(2) { animation-delay: .15s; }.gal-sms-bubble.typing i:nth-child(3) { animation-delay: .3s; }
.gal-sms-bubble.typing > small { font-size: 8px; margin: 0 0 0 5px; }
.gal-phone-image-viewer { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px 15px 25px; background: #214b46f5; color: #dde8cf; }
.gal-phone-image-viewer > button { position: absolute; right: 14px; top: 15px; width: 31px; height: 31px; border: 1px solid #d4e3cb75; border-radius: 50%; color: #f7f5dc; background: #ffffff0b; font-size: 23px; }
.gal-phone-image-viewer > img { display: block; width: 100%; max-height: 85%; object-fit: contain; border-radius: 12px; }
.gal-phone-image-viewer > p { font-size: 11px; letter-spacing: 2px; line-height: 1.8; text-align: center; }
/* Inventory: fixed slots and warm paper surfaces, with a separate item sheet. */
.gal-inventory { position: relative; z-index: 1; width: min(1080px, calc(100vw - 48px)); height: min(720px, calc(100dvh - 60px)); display: flex; flex-direction: column; overflow: hidden; border: 2px solid #e0d2ab; border-radius: 20px; background: #f5efdc; box-shadow: 0 24px 100px #263c3b66, inset 0 0 0 4px #fffaf0; color: #6d775c; animation: gal-device-in .22s ease both; }
.gal-bag-header { flex: none; position: relative; display: flex; align-items: center; gap: 25px; padding: 21px 25px 17px; background: linear-gradient(100deg,#faf5e6,#f0e8cf); border-bottom: 1px solid #d5caab; }
.gal-bag-heading { display: flex; align-items: center; gap: 13px; }
.gal-bag-heading > svg { width: 53px; height: 53px; }
.gal-bag-heading > div > span { display: block; font-size: 7px; color: #b3ab85; letter-spacing: 3px; }
.gal-bag-heading h2 { margin: 5px 0 6px; font-family: "Songti SC",serif; font-size: 25px; font-weight: 500; color: #6d775d; letter-spacing: 4px; }
.gal-bag-heading small { font-size: 9px; color: #aaa78b; letter-spacing: 1px; }
.gal-bag-wallet { display: flex; align-items: center; gap: 9px; margin-left: auto; padding: 8px 13px; border: 1px solid #d8caa7; border-radius: 18px; background: #fff8e4; }
.gal-bag-wallet > span { font-size: 20px; color: #bfa25c; }.gal-bag-wallet > b { font-size: 14px; font-weight: 500; color: #929064; letter-spacing: 1px; }.gal-bag-wallet > small { font-size: 9px; color: #b9ad84; }
.gal-bag-close { flex: none; width: 33px; height: 33px; border: 1px solid #cdbf9b; border-radius: 50%; background: #fff8e9; color: #9a9b7c; font-size: 23px !important; line-height: 1; }
.gal-bag-tabs { display: flex; gap: 3px; flex: none; padding: 9px 22px 0; border-bottom: 1px solid #d5caaa; background: #ede5cc; }
.gal-bag-tabs > button { position: relative; display: flex; align-items: center; gap: 8px; min-width: 115px; justify-content: center; padding: 9px 13px 10px; border: 1px solid transparent; border-bottom: 0; border-radius: 11px 11px 0 0; color: #a6a184; background: transparent; font-size: 11px; }
.gal-bag-tabs > button > svg { width: 24px; height: 24px; opacity: .7; }
.gal-bag-tabs > button > small { color: #bab38d; font-size: 8px; }
.gal-bag-tabs > button.active { color: #778366; background: #faf6e8; border-color: #d8caab; box-shadow: 0 2px #faf6e8; }
.gal-bag-tabs > button.active > svg { opacity: 1; }
.gal-bag-workspace { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 290px; background: #faf6e8; }
.gal-bag-items { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 19px 23px 15px; }
.gal-bag-tools { flex: none; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gal-bag-tools > label { display: flex; align-items: center; gap: 7px; width: 195px; padding: 6px 10px; border: 1px solid #dbd0ae; border-radius: 7px; background: #fffdf2; }
.gal-bag-tools > label > span { color: #b7b18d; font-size: 19px; line-height: 1; }
.gal-bag-tools input { min-width: 0; width: 100%; border: 0; background: transparent; outline: none; color: #8a9274; font-size: 10px; }.gal-bag-tools input::placeholder { color: #bbb597; }
.gal-bag-tools > button { margin-left: auto; border: 0; background: transparent; color: #a8a181; font-size: 9px; letter-spacing: 1px; }.gal-bag-tools > span { font-size: 10px; color: #a1a180; white-space: nowrap; }
.gal-bag-slots { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: max-content; align-content: start; gap: 10px; padding: 3px 4px 6px; scrollbar-width: thin; }
.gal-bag-slot { --slot-tint: #dadcc8; --slot-edge: #bbc3a8; aspect-ratio: 1; position: relative; min-width: 0; display: grid; place-items: center; padding: 0 3px 7px; border: 1px solid var(--slot-edge); border-radius: 9px; background: linear-gradient(150deg,#fff9e6,var(--slot-tint)); box-shadow: inset 0 0 0 3px #ffffff35, 0 2px 0 #9c906b14; }
.gal-bag-slot[data-rarity="2"] { --slot-tint: #d5dfc1; --slot-edge: #bcc9a3; }.gal-bag-slot[data-rarity="3"] { --slot-tint: #c6d8d2; --slot-edge: #aac2b8; }.gal-bag-slot[data-rarity="4"] { --slot-tint: #d7cee1; --slot-edge: #bdb2c7; }
.gal-bag-slot > svg { display: block; width: 76%; height: 76%; max-height: 80px; filter: drop-shadow(0 3px 2px #82704d1c); transition: transform .16s; }
.gal-bag-slot:hover > svg { transform: translateY(-3px) scale(1.05); }
.gal-bag-slot.selected { border: 2px solid #bda270; box-shadow: 0 0 0 2px #e5d9ae, inset 0 0 0 2px #fffbe9; }
.gal-bag-slot.selected::before { content: ''; position: absolute; width: 8px; height: 8px; left: -4px; top: -4px; background: #bda270; transform: rotate(45deg); border: 1px solid #fff6d9; }
.gal-slot-count { position: absolute; right: 6px; bottom: 12px; color: #6b785e; font-family: Georgia,serif; font-size: 14px; font-weight: 700; text-shadow: 0 1px #fffbe5; }
.gal-slot-rarity { position: absolute; inset: auto 0 0; height: 9px; line-height: 9px; text-align: center; font-size: 6px; letter-spacing: 1px; color: #fff5cd; background: var(--slot-edge); border-radius: 0 0 7px 7px; }
.gal-slot-favorite { position: absolute; left: 5px; top: 4px; color: #c5a163; font-size: 10px; font-style: normal; }.gal-slot-equipped { position: absolute; left: 4px; top: 4px; padding: 2px 4px; background: #fff8dfd9; border-radius: 4px; color: #78906e; font-size: 6px; font-style: normal; }
.gal-bag-slot.empty { border: 1px dashed #ddd3b6; background: #eee7d58c; box-shadow: inset 0 1px 3px #a28f6320; }.gal-bag-slot.empty i { color: #d3c8a7; font-size: 18px; font-style: normal; font-weight: 200; }
.gal-bag-grid-footer { flex: none; display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; font-size: 8px; color: #b7b08d; letter-spacing: 1px; }.gal-bag-grid-footer > span { display: flex; align-items: center; gap: 6px; }.gal-bag-grid-footer i { width: 6px; height: 6px; transform: rotate(45deg); background: #c4ab75; }.gal-bag-grid-footer > small { font-size: 8px; }
.gal-bag-detail { min-height: 0; overflow: auto; background: #f2eddd; border-left: 1px solid #ded3b4; scrollbar-width: thin; }
.gal-bag-item-art { position: relative; display: flex; justify-content: center; align-items: center; height: 179px; background: radial-gradient(ellipse at 50% 42%,#fffbe9a6 0 26%,transparent 27%),linear-gradient(145deg,#e7dcc5,#d3d9c4); border-bottom: 1px solid #d5c9a7; overflow: hidden; }
.gal-bag-item-art[data-rarity="3"] { background: radial-gradient(ellipse at 50% 42%,#f8ffeb88 0 26%,transparent 27%),linear-gradient(145deg,#dde6d4,#bbd1c5); }.gal-bag-item-art[data-rarity="4"] { background: radial-gradient(ellipse at 50% 42%,#fff5e780 0 26%,transparent 27%),linear-gradient(145deg,#e6dfda,#c9c2d6); }
.gal-bag-item-art > span { position: absolute; top: 13px; left: 16px; font-size: 8px; letter-spacing: 2px; color: #9b9c81; }.gal-bag-item-art > svg { width: 125px; height: 125px; filter: drop-shadow(0 9px 5px #82795726); }.gal-bag-item-art > i { position: absolute; bottom: 10px; font-size: 12px; letter-spacing: 3px; color: #f8e6b0; text-shadow: 0 1px 2px #a99767; font-style: normal; }
.gal-bag-item-copy { padding: 20px; }.gal-bag-item-type { color: #b5ac86; font-size: 8px; letter-spacing: 2px; }.gal-bag-item-copy h3 { margin: 7px 0 12px; color: #727c61; font-family: "Songti SC",serif; font-size: 23px; font-weight: 500; letter-spacing: 2px; }
.gal-bag-item-owned { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #d6ccb17d; color: #aaa384; font-size: 9px; }.gal-bag-item-owned b { margin-left: 5px; color: #8b9675; font-size: 11px; font-weight: 500; }.gal-bag-item-owned > button { border: 0; background: transparent; color: #b1a276; font-size: 9px; padding: 0; }
.gal-bag-item-copy > p { margin: 15px 0; font-size: 12px; line-height: 2; color: #7b8267; }.gal-bag-effect { padding: 8px 10px; border: 1px solid #d0d5b4; border-radius: 6px; background: #e6ecd980; color: #8b9c75; font-size: 10px; }.gal-bag-source { display: block; margin: 13px 0 20px; color: #b7af8d; font-size: 8px; line-height: 1.8; }
.gal-bag-use { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border: 1px solid #b9a06e; border-radius: 7px; background: #c4ad7d; color: #fff9e7; font-size: 11px !important; letter-spacing: 2px; }.gal-bag-use:disabled { opacity: .55; cursor: default; background: #c7c6a6; border-color: #bcbca1; }.gal-bag-use > span { font-size: 18px; }
.gal-bag-reading { margin: 12px 0 18px; padding: 13px; border: 1px dashed #c3b28a; border-radius: 6px; color: #959572; background: #fff8e4; white-space: pre-wrap; font-family: "Songti SC",serif; font-size: 11px; line-height: 2; }
.gal-bag-footer { flex: none; display: flex; align-items: center; gap: 13px; padding: 12px 25px; border-top: 1px solid #d6c9a9; background: #ede4cc; color: #aca27e; font-size: 9px; }.gal-bag-footer > span > b { font-weight: 500; margin-left: 9px; color: #969768; }.gal-bag-capacity-bar { width: 95px; height: 4px; border-radius: 3px; background: #d3c9a8; overflow: hidden; }.gal-bag-capacity-bar > i { display: block; height: 100%; background: #98aa7a; border-radius: inherit; }.gal-bag-footer > small { margin-left: auto; color: #b4a780; font-size: 8px; letter-spacing: 1px; }
.gal-bag-empty { grid-column: 1/-1; align-self: center; text-align: center; padding: 50px 10px; color: #b8b18e; }.gal-bag-empty > span { display: block; font-size: 40px; margin-bottom: 12px; }.gal-bag-empty > b { font-size: 13px; font-weight: 400; letter-spacing: 2px; }.gal-bag-empty > p { font-size: 10px; margin-top: 12px; }.gal-bag-detail-empty { padding: 80px 25px; text-align: center; color: #b2ae8e; font-size: 12px; line-height: 2; }
.gal-panel-toast { position: fixed; z-index: 145; left: 50%; bottom: 40px; transform: translate(-50%, 8px); max-width: calc(100vw - 30px); border: 1px solid #fff8dc; border-radius: 20px; background: #fffbeeef; box-shadow: 0 4px 25px #405e4e38; padding: 11px 23px; font-size: 12px; color: #8b976e; letter-spacing: 1px; opacity: 0; pointer-events: none; transition: opacity .2s,transform .2s; }
.gal-panel-toast.visible { opacity: 1; transform: translate(-50%,0); }
@keyframes gal-device-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gal-sms-dot { 50% { opacity: .25; transform: translateY(-2px); } }
@media (max-width: 1000px) {
  .gal-time-card { width: 180px; height: 65px; }.gal-date-tile { flex-basis: 56px; }.gal-date-tile > span { font-size: 8px; }.gal-date-tile > strong { font-size: 30px; }.gal-date-tile > i { font-size: 5px; }.gal-period-tile { padding: 6px 12px 8px 16px; }.gal-period-tile > strong { font-size: 20px; margin-top: 3px; letter-spacing: 4px; }.gal-period-tile > span { font-size: 6px; letter-spacing: 0; }.gal-period-tile > small { font-size: 6px; letter-spacing: 1px; }.gal-period-tile::after { font-size: 29px; top: 22px; right: 8px; }.gal-weather-ribbon { min-width: 118px; padding: 3px 7px; bottom: -10px; }.gal-weather-ribbon > span { font-size: 7px; }.gal-weather-ribbon > i { font-size: 10px; }.gal-period-track { gap: 3px; right: 8px; bottom: 5px; }.gal-period-track i { width: 3px; height: 3px; }
  .gal-inventory { width: calc(100vw - 34px); }.gal-bag-workspace { grid-template-columns: minmax(0,1fr) 255px; }.gal-bag-items { padding: 16px; }.gal-bag-slots { gap: 8px; }.gal-bag-tabs > button { min-width: 100px; }.gal-bag-tabs { padding-inline: 16px; }.gal-bag-item-copy { padding: 17px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .gal-time-card { width: 155px; height: 54px; }.gal-date-tile { flex-basis: 47px; gap: 1px; }.gal-date-tile > span { font-size: 7px; letter-spacing: 1px; }.gal-date-tile > strong { font-size: 25px; }.gal-date-tile > strong > small { font-size: 6px; }.gal-date-tile > i { font-size: 4px; letter-spacing: 1px; }.gal-period-tile { padding: 5px 10px 6px 13px; }.gal-period-tile > strong { font-size: 18px; margin-top: 3px; line-height: 1; }.gal-period-tile > span { font-size: 5px; }.gal-period-tile > small { font-size: 5px; margin-top: 3px; letter-spacing: 1px; }.gal-period-tile::after { font-size: 24px; top: 19px; }.gal-weather-ribbon { min-width: 99px; padding: 2px 6px; bottom: -8px; right: -3px; }.gal-weather-ribbon > span { font-size: 6px; letter-spacing: .5px; }.gal-weather-ribbon > i { font-size: 8px; }.gal-period-track { bottom: 4px; right: 7px; gap: 3px; }.gal-period-track i { width: 2px; height: 2px; }
  .gal-external-panel { padding: 12px; }.gal-phone-device { width: 326px; height: calc(100dvh - 24px); border-width: 6px; border-radius: 29px; }.gal-phone-speaker { width: 65px; height: 13px; top: 5px; }.gal-phone-status { height: 26px; padding: 8px 14px 5px; font-size: 8px; }.gal-phone-appbar { padding: 7px 12px; gap: 7px; }.gal-phone-app-icon { width: 24px; height: 24px; font-size: 14px; border-radius: 9px; }.gal-phone-appbar b { font-size: 12px; }.gal-phone-appbar small { display: none; }.gal-phone-appbar > button { width: 24px; height: 24px; font-size: 18px; }.gal-phone-home { width: 79px; height: 3px; margin: 5px auto 6px; }.gal-sms-inbox-head { padding: 15px 16px 12px; }.gal-sms-inbox-head h3 { font-size: 16px; }.gal-sms-inbox-note { margin-top: 20px; }.gal-sms-inbox-note > span { display: none; }.gal-sms-inbox-note > b { font-size: 11px; }.gal-sms-inbox-note > p { font-size: 9px; }.gal-sms-contact { padding: 10px; margin-bottom: 8px; }.gal-sms-thread-head { padding: 6px 11px; }.gal-sms-thread-head .gal-sms-avatar { width: 24px; height: 24px; flex-basis: 24px; }.gal-sms-thread-head > div > b { font-size: 10px; }.gal-sms-thread-head > div > small { display: none; }.gal-sms-thread-head > span:last-child { font-size: 7px; padding: 4px 6px; }.gal-sms-bubble > p { font-size: 12px; }.gal-sms-photo > img { height: 80px; }.gal-sms-compose { padding: 7px 10px; }.gal-sms-compose textarea { height: 32px; min-height: 32px; padding: 6px 9px; font-size: 12px; }.gal-sms-compose button { height: 32px; font-size: 9px; }.gal-sms-day { margin: 10px 0 12px; }
  .gal-inventory { width: calc(100vw - 30px); height: calc(100dvh - 22px); border-radius: 14px; }.gal-bag-header { padding: 10px 16px 9px; gap: 16px; }.gal-bag-heading { gap: 8px; }.gal-bag-heading > svg { width: 35px; height: 35px; }.gal-bag-heading > div > span { display: none; }.gal-bag-heading h2 { font-size: 19px; margin: 0 0 4px; letter-spacing: 3px; }.gal-bag-heading small { font-size: 7px; }.gal-bag-wallet { padding: 5px 10px; gap: 6px; }.gal-bag-wallet > span { font-size: 16px; }.gal-bag-wallet > b { font-size: 11px; }.gal-bag-wallet > small { font-size: 8px; }.gal-bag-close { width: 27px; height: 27px; font-size: 20px !important; }.gal-bag-tabs { padding: 5px 12px 0; gap: 2px; }.gal-bag-tabs > button { min-width: 82px; gap: 5px; padding: 5px 10px 6px; font-size: 9px; border-radius: 7px 7px 0 0; }.gal-bag-tabs > button > svg { width: 18px; height: 18px; }.gal-bag-tabs > button > small { font-size: 7px; }.gal-bag-workspace { grid-template-columns: minmax(0,1fr) 220px; }.gal-bag-items { padding: 10px 13px; }.gal-bag-tools { margin-bottom: 9px; gap: 8px; }.gal-bag-tools > label { width: 150px; padding: 4px 8px; }.gal-bag-tools input { font-size: 8px; }.gal-bag-tools > label > span { font-size: 15px; }.gal-bag-tools > button { font-size: 8px; }.gal-bag-tools > span { font-size: 8px; }.gal-bag-slots { gap: 7px; }.gal-bag-slot { border-radius: 6px; }.gal-slot-count { font-size: 11px; right: 4px; bottom: 10px; }.gal-slot-rarity { height: 7px; line-height: 7px; font-size: 5px; border-radius: 0 0 4px 4px; }.gal-bag-grid-footer { display: none; }.gal-bag-item-art { height: 100px; }.gal-bag-item-art > svg { width: 80px; height: 80px; }.gal-bag-item-art > span { top: 8px; left: 12px; font-size: 6px; }.gal-bag-item-art > i { font-size: 8px; bottom: 6px; }.gal-bag-item-copy { padding: 12px; }.gal-bag-item-type { font-size: 6px; letter-spacing: 1px; }.gal-bag-item-copy h3 { font-size: 18px; margin: 5px 0 8px; }.gal-bag-item-owned { font-size: 8px; padding-bottom: 9px; }.gal-bag-item-owned b { font-size: 9px; }.gal-bag-item-owned > button { font-size: 8px; }.gal-bag-item-copy > p { font-size: 10px; line-height: 1.8; margin: 10px 0; }.gal-bag-effect { font-size: 8px; padding: 5px 8px; }.gal-bag-source { font-size: 7px; margin: 9px 0 12px; }.gal-bag-use { font-size: 9px !important; padding: 7px 10px; }.gal-bag-use > span { font-size: 15px; }.gal-bag-footer { padding: 8px 17px; font-size: 8px; gap: 9px; }.gal-bag-footer > small { font-size: 7px; }.gal-bag-reading { font-size: 9px; padding: 9px; }.gal-panel-toast { bottom: 21px; font-size: 10px; padding: 9px 18px; }
}
@media (orientation: portrait) and (max-width: 720px) {
  .gal-time-card { width: 112px; height: 43px; }.gal-date-tile { flex-basis: 35px; border-width: 1px; gap: 1px; }.gal-date-tile > span { font-size: 5px; letter-spacing: 1px; }.gal-date-tile > strong { font-size: 20px; }.gal-date-tile > strong > small { font-size: 5px; margin-left: 0; }.gal-date-tile > i { display: none; }.gal-period-tile { padding: 4px 7px 5px 11px; border-width: 1px; margin-left: -3px; border-radius: 2px 8px 5px 2px; }.gal-period-tile > span { font-size: 4px; letter-spacing: 0; }.gal-period-tile > strong { font-size: 14px; letter-spacing: 2px; margin-top: 3px; }.gal-period-tile > small { font-size: 4px; margin-top: 2px; letter-spacing: .5px; }.gal-period-tile::after { font-size: 18px; top: 17px; right: 6px; }.gal-weather-ribbon { min-width: 73px; bottom: -7px; right: -2px; padding: 1px 4px; gap: 5px; border-radius: 3px 5px 3px 3px; }.gal-weather-ribbon > span { font-size: 5px; letter-spacing: 0; }.gal-weather-ribbon > i { font-size: 7px; }.gal-period-track { gap: 2px; right: 5px; bottom: 4px; }.gal-period-track i { width: 1.5px; height: 1.5px; }
  .gal-external-panel { padding: 12px; }.gal-phone-device { width: min(380px,calc(100vw - 24px)); height: min(740px,calc(100dvh - 24px)); border-width: 6px; border-radius: 33px; }.gal-sms-contact { padding: 12px 9px; }.gal-sms-bubble { max-width: 86%; }.gal-sms-bubble > p { font-size: 12px; }.gal-sms-compose textarea { font-size: 13px; }.gal-sms-compose button { font-size: 11px; }
  .gal-inventory { width: calc(100vw - 20px); height: calc(100dvh - 24px); border-radius: 15px; }.gal-bag-header { padding: 14px 13px 12px; gap: 10px; }.gal-bag-heading { gap: 8px; }.gal-bag-heading > svg { width: 39px; height: 39px; }.gal-bag-heading > div > span { font-size: 5px; letter-spacing: 1px; }.gal-bag-heading h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: 3px; }.gal-bag-heading small { display: none; }.gal-bag-wallet { padding: 5px 8px; gap: 5px; border-radius: 14px; }.gal-bag-wallet > span { font-size: 14px; }.gal-bag-wallet > b { font-size: 10px; }.gal-bag-wallet > small { display: none; }.gal-bag-close { width: 27px; height: 27px; font-size: 19px !important; }.gal-bag-tabs { padding: 7px 8px 0; gap: 0; overflow-x: auto; scrollbar-width: none; }.gal-bag-tabs > button { flex: 1; min-width: 60px; gap: 3px; flex-wrap: wrap; padding: 6px 7px; border-radius: 7px 7px 0 0; font-size: 8px; }.gal-bag-tabs > button > svg { width: 20px; height: 20px; }.gal-bag-tabs > button > small { display: none; }
  .gal-bag-workspace { display: flex; flex-direction: column; }.gal-bag-items { flex: 1; min-height: 0; padding: 12px 12px 10px; }.gal-bag-tools { gap: 8px; margin-bottom: 10px; }.gal-bag-tools > label { width: 47%; padding: 5px 7px; }.gal-bag-tools > label > span { font-size: 15px; }.gal-bag-tools input { font-size: 9px; }.gal-bag-tools > button { font-size: 8px; letter-spacing: 0; }.gal-bag-tools > span { font-size: 8px; }.gal-bag-slots { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.gal-bag-slot { border-radius: 7px; }.gal-slot-count { font-size: 12px; bottom: 10px; }.gal-slot-rarity { height: 7px; line-height: 7px; font-size: 5px; }.gal-bag-grid-footer { display: none; }
  .gal-bag-detail { flex: none; display: grid; grid-template-columns: 31% minmax(0,1fr); max-height: 33dvh; border-left: 0; border-top: 1px solid #d7caaa; }.gal-bag-item-art { height: 100%; min-height: 185px; border: 0; border-right: 1px solid #d7caaa; }.gal-bag-item-art > svg { width: 90%; height: auto; }.gal-bag-item-art > span { font-size: 6px; top: 12px; left: 10px; letter-spacing: 1px; }.gal-bag-item-art > i { font-size: 8px; letter-spacing: 2px; bottom: 12px; }.gal-bag-item-copy { padding: 13px; overflow: auto; }.gal-bag-item-type { font-size: 6px; letter-spacing: 1px; }.gal-bag-item-copy h3 { font-size: 20px; margin: 5px 0 8px; }.gal-bag-item-owned { font-size: 8px; padding-bottom: 9px; }.gal-bag-item-owned b { font-size: 10px; }.gal-bag-item-owned > button { font-size: 8px; }.gal-bag-item-copy > p { font-size: 11px; line-height: 1.8; margin: 10px 0; }.gal-bag-effect { font-size: 8px; padding: 6px 9px; }.gal-bag-source { font-size: 7px; margin: 9px 0 12px; }.gal-bag-use { font-size: 10px !important; padding: 8px 11px; }.gal-bag-use > span { font-size: 16px; }.gal-bag-reading { font-size: 10px; padding: 10px; }.gal-bag-footer { padding: 10px 13px; gap: 8px; font-size: 8px; }.gal-bag-footer > small { display: none; }.gal-bag-capacity-bar { flex: 1; max-width: 140px; height: 3px; }.gal-bag-empty { padding: 25px 8px; }.gal-bag-empty > p { font-size: 9px; }.gal-bag-detail-empty { padding: 30px 15px; font-size: 10px; grid-column: 1/-1; }.gal-panel-toast { bottom: 25px; padding: 10px 16px; font-size: 10px; letter-spacing: 0; }
}
@media (pointer: coarse) { .gal-sms-compose textarea { font-size: 16px; }.gal-bag-tools input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .gal-external-panel *, .gal-panel-toast { animation: none !important; transition: none !important; } }
