/* tomoy-apps-dr.css — Dual-Task Reverse 固有CSS */

/* -- INTER TASK SCREEN -- */
    /* ===== INTER TASK SCREEN ===== */
    .inter-header {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
      padding: 0 4px;
    }

    .inter-phase-label {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-weight: 700;
    }

    .inter-progress-text {
      font-family: 'Space Mono', monospace;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.85);
      letter-spacing: 2px;
      font-weight: 700;
    }

    .inter-bar-track {
      width: 100%;
      height: 5px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      overflow: hidden;
      margin-bottom: 20px;
    }

    .inter-bar-fill {
      height: 100%;
      width: 100%;
      background: linear-gradient(90deg, #74b9ff, #a29bfe);
      border-radius: 3px;
    }

    .inter-instruction {
      font-size: 17px;
      color: rgba(255, 255, 255, 0.55);
      margin-bottom: 10px;
      letter-spacing: 0.5px;
      min-height: 20px;
    }

    .inter-number-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 28px;
      min-height: 100px;
    }

    .inter-number {
      font-family: 'Space Mono', monospace;
      font-size: clamp(56px, 18vw, 84px);
      font-weight: 700;
      color: #fff;
      line-height: 1;
      text-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
      animation: numFlash 0.2s ease;
    }

    /* Mode A: Low/High judgment — blue number */
    .inter-number.mode-lh {
      color: #2980e8;
      text-shadow: 0 0 50px rgba(41, 128, 232, 0.6);
    }

    /* Mode B: Even/Odd — red */
    .inter-number.mode-eo {
      color: #e63030;
      text-shadow: 0 0 50px rgba(230, 48, 48, 0.6);
    }

    /* Feedback glow effects */
    .inter-number.glow-correct {
      text-shadow: 0 0 20px rgba(0, 255, 100, 0.9),
                   0 0 40px rgba(0, 255, 100, 0.6),
                   0 0 60px rgba(0, 255, 100, 0.4);
    }

    .inter-number.glow-wrong {
      text-shadow: 0 0 20px rgba(255, 150, 0, 0.9),
                   0 0 40px rgba(255, 150, 0, 0.6),
                   0 0 60px rgba(255, 150, 0, 0.4);
    }

    @keyframes numFlash {
      from {
        opacity: 0;
        transform: scale(0.7);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .inter-bar-track.hidden {
      visibility: hidden;
    }

    .inter-action-row {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      width: 100%;
    }

    .inter-buttons {
      display: flex;
      gap: 8px;
      justify-content: center;
    }

    .inter-btn {
      padding: 9px 32px;
      font-size: 15px;
      font-weight: 700;
      border: none;
      border-radius: 30px;
      cursor: pointer;
      letter-spacing: 1px;
      transition: all 0.2s ease;
    }

    .inter-btn:hover:not(:disabled) {
      transform: scale(1.03);
    }

    .inter-btn:active:not(:disabled) {
      transform: scale(0.97);
    }

    .inter-btn:disabled {
      opacity: 0.2;
      cursor: not-allowed;
    }

    /* RIGHT button (HIGH / ODD) — warm: amber/orange */
    .high-btn {
      background: linear-gradient(135deg, #f39c12, #e67e22);
      color: white;
      box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
    }

    /* LEFT button (LOW / EVEN) — cool: teal/cyan */
    .low-btn {
      background: linear-gradient(135deg, #00cec9, #00b894);
      color: white;
      box-shadow: 0 4px 16px rgba(0, 206, 201, 0.3);
    }

    .inter-btn.selected {
      filter: brightness(1.25);
    }

    .high-btn.selected {
      box-shadow: 0 2px 24px rgba(243, 156, 18, 0.7);
    }

    .low-btn.selected {
      box-shadow: 0 2px 24px rgba(0, 206, 201, 0.7);
    }

    @keyframes wrongFlash {
      0% {
        background: rgba(231, 76, 60, 0.8);
        transform: scale(1);
      }

      40% {
        transform: scale(0.94);
      }

      100% {
        background: rgba(231, 76, 60, 0.4);
        transform: scale(1);
      }
    }

    .inter-btn.wrong-flash {
      animation: wrongFlash 0.45s ease forwards;
    }

    .inter-giveup-btn {
      padding: 9px 20px;
      font-size: 11px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 30px;
      cursor: pointer;
      letter-spacing: 1px;
      transition: all 0.2s ease;
    }

    .inter-giveup-btn:hover {
      background: rgba(255, 255, 255, 0.15);
      color: white;
    }

    .inter-giveup-btn:active {
      transform: scale(0.95);
    }

/* -- DR responsive overrides -- */
    @media (max-height: 700px) {
      .inter-number {
        font-size: clamp(44px, 14vw, 64px);
      }

      .inter-header {
        margin-bottom: 8px;
      }

      .inter-number-wrap {
        margin-bottom: 16px;
      }

      .inter-action-row {
        gap: 12px;
      }

      .inter-btn {
        padding: 8px 24px;
        font-size: 13px;
      }

      .inter-giveup-btn {
        padding: 7px 16px;
        font-size: 11px;
      }
    }
