/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
	--ink: #1d2a27;
	--muted: #68736f;
	--line: #b8c1bc;
	--paper: #f7f6f0;
	--accent: #087db5;
	--accent-dark: #075b83;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #e5e8e2; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: #e5e8e2; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }

.phone-screen { width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto; padding: 28px 24px calc(44px + env(safe-area-inset-bottom)); background: var(--paper); }
.start-screen { display: flex; flex-direction: column; justify-content: space-between; gap: 44px; }
.hero-block { min-height: 45vh; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.hero-block h1 { margin: 12px 0; font-size: clamp(2.8rem, 13vw, 5rem); line-height: .95; letter-spacing: .08em; }
.hero-block p { line-height: 1.8; }
.eyebrow, .screen-kicker, .story-label { color: var(--accent-dark); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.screen-header { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.screen-header h1 { margin: 2px 0 0; font-size: 1.3rem; }
.screen-kicker { margin: 0; font-size: .65rem; }
.back-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 0; }
.back-icon::before { content: "←"; font-size: 1.1rem; }
.progress { margin-left: auto; color: var(--muted); font-size: .85rem; }
.action-stack, .form-stack { display: grid; gap: 13px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border: 1px solid var(--accent); text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--accent); }
.button-outline { color: var(--accent-dark); background: transparent; }
.button-subtle { border-color: var(--line); background: #edf0eb; }
.form-stack fieldset { display: grid; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--line); }
legend { padding: 0 6px; font-weight: 700; font-size: .9rem; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #7d8c85; border-radius: 0; background: white; }
.form-divider { position: relative; margin: 4px 0; border-top: 1px solid var(--line); text-align: center; }
.form-divider span { position: relative; top: -.7em; padding: 0 10px; background: var(--paper); color: var(--muted); font-size: .75rem; }
.text-link { color: var(--accent-dark); font-size: .85rem; text-underline-offset: 3px; }
.back-link-wrap { margin-top: 24px; text-align: center; }
.content-section, .terms-copy, .story-panel { line-height: 1.9; }
.step-card { display: flex; gap: 14px; align-items: center; margin: 16px 0; padding: 14px; border: 1px solid var(--line); }
.step-card strong { display: grid; place-items: center; width: 28px; height: 28px; color: white; background: var(--accent); border-radius: 50%; }
.step-card p { margin: 0; }
.story-panel { margin-bottom: 28px; padding: 24px 18px; border-block: 1px solid var(--line); }
.story-panel h1 { font-size: 1.4rem; line-height: 1.5; }
.terms-copy h2 { margin-top: 26px; font-size: 1rem; }
.checkbox-group { gap: 4px !important; }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.5; }
.check-line input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent); }
.profile-preview { padding: 10px 0 22px; text-align: center; border-bottom: 1px solid var(--line); }
.profile-preview h1 { margin: 12px 0 4px; font-size: 1.2rem; }
.profile-preview p { margin: 0; color: var(--muted); }
.avatar-placeholder { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 2rem; }
.summary-list { display: grid; grid-template-columns: 1fr 1.5fr; margin: 0 0 24px; font-size: .85rem; }
.summary-list dt, .summary-list dd { margin: 0; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.notice-box { margin-bottom: 28px; padding: 16px; border: 1px solid var(--line); line-height: 1.7; }

.quest-app { width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); background: var(--paper); }
.user-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 20px; }
.user-summary, .header-actions, .header-actions a { display: flex; align-items: center; }
.user-summary { gap: 10px; }.user-summary strong, .user-summary span { display: block; }.user-summary span { color: var(--muted); font-size: .7rem; }
.user-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; }
.header-actions { gap: 7px; }.header-icon { width: 35px; height: 35px; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: white; text-decoration: none; }
.advice-panel { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; padding: 13px; border: 1px solid var(--line); background: white; }.advice-panel p { margin: 4px 0 0; font-size: .78rem; }.advice-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; }
.quest-section { margin-bottom: 26px; }.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }.section-heading h2 { margin: 0; font-size: 1rem; }.section-heading span { color: var(--muted); font-size: .75rem; }
.scenario-carousel { display: grid; grid-template-columns: 28px 1fr 28px; gap: 7px; align-items: center; }.scenario-track { min-width: 0; }.scenario-card { padding: 14px; border: 1px solid var(--line); background: white; }.scenario-card[hidden] { display: none; }.quest-tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .68rem; }.scenario-card h3, .quest-card h3 { margin: 8px 0 4px; font-size: .95rem; }.scenario-card p { margin: 0; font-size: .8rem; line-height: 1.6; }.quest-image-placeholder { display: grid; min-height: 150px; place-items: center; margin-top: 8px; border: 1px dashed var(--line); color: var(--muted); }.carousel-arrow { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; }.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }.carousel-dots button.active { background: var(--accent); }
.quest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.quest-card { min-width: 0; padding: 9px; border: 1px solid var(--line); background: white; }.quest-card h3 { font-size: .72rem; line-height: 1.4; }.small-image-placeholder { min-height: 70px; margin: 8px 0; border: 1px dashed var(--line); }.compact-section .text-link { font-size: .75rem; }
.bottom-navigation { position: fixed; right: auto; bottom: 0; left: 50%; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 520px); padding-bottom: env(safe-area-inset-bottom); transform: translateX(-50%); border-top: 1px solid var(--line); background: white; }.bottom-nav-item { display: grid; gap: 2px; justify-items: center; min-width: 0; padding: 9px 2px 7px; color: var(--muted); text-decoration: none; }.bottom-nav-item span { font-size: 1.25rem; line-height: 1; }.bottom-nav-item small { overflow: hidden; max-width: 100%; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }.bottom-nav-item.active { color: var(--accent); }
.notification-modal { position: fixed; inset: 0; z-index: 10; display: grid; align-items: end; background: rgb(0 0 0 / 35%); }.notification-modal[hidden] { display: none; }.modal-panel { width: min(100%, 520px); max-height: 88vh; overflow-y: auto; margin: 0 auto; padding: 18px 16px 26px; border: 1px solid var(--line); background: var(--paper); }.modal-header { display: flex; align-items: center; justify-content: space-between; }.modal-header h2 { margin: 0; font-size: 1.1rem; }.close-button { border: 0; background: transparent; font-size: 1.7rem; cursor: pointer; }.modal-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; border-bottom: 1px solid var(--line); }.modal-tab { padding: 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; }.modal-tab.active { border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }.filter-row { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }.filter-button { flex: 0 0 auto; padding: 6px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: .72rem; cursor: pointer; }.notification-list { display: grid; gap: 8px; }.notification-card, .message-card { position: relative; display: block; width: 100%; padding: 12px 12px 12px 20px; border: 1px solid var(--line); background: white; text-align: left; }.notification-card h3, .message-card strong { display: block; margin: 7px 0 4px; font-size: .83rem; }.notification-card p, .message-card p { margin: 0; font-size: .72rem; line-height: 1.5; }.notification-card time, .message-card small { display: block; margin-top: 6px; color: var(--muted); font-size: .66rem; }.unread-dot { position: absolute; top: 13px; left: 8px; width: 7px; height: 7px; border-radius: 50%; background: #d82020; }.is-hidden { display: none; }.full-button { width: 100%; margin-top: 16px; }.modal-home-link { display: block; margin-top: 18px; text-align: center; }.thread-back { display: inline-block; margin-bottom: 14px; }.thread-subtitle { color: var(--muted); font-size: .8rem; }.chat-log { display: grid; gap: 12px; min-height: 250px; padding: 12px 0; }.chat-bubble { max-width: 78%; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; font-size: .75rem; line-height: 1.6; }.chat-bubble.sent { justify-self: end; background: #e0f3f6; }.clear-stamp { justify-self: center; padding: 14px; border: 2px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 700; text-align: center; transform: rotate(-8deg); }.message-form { display: grid; gap: 9px; }.message-form textarea { min-height: 90px; padding: 10px; border: 1px solid var(--line); resize: vertical; }
.header-icon-with-badge { position: relative; }.header-badge { position: absolute; top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 1px 3px; border-radius: 8px; background: #d82020; color: white; font-size: .6rem; line-height: 13px; }.present-list { display: grid; gap: 10px; }.present-card { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 12px 10px; border: 1px solid var(--line); background: white; }.present-card .unread-dot { top: 10px; left: 7px; }.present-thumbnail { display: grid; min-height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-size: .7rem; }.present-content h3 { margin: 6px 0 3px; font-size: .75rem; line-height: 1.4; }.present-content p { margin: 0; color: var(--muted); font-size: .68rem; }.present-card time { grid-column: 2 / 4; justify-self: end; color: var(--muted); font-size: .64rem; }.receive-button { padding: 7px 10px; border: 1px solid var(--ink); border-radius: 14px; background: white; font-size: .7rem; cursor: pointer; }.present-note { margin: 14px 0 0; color: var(--muted); font-size: .68rem; }
.menu-drawer { position: fixed; inset: 0; z-index: 12; display: grid; align-items: end; width: 100%; height: 100dvh; background: rgb(0 0 0 / 35%); }.menu-drawer[hidden] { display: none; }.drawer-panel { width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; margin: 0 auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); border: 1px solid var(--line); background: var(--paper); }.drawer-intro { display: grid; justify-items: center; gap: 8px; padding: 10px 0 16px; }.drawer-intro > span { align-self: start; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; }.drawer-image-placeholder { display: grid; width: 190px; height: 150px; place-items: center; border: 1px solid var(--accent); background: white; text-align: center; }.drawer-intro p { margin: 0; font-size: .8rem; }.drawer-links { display: grid; }.drawer-link { display: block; width: 100%; padding: 13px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }.drawer-button { color: var(--ink); }.settings-list { display: grid; }.settings-row { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 10px 2px; border-bottom: 1px solid var(--line); }.settings-link { color: var(--ink); text-decoration: none; }.toggle-button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 12px; background: #e5e8e2; font-size: .7rem; }.character-list, .area-list { display: grid; gap: 14px; }.character-card { padding: 14px; border: 1px solid var(--line); text-align: center; }.character-card h2 { margin: 10px 0 4px; font-size: 1rem; }.character-card p { margin: 0; font-size: .8rem; line-height: 1.6; }.character-image-placeholder, .map-placeholder { display: grid; min-height: 150px; place-items: center; border: 1px dashed var(--line); color: var(--muted); }.map-placeholder { min-height: 220px; margin: 16px 0; }.area-card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); }.area-card > span { display: grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--accent); color: white; }.area-card h3, .area-card p { margin: 0; }.area-card h3 { font-size: .9rem; }.area-card p { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.page-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }.page-title h1 { margin: 0; font-size: 1.25rem; }.page-title .back-icon { flex: 0 0 auto; }.sort-control { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; }.sort-control select { padding: 6px; border: 1px solid var(--line); background: white; font-size: .75rem; }.quest-list { display: grid; gap: 12px; }.scenario-list-card { position: relative; display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); background: white; text-decoration: none; }.list-image-placeholder { display: grid; min-height: 100px; place-items: center; border: 1px dashed var(--line); color: var(--muted); }.list-card-content h2 { margin: 8px 0 4px; font-size: .95rem; }.list-card-content p { margin: 0; font-size: .72rem; line-height: 1.5; }.status-stamp, .status-display { display: inline-block; margin-top: 10px; padding: 6px 9px; border: 2px solid var(--accent); color: var(--accent-dark); font-size: .7rem; font-weight: 700; }.status-completed { border-color: #159447; color: #159447; }.status-locked { border-color: var(--muted); color: var(--muted); }.detail-panel { padding: 14px; border: 1px solid var(--line); background: white; }.detail-panel h2 { margin: 0 0 10px; font-size: 1.2rem; }.detail-image-placeholder { display: grid; min-height: 190px; place-items: center; margin-bottom: 10px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }.detail-panel h3 { margin: 18px 0 7px; font-size: .85rem; }.quest-facts { display: grid; grid-template-columns: 50px 1fr; margin: 0; font-size: .75rem; }.quest-facts dt, .quest-facts dd { margin: 0; padding: 6px; border-bottom: 1px solid var(--line); }.quest-facts dd { line-height: 1.5; }.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.detail-columns h3 { margin-top: 12px; }.detail-columns ul { margin: 0; padding-left: 18px; font-size: .75rem; line-height: 1.7; }.map-placeholder { display: grid; min-height: 100px; place-items: center; margin: 0; color: var(--ink); text-decoration: none; }.detail-actions { display: grid; gap: 10px; margin-top: 16px; text-align: center; }.status-guide { min-height: 24px; margin-top: 12px; color: var(--muted); font-size: .78rem; text-align: center; }.confirm-dialog { position: fixed; inset: 0; z-index: 15; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / 35%); }.confirm-dialog[hidden] { display: none; }.confirm-panel { width: min(100%, 380px); padding: 22px 18px; border: 1px solid var(--line); background: var(--paper); text-align: center; }.confirm-panel h2 { margin-top: 0; font-size: 1.15rem; }.confirm-panel p { font-size: .8rem; line-height: 1.6; }
.quest-search { display: grid; gap: 10px; margin-bottom: 24px; }.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.search-row input { min-width: 0; padding: 10px; border: 1px solid var(--line); }.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.filter-grid select { width: 100%; min-width: 0; padding: 8px 4px; border: 1px solid var(--line); background: white; font-size: .72rem; }.sort-control select { border: 1px solid var(--line); background: white; }.status-unaccepted:empty { display: none; }.status-provisional { border-color: #d88a16; color: #a96300; }.status-completed { border-color: #159447; color: #159447; }
.item-section h1 { margin: 0 0 16px; font-size: 1.3rem; }.item-list { display: grid; gap: 10px; }.item-card { display: grid; grid-template-columns: 64px 1fr 22px; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); background: white; text-decoration: none; }.item-icon, .item-detail-icon { display: grid; place-items: center; border: 1px solid var(--line); background: #fff7d9; color: var(--accent-dark); text-align: center; }.item-icon { width: 64px; height: 64px; border-radius: 50%; font-size: .7rem; }.item-card-content { display: grid; gap: 6px; min-width: 0; }.item-card-content strong { font-size: .86rem; }.item-card-content span { color: var(--muted); font-size: .82rem; }.item-arrow { color: var(--muted); font-size: 1.8rem; }.item-detail { display: grid; justify-items: center; padding: 8px 18px 22px; border: 1px solid var(--line); background: white; text-align: center; }.item-back { justify-self: start; color: var(--accent-dark); text-decoration: none; }.item-back span { font-size: .8rem; }.item-detail-icon { width: 150px; height: 150px; margin: 24px 0 16px; border-radius: 50%; font-size: 1.3rem; }.item-detail h1 { margin: 0; font-size: 1.15rem; }.item-count { margin: 8px 0 26px; color: var(--muted); }.item-description { max-width: 290px; margin: 0; line-height: 1.9; }.item-back-button { width: 120px; margin-top: 28px; }
.guest-register { position: fixed; inset: 0; z-index: 20; display: grid; align-items: center; padding: 18px; background: rgb(0 0 0 / 35%); }.guest-register:has([hidden]) { display: none; }.guest-register-panel { width: min(100%, 390px); margin: 0 auto; padding: 24px 18px; border: 1px solid var(--line); background: var(--paper); text-align: center; }.guest-register-panel h2 { margin: 0 0 22px; font-size: 1.15rem; }.guest-register-panel .button { width: 100%; }
.adventurer-section, .profile-section { margin-bottom: 24px; }.adventurer-section h1 { margin: 0 0 14px; font-size: 1.3rem; }.adventurer-card-scene { perspective: 900px; }.adventurer-card { position: relative; display: block; width: 100%; min-height: 230px; padding: 0; border: 0; background: transparent; text-align: left; transform-style: preserve-3d; cursor: pointer; }.adventurer-card-face { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 7px; padding: 18px; border: 1px solid var(--line); background: white; backface-visibility: hidden; text-align: center; transition: transform .45s ease; }.adventurer-card-front { transform: rotateY(0deg); }.adventurer-card-back { transform: rotateY(180deg); }.adventurer-card-scene.is-flipped .adventurer-card-front { transform: rotateY(-180deg); }.adventurer-card-scene.is-flipped .adventurer-card-back { transform: rotateY(0deg); }.barcode { letter-spacing: .2em; font-size: 1.4rem; }.card-avatar { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 1.7rem; }.card-badge { font-size: 2rem; }.card-label { margin-top: 8px; color: var(--muted); font-size: .72rem; }.card-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }.card-skills b, .equipped-list span, .choice-button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: .72rem; }.flip-hint { margin: 8px 0; color: var(--muted); font-size: .72rem; text-align: center; }.share-button { width: 100%; }.profile-section { padding: 14px; border: 1px solid var(--line); background: white; }.profile-section .section-heading { margin-bottom: 14px; }.equipped-value { margin: 0 0 14px; font-size: 1.1rem; font-weight: 700; text-align: center; }.equipped-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }.profile-list-header { display: flex; justify-content: space-between; margin: 10px 0; color: var(--muted); font-size: .7rem; }.choice-list { display: flex; flex-wrap: wrap; gap: 7px; }.choice-button { cursor: pointer; }.choice-button.selected { border-color: var(--accent); color: var(--accent-dark); background: #e6f4f9; }.profile-edit-button { width: 100%; margin-top: 16px; }.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }.achievement-stamp { display: grid; min-height: 92px; align-content: center; justify-items: center; padding: 8px; border: 1px solid var(--line); text-align: center; }.achievement-stamp span { color: var(--accent-dark); font-size: .7rem; }.achievement-stamp strong { margin-top: 8px; font-size: .68rem; line-height: 1.4; }

@media (min-width: 700px) { .phone-screen { min-height: auto; margin: 32px auto; border: 1px solid var(--line); } }
