

:root {
    --toefl-primary: #0a2e5c;
    --toefl-accent: #c5a059;
    --toefl-bg: #f8fafc;
    --toefl-glass: rgba(255, 255, 255, 0.8);
    --toefl-shadow: 0 20px 40px rgba(10, 46, 92, 0.1);
    --toefl-border: rgba(10, 46, 92, 0.1);
}

#toefl-simulator-screen {
    background: var(--toefl-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(197, 160, 89, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(10, 46, 92, 0.05) 0px, transparent 50%);
}

.toefl-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    padding-bottom: 150px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.toefl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--toefl-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--toefl-border);
    box-shadow: var(--toefl-shadow);
    z-index: 5;
}

.toefl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toefl-brand h2 {
    font-size: 18px;
    margin: 0;
}

.toefl-badge {
    background: var(--toefl-primary);
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.toefl-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 18px;
    color: var(--toefl-primary);
    background: white;
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid var(--toefl-border);
}

.toefl-timer.warning {
    color: var(--danger);
    animation: pulse 1s infinite;
}

.toefl-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toefl-section-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--toefl-shadow);
    border: 1px solid var(--toefl-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.toefl-section-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--toefl-accent);
}

.toefl-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--toefl-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toefl-instruction {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    border-left: 4px solid var(--toefl-primary);
}

.toefl-writing-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toefl-textarea {
    width: 100%;
    height: 280px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--toefl-border);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
    transition: all 0.3s ease;
    background: #fff;
    color: var(--toefl-primary);
    box-sizing: border-box;
}

.toefl-textarea:focus {
    outline: none;
    border-color: var(--toefl-accent);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.toefl-stats-bar {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.toefl-shio-bubble {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
}

.shio-avatar-premium {
    width: 60px;
    height: 60px;
    background: var(--toefl-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shio-avatar-premium:hover {
    transform: scale(1.1) rotate(5deg);
}

.shio-avatar-premium img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shio-tip-box {
    background: white;
    padding: 12px 18px;
    border-radius: 18px 18px 0 18px;
    box-shadow: var(--toefl-shadow);
    border: 1px solid var(--toefl-border);
    max-width: 220px;
    font-size: 12px;
    font-weight: 500;
    color: var(--toefl-primary);
    animation: slideInRight 0.5s ease;
}

.toefl-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-toefl {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-toefl-outline {
    background: white;
    color: var(--toefl-primary);
    border: 2px solid var(--toefl-primary);
}

.btn-toefl-primary {
    background: var(--toefl-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 46, 92, 0.2);
}

.btn-toefl-primary:hover {
    background: var(--toefl-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}

.toefl-loading-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-lq-container {
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
}
.lq-svg {
  width: 180px;
  height: 140px;
  filter: drop-shadow(0 15px 25px rgba(10, 46, 92, 0.15));
}
.path-l {
  fill: none;
  stroke: var(--toefl-primary);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLQ 1.5s ease-out forwards;
}
.path-q-circle {
  fill: none;
  stroke: var(--toefl-primary);
  stroke-width: 14;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLQ 1.5s ease-out 0.3s forwards;
}
.path-connector {
  fill: none;
  stroke: var(--toefl-primary);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLQ 1s ease-out 1s forwards;
}
.path-star {
  fill: #ff9600;
  transform-origin: center;
  transform: scale(0);
  animation: popStar 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s forwards;
}
@keyframes drawLQ {
  to { stroke-dashoffset: 0; }
}
@keyframes popStar {
  to { transform: scale(1); }
}

.toefl-section-card.focus-mode {
    transform: scale(1.01);
    box-shadow: 0 20px 50px rgba(10, 46, 92, 0.2);
    border-color: var(--toefl-accent);
    z-index: 10;
}

.toefl-section-card.focus-mode::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 46, 92, 0.3);
    backdrop-filter: blur(2px);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

.toefl-result-card {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid var(--toefl-border);
}

.toefl-feedback-text h1, .toefl-feedback-text h2, .toefl-feedback-text h3 {
    color: var(--toefl-primary);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 18px;
}

.toefl-feedback-text p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.toefl-feedback-text strong {
    color: var(--toefl-primary);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .toefl-container {
        padding: 10px;
        padding-bottom: 220px;
    }
    .toefl-section-card {
        padding: 20px;
    }
    .toefl-header {
        padding: 10px 15px;
    }
    .toefl-brand h2 {
        display: none;
    }
    .toefl-textarea {
        height: 220px;
    }
    .toefl-section-card.focus-mode {
        transform: none;
    }
    .toefl-shio-bubble {
        bottom: 160px;
        right: 20px;
    }
    .shio-avatar-premium {
        width: 55px;
        height: 55px;
    }
    .shio-tip-box {
        max-width: 170px;
        font-size: 10px;
    }
}
