/* === Player Layout === */
.player-shell {
    min-height: 100vh;
    background: #fafaf8;
    position: relative;
}

/* === Progress Bar === */
.player-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
    z-index: 100;
}
.progress-fill {
    height: 100%;
    background: #2a2a2a;
    transition: width 0.3s ease;
}

.player-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    padding-top: 0.875rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}
.progress-info {
    color: #9ca3af;
}
.exit-link {
    color: #9ca3af;
    font-size: 0.8125rem;
}
.exit-link:hover {
    color: #6b7280;
}

/* === Player Main === */
.player-main {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* === Player Index (Flow Picker) === */
.player-index h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}
.flow-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: #fff;
}
.flow-card-info h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.flow-card-info p {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* === Step Display === */
.player-step {
    text-align: center;
}
.player-step h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.step-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

/* === Image / Placeholders === */
.step-image {
    margin-bottom: 1.5rem;
}
.step-image img {
    max-width: 100%;
    border-radius: 6px;
}
.image-placeholder,
.audio-placeholder,
.visual-note {
    padding: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #9ca3af;
    font-style: italic;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.audio-placeholder {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}
.visual-note {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-style: dotted;
    border-color: #e5e7eb;
}

/* === CTA Button === */
.cta-area {
    margin-top: 2rem;
}
.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #2a2a2a;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cta-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* === Choice Step === */
.choice-prompt {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #4b5563;
}
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.choice-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease;
    background: #fff;
}
.choice-card:hover {
    border-color: #9ca3af;
}
.choice-card.selected {
    border-color: #2563eb;
    background: #f0f5ff;
}
.choice-card input[type="radio"] {
    display: none;
}
.choice-card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}
.choice-card-content p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* === Companion Customize === */
.trait-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.trait-group h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.trait-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.trait-card {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease;
    background: #fff;
}
.trait-card:hover {
    border-color: #9ca3af;
}
.trait-card.selected {
    border-color: #2563eb;
    background: #f0f5ff;
}
.trait-card input[type="radio"] {
    display: none;
}

/* === Action Step (Hold) === */
.hold-container {
    margin-top: 2rem;
}
.hold-instruction {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}
.hold-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #d1d5db;
    background: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hold-button.holding {
    border-color: #2563eb;
    color: #2563eb;
}
.hold-button.hold-complete {
    border-color: #16a34a;
    color: #16a34a;
    background: #f0fdf4;
}
.hold-progress-bar {
    width: 200px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 1rem auto;
    overflow: hidden;
}
.hold-progress-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    transition: none;
}
.hold-progress-fill.complete {
    background: #16a34a;
}
.completion-effect {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 1rem;
}

/* === Reflection Step === */
.reflection-prompt {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
    font-style: italic;
}
.reflection-input {
    text-align: left;
    margin-bottom: 1.5rem;
}
.reflection-input input,
.reflection-input textarea {
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    width: 100%;
}
.skip-link {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-decoration: underline;
}

/* === Complete Step === */
.complete-screen {
    text-align: center;
}
.complete-screen h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.complete-message {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}
.state-summary {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 400px;
}
.state-summary h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.state-summary table {
    width: 100%;
    border-collapse: collapse;
}
.state-summary td {
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f3f4f6;
}
.state-summary .state-key {
    color: #6b7280;
    width: 40%;
}
.post-complete-note {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin-bottom: 2rem;
}
.complete-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* === State Sidebar === */
.state-sidebar {
    position: fixed;
    top: 50px;
    right: 0;
    width: 280px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    height: calc(100vh - 50px);
    transform: translateX(280px);
    transition: transform 0.2s ease;
    z-index: 50;
    overflow-y: auto;
}
.state-sidebar.open {
    transform: translateX(0);
}
.sidebar-toggle {
    position: absolute;
    left: -40px;
    top: 1rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 3px 0 0 3px;
    cursor: pointer;
    color: #9ca3af;
    writing-mode: vertical-lr;
}
.sidebar-content {
    padding: 1rem;
}
.sidebar-content h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}
.state-table {
    width: 100%;
    border-collapse: collapse;
}
.state-table td {
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f3f4f6;
}
.state-table .state-key {
    color: #9ca3af;
    font-weight: 500;
    width: 45%;
}
.state-table .state-value {
    color: #2a2a2a;
}
