* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --story-font-size: 18px;
    --story-font-scale: calc(var(--story-font-size) / 18px);
    --story-vh: 100vh;
    
    /* テーマカラー */
    --theme-color-pink: rgb(254, 170, 170);
    --theme-color-blue: rgb(175, 221, 234);
    
    /* テーマカラーのRGB値（rgba()で使用するため） */
    --theme-color-pink-rgb: 254, 170, 170;
    --theme-color-blue-rgb: 175, 221, 234;
    
    /* よく使用する透明度付きの色 */
    --theme-color-pink-95: rgba(254, 170, 170, 0.95);
    --theme-color-blue-95: rgba(175, 221, 234, 0.95);
    --theme-color-pink-98: rgba(254, 170, 170, 0.98);
    --theme-color-blue-98: rgba(175, 221, 234, 0.98);
    --theme-color-pink-90: rgba(254, 170, 170, 0.9);
    --theme-color-blue-90: rgba(175, 221, 234, 0.9);
    --theme-color-pink-50: rgba(254, 170, 170, 0.5);
    --theme-color-blue-50: rgba(175, 221, 234, 0.5);
    --theme-color-pink-40: rgba(254, 170, 170, 0.4);
    --theme-color-blue-40: rgba(175, 221, 234, 0.4);
    --theme-color-pink-30: rgba(254, 170, 170, 0.3);
    --theme-color-blue-30: rgba(175, 221, 234, 0.3);
    
    /* マップ画面のボタンサイズ */
    --map-button-size: 60px;
    --map-button-size-mobile: 56px;
    --map-button-icon-size: 30px;
    --map-button-icon-size-mobile: 28px;
    --map-button-border-width: 2px;
    --map-button-padding: 0.9rem;
    --map-button-padding-mobile: 0.85rem;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, var(--theme-color-pink) 0%, var(--theme-color-blue) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body.has-photo {
    background: #000;
}

.story-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.story-background.photo-portrait {
    background-size: 100% auto;
}

.story-background.photo-landscape {
    background-size: auto 100%;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: var(--story-vh);
    position: relative;
    z-index: 2;
}

.content {
    text-align: center;
    color: white;
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.logo-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: fadeInUp 1s ease-out;
}

.main-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.description {
    margin-top: 2rem;
    font-size: 1.1rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.main-actions {
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.action-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--theme-color-pink) 0%, var(--theme-color-blue) 100%);
    color: #2d3436;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--theme-color-pink-30);
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.8),
        -1px 0 0 rgba(255, 255, 255, 0.8),
        1px 0 0 rgba(255, 255, 255, 0.8);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--theme-color-blue-rgb), 0.5);
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

.dot:nth-child(3) {
    animation-delay: 0s;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 物語閲覧画面のスタイル */
.story-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--theme-color-pink-95) 0%, var(--theme-color-blue-95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    min-height: 3rem;
}

.story-header .logo-image {
    max-width: 200px;
    height: 2rem;
    width: auto;
    margin-bottom: 0;
    object-fit: contain;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3000;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navigation {
    display: flex;
    gap: calc(2rem * var(--story-font-scale, 1));
}

.navigation-controls {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: calc(0.5rem * var(--story-font-scale, 1));
    color: white;
}

.navigation-controls-label {
    font-size: calc(0.95rem * var(--story-font-scale, 1));
    letter-spacing: 0.05em;
}

.font-size-controls {
    display: flex;
    gap: calc(0.5rem * var(--story-font-scale, 1));
}

.font-size-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(25px * var(--story-font-scale, 1));
    padding: calc(0.4rem * var(--story-font-scale, 1)) calc(0.9rem * var(--story-font-scale, 1));
    font-size: calc(0.9rem * var(--story-font-scale, 1));
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.font-size-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.font-size-btn:active {
    transform: translateY(0);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: calc(1rem * var(--story-font-scale, 1));
    padding: calc(0.5rem * var(--story-font-scale, 1)) calc(1rem * var(--story-font-scale, 1));
    border-radius: calc(25px * var(--story-font-scale, 1));
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.story-content {
    margin-top: 0;
    padding: 0;
    position: relative;
    background: none;
    min-height: var(--story-vh);
    overflow-x: hidden;
    overflow-y: visible;
}

.story-text {
    position: relative;
    z-index: 2;
    padding: 1rem;
    padding-top: 120px;
    width: 90%;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
}

.story-wrapper {
    position: relative;
    z-index: 2;
    padding: 2rem;
    padding-top: 5rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 3rem);
}

.story-text-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.story-text-content {
    padding: 1rem 0.5rem;
}

.story-paragraph {
    margin-bottom: 2.5rem;
    line-height: 2;
    font-size: 18px;
    color: white;
    text-align: left;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 0, 0, 0.4),
        0 0 32px rgba(0, 0, 0, 0.2),
        -2px -2px 0 var(--theme-color-blue-95),
        2px -2px 0 var(--theme-color-blue-95),
        -2px 2px 0 var(--theme-color-blue-95),
        2px 2px 0 var(--theme-color-blue-95),
        -1px -1px 0 var(--theme-color-blue-95),
        1px -1px 0 var(--theme-color-blue-95),
        -1px 1px 0 var(--theme-color-blue-95),
        1px 1px 0 var(--theme-color-blue-95);
}

