@font-face {
    font-family: 'Curry Ramen';
    src: url('font/Curry Ramen.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: #0D0A1A;
    color: #FFFFFF;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 60px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #1A1035 0%, #0D0A1A 50%, #1A0A2E 100%);
}

.screen.active {
    display: flex;
}

h1, h2, h3 {
    font-family: 'Curry Ramen', cursive;
    font-weight: normal;
}

h1 {
    font-size: 64px;
    line-height: 1.2;
    max-width: 600px;
    margin-bottom: 24px;
}

h2 {
    font-size: 60px;
    line-height: 1.2;
    max-width: 700px;
    margin-bottom: 24px;
}

h3 {
    font-size: 24px;
    line-height: 1.3;
    max-width: 600px;
    margin-bottom: 16px;
}

.description {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 254, 250, 0.8);
    max-width: 500px;
    margin-bottom: 32px;
}

.label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footnote {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 254, 250, 0.8);
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footnote span:first-child::after {
    content: '|';
    margin-left: 20px;
    color: rgba(255, 254, 250, 0.8);
}

.footnote i {
    margin-right: 8px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.button {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 254, 250, 0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 254, 250, 0.08);
    color: rgba(255, 254, 250, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.button.primary {
    background: rgba(255, 254, 250, 0.14);
    border: 1px solid rgba(255, 254, 250, 0.18);
}

.button.primary:hover {
    background: rgba(255, 254, 250, 0.22);
    border-color: rgba(255, 254, 250, 0.3);
}

.button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 254, 250, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.button.secondary:hover {
    background: rgba(255, 254, 250, 0.06);
    border-color: rgba(255, 254, 250, 0.3);
}

.instructions {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.instruction-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    width: 300px;
    text-align: left;
}

.instruction-image {
    width: 260px;
    height: 145px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.instruction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.instruction-number {
    font-family: 'Curry Ramen', cursive;
    font-size: 16px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.instruction-step h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.instruction-step p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

#piano {
    overflow: hidden;
    padding: 20px 40px;
}

#piano .button.primary {
    align-self: flex-end;
    margin-right: calc((100% - 1100px) / 2);
    margin-top: 16px;
}

.piano-container {
    position: relative;
    width: 1100px;
    height: 650px;
    border-radius: 16px;
    overflow: hidden;
}

#webcam {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
}

#hand-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(-1);
}

.piano-keys {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 14px;
    z-index: 10;
}

.key {
    background: rgba(30, 30, 30, 0.85);
    color: rgba(255, 254, 250, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    width: 60px;
    height: 35px;
    line-height: 35px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.15s ease;
}

.key.active {
    background: rgba(255, 254, 250, 0.2);
    color: #0D0D0D;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 254, 250, 0.3);
}

.demo-video-container {
    width: 100%;
    max-width: 800px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    aspect-ratio: 16 / 9;
}

#demo-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

#survey {
    padding: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    flex-direction: column;
    align-items: stretch;
}

#survey.active {
    display: flex;
}

.survey-question,
.survey-results-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 80px;
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(180deg, #1A1035 0%, #0D0A1A 50%, #1A0A2E 100%);
}

.survey-question.visible,
.survey-results-view.visible {
    display: flex;
}

.survey-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    gap: 60px;
}

.survey-left {
    flex: 1;
    text-align: left;
}

.survey-left h3 {
    font-size: 48px;
    line-height: 1.2;
    max-width: 450px;
}

.survey-right {
    flex: 1;
    max-width: 420px;
}

.question-number {
    font-size: 16px;
    font-family: 'Curry Ramen', cursive;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.results-label {
    font-family: 'Curry Ramen', cursive;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.survey-hint {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 254, 250, 0.8);
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.next-question-hint {
    cursor: pointer;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.answer-button {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    width: 420px;
    height: 50px;
    line-height: 50px;
    padding: 0 24px;
    background: none;
    color: rgba(255, 254, 250, 0.9);
    border: 1px solid rgba(255, 254, 250, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.answer-button:hover {
    background: rgba(255, 254, 250, 0.14);
    border-color: rgba(255, 254, 250, 0.3);
}

.answer-button.selected {
    background: rgba(255, 254, 250, 0.14);
    border-color: rgba(255, 254, 250, 0.3);
}

.results-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.result-item {
    width: 100%;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.result-answer {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.result-percentage {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Curry Ramen', cursive;
    color: rgba(255, 255, 255, 0.6);
}

.result-bar-track {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(180, 160, 220, 0.4), rgba(180, 160, 220, 0.7));
    border-radius: 12px;
    transition: width 0.8s ease;
    width: 0%;
}

#ending {
    background: linear-gradient(180deg, #1A0A2E 0%, #2A1040 50%, #0D0A1A 100%);
}

#ending .label {
    font-family: 'Curry Ramen', cursive;
    font-size: 16px;
}