.story-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.story-feedback {
    width: 90vw;
    max-width: 800px;
    margin: calc(2rem * var(--story-font-scale, 1)) auto calc(4rem * var(--story-font-scale, 1));
    padding: calc(1.5rem * var(--story-font-scale, 1));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.story-feedback-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2d3436;
    font-weight: 600;
}

.story-feedback-input {
    width: 100%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: calc(1rem * var(--story-font-scale, 1));
    font-size: calc(1rem * var(--story-font-scale, 1));
    resize: none;
    font-family: 'Noto Sans JP', sans-serif;
    background: rgba(0, 0, 0, 0.03);
    color: #2d3436;
    margin-bottom: calc(0.75rem * var(--story-font-scale, 1));
}

.story-feedback-btn {
    width: 100%;
    padding: calc(0.85rem * var(--story-font-scale, 1));
    border-radius: calc(12px * var(--story-font-scale, 1));
    border: none;
    font-size: calc(1rem * var(--story-font-scale, 1));
    font-weight: 600;
    background: linear-gradient(135deg, var(--theme-color-pink) 0%, var(--theme-color-blue) 100%);
    color: #2d3436;
    cursor: not-allowed;
    opacity: 0.7;
}

.control-btn {
    background: linear-gradient(135deg, var(--theme-color-pink) 0%, var(--theme-color-blue) 100%);
    color: #2d3436;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: calc(0.75rem * var(--story-font-scale, 1)) calc(1.5rem * var(--story-font-scale, 1));
    border-radius: calc(25px * var(--story-font-scale, 1));
    cursor: pointer;
    font-weight: 500;
    font-size: calc(1rem * var(--story-font-scale, 1));
    transition: all 0.3s ease;
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.8),
        -1px 0 0 rgba(255, 255, 255, 0.8),
        1px 0 0 rgba(255, 255, 255, 0.8);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--theme-color-blue-40);
}

.control-btn--accent {
    background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    color: #2d3436;
    box-shadow: 0 5px 15px rgba(242, 153, 74, 0.35);
}

.control-btn--accent:hover {
    box-shadow: 0 8px 20px rgba(242, 153, 74, 0.45);
}

.story-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(0.75rem * var(--story-font-scale, 1));
    padding: calc(1rem * var(--story-font-scale, 1)) calc(1.5rem * var(--story-font-scale, 1));
}

.story-select-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #4a4a4a;
    border: none;
    padding: calc(0.6rem * var(--story-font-scale, 1)) calc(1.2rem * var(--story-font-scale, 1));
    border-radius: calc(20px * var(--story-font-scale, 1));
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.15);
    min-width: calc(140px * var(--story-font-scale, 1));
    font-size: calc(0.95rem * var(--story-font-scale, 1));
}

.story-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.story-select-btn--active {
    background: linear-gradient(135deg, var(--theme-color-pink) 0%, var(--theme-color-blue) 100%);
    color: #2d3436;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px var(--theme-color-blue-40);
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.8),
        -1px 0 0 rgba(255, 255, 255, 0.8),
        1px 0 0 rgba(255, 255, 255, 0.8);
}

.story-card--hidden {
    display: none;
}

.story-sentence {
    display: block;
    line-height: 1.9;
    font-size: var(--story-font-size, 18px);
    color: #ffffff;
    margin: 0 1em;
    text-align: justify;
    text-justify: inter-ideograph;
    line-break: strict;
    word-break: normal;
    overflow-wrap: anywhere;
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 0.9),
        0 -2px 0 rgba(0, 0, 0, 0.9),
        2px -2px 0 rgba(0, 0, 0, 0.9),
        -2px 0 0 rgba(0, 0, 0, 0.9),
        2px 0 0 rgba(0, 0, 0, 0.9),
        -2px 2px 0 rgba(0, 0, 0, 0.9),
        0 2px 0 rgba(0, 0, 0, 0.9),
        2px 2px 0 rgba(0, 0, 0, 0.9);
}

.story-sentence + .story-sentence {
    margin-top: 1.4rem;
}

.story-action-container {
    margin-top: 3rem;
    padding: 0 2.5rem 3.5rem 2.5rem;
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-map-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--theme-color-pink) 0%, var(--theme-color-blue) 100%);
    color: #2d3436;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--theme-color-blue-40);
    text-shadow: 
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8),
        0 -1px 0 rgba(255, 255, 255, 0.8),
        0 1px 0 rgba(255, 255, 255, 0.8),
        -1px 0 0 rgba(255, 255, 255, 0.8),
        1px 0 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.story-map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--theme-color-blue-rgb), 0.5);
}

.dark-mode .story-sentence {
    color: #ffffff;
    text-shadow:
        -2px -2px 0 rgba(0, 0, 0, 1),
        0 -2px 0 rgba(0, 0, 0, 1),
        2px -2px 0 rgba(0, 0, 0, 1),
        -2px 0 0 rgba(0, 0, 0, 1),
        2px 0 0 rgba(0, 0, 0, 1),
        -2px 2px 0 rgba(0, 0, 0, 1),
        0 2px 0 rgba(0, 0, 0, 1),
        2px 2px 0 rgba(0, 0, 0, 1);
}

.story-card-locked-message {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--theme-color-blue-50);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 0 1em 1.25rem 1em;
    color: #2d3436;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.story-card-locked-message p {
    margin: 0.35rem 0;
}

.story-card-locked-status {
    font-weight: 600;
    color: #f2994a;
}

.dark-mode .story-card-locked-message {
    background: rgba(45, 52, 54, 0.85);
    color: #ecf0f1;
    border-color: rgba(236, 240, 241, 0.2);
}

.story-card--restricted .story-card-body {
    display: none;
}

.story-card--restricted.story-card--unlocked .story-card-body {
    display: block;
}

.story-card--restricted.story-card--unlocked .story-card-locked-message {
    display: none;
}

.story-footer {
    position: relative;
    text-align: center;
    padding: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--theme-color-pink-90) 0%, var(--theme-color-blue-90) 100%);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    width: 100%;
    clear: both;
}

/* ダークモード */
.dark-mode .story-paragraph {
    color: #ecf0f1;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 0.9),
        0 0 16px rgba(0, 0, 0, 0.7),
        0 0 24px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(0, 0, 0, 0.3),
        -2px -2px 0 var(--theme-color-blue-95),
        2px -2px 0 var(--theme-color-blue-95),
        -2px 2px 0 var(--theme-color-blue-95),
        2px 2px 0 var(--theme-color-blue-95),
        -1px -1px 0 var(--theme-color-blue-95),
        1px -1px 0 var(--theme-color-blue-95),
        -1px 1px 0 var(--theme-color-blue-95),
        1px 1px 0 var(--theme-color-blue-95);
}

.dark-mode .story-footer {
    color: #bdc3c7;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .logo-image {
        max-width: 300px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .shape-1 {
        width: 120px;
        height: 120px;
    }
    
    .shape-2 {
        width: 80px;
        height: 80px;
    }
    
    .shape-3 {
        width: 60px;
        height: 60px;
    }

    /* 物語画面のモバイル対応 */
    .story-header {
        padding: 0.5rem 1rem;
        min-height: 3rem;
    }
    
    .story-header .logo-image {
        max-width: 150px;
        height: 2rem;
    }
    
    /* モバイルでのハンバーガーメニュー */
    .hamburger {
        display: flex;
    }
    
    .navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--theme-color-pink-98) 0%, var(--theme-color-blue-98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 2000;
    }
    
    .navigation.active {
        left: 0;
    }

    .navigation-controls {
        display: flex;
        width: 100%;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        width: 200px;
        text-align: center;
    }
    
    .story-content {
        margin-top: 0;
        padding: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    .story-text {
        padding: 0.5rem;
        padding-top: 100px;
        width: 95%;
        overflow-x: hidden;
    }
    
    .story-wrapper {
        padding: 1rem;
        padding-top: 4rem;
        max-width: 100%;
    }
    
    .story-text-content {
        padding: 1rem 0.5rem;
    }
    
    .story-action-container {
        margin-top: 2rem;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .story-map-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
    
    .story-paragraph {
        font-size: 16px;
        line-height: 2;
        margin-bottom: 2rem;
        word-wrap: break-word;
        word-break: break-all;
        overflow-wrap: break-word;
        text-shadow: 
            0 0 6px rgba(0, 0, 0, 0.8),
            0 0 12px rgba(0, 0, 0, 0.6),
            0 0 18px rgba(0, 0, 0, 0.4),
            0 0 24px rgba(0, 0, 0, 0.2),
            -1px -1px 0 var(--theme-color-blue-95),
            1px -1px 0 var(--theme-color-blue-95),
            -1px 1px 0 var(--theme-color-blue-95),
            1px 1px 0 var(--theme-color-blue-95);
    }
    
    .story-controls {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .story-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .story-select-btn {
        min-width: auto;
        width: 100%;
    }
    
    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .story-sentence {
        text-align: left;
        text-justify: auto;
        margin-left: 0.5em;
        margin-right: 0.5em;
        line-height: 1.9;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}
