* { box-sizing: border-box; }
          
    body {
      background: black;
      color: white;
      font-family: 'Apple SD Gothic Neo', sans-serif;
      text-align: center;
      padding: 0px;
      padding-top: 30px;
    }

.container {
  background: white;
  color: black;
  padding: 14px 16px;
  border-radius: 20px;
  width: 85%;
  margin: 28px auto 0;
}

    .global-timer-box {
      background: #f1f1f1;
      border-radius: 18px;
      padding: 10px;
      border: 4px solid #000;
      /* 이미지 기준 너비로 고정 – 브라우저가 넓어져도 커지지 않음 */
      width: 420px;
      max-width: 100%;   /* 뷰포트가 420px 미만일 때만 줄어듦 */
      margin: 0 auto;
      flex-wrap: wrap;
      gap: 5px;
      justify-content: center;
    }

    .global-time-display {
      font-size: 45px;
      background: #000;
      color: #fff;
      padding: 3px 0;
      border-radius: 8px;
      width: 180px;
      margin: auto;
      margin-bottom: 10px;
    }

    .time-buttons button {
      margin: 2px;
      padding: 6px 12px;
      font-size: 14px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
    }

    .global-controls button {
      padding: 6px 10px;
      font-size: 14px;
    }

    .global-timer-box .timer-name-input {
      width: 100%;
      box-sizing: border-box;
      height: 38px;
      padding: 6px 10px;
      border: 4px solid #ddd;
      border-radius: 8px;
      font-size: 14px;
      outline: none;
      margin-bottom: 5px;
    }

    .global-timer-box .buff-select,
    .global-timer-box .alarmSoundSelect,
    .global-timer-box .pre-alert-select {
      height: 38px;
      font-size: 15px;
    }

    .global-timer-box .input-seconds {
      height: 32px;
      font-size: 14px;
    }

    .start-all { background: #00c853; color: white; }
    .stop-all { background: #ffab00; color: white; }
    .reset-all { background: #7a6b6b; color: white; }

    .add-btn {
      background: #2979ff;
      color: white;
      padding: 6px 12px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
    }

    .alarm-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
       margin-top: 10px;
    }

    .alarm-timer {
      background: #fff;
      border: 2px solid #000;
      border-radius: 20px;
      padding: 12px;
      width: 180px;
      box-sizing: border-box;
    }

    .time-display {
      background: #000;
      color: #fff;
      font-size: 26px;
      text-align: center;
      border-radius: 6px;
      padding: 6px 0;
      margin: 6px 0;
    }

    .button-group {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      justify-content: center;
    }

    button {
      padding: 4px 7px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 12px;
    }

    .start { background: #00c853; color: white; }
    .stop { background: #dda330; color: white; }
    .reset { background: #7a6b6b; color: white; }
    .delete { background: #d81b60; color: white; }

    .buff-select, .alarmSoundSelect, .pre-alert-select {
      height: 28px;
      font-size: 11px;
      width: 48%;
      min-width: 0;
      flex: 1 1 0;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-right: 0;
    }

    .row-line {
      display: flex;
      gap: 4%;
      width: 100%;
      box-sizing: border-box;
    }

    .bottom-controls {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .left-buttons {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .right-controls {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }

    .input-seconds {
      width: 95%;
      height: 26px;
      font-size: 12px;
      margin-top: 4px;
    }
    #globalVolume {
      width: 80px;
    }
.plus-btn {
  background: #2979ff;
  color: white;
}

/* - 버튼 */
.minus-btn {
  background: #ff4081;
  color: white;
}


.buff-select option,
.alarmSoundSelect option {
  direction: ltr;        /* 목록 항목 텍스트는 원래대로 */
  text-align: left;
}
  .timer-name-input{
    width: 100%;
    box-sizing: border-box;
    height: 28px;
    padding: 4px 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    outline: none;
  margin-bottom: 4px;
  }
  .timer-name-input:focus{
    border-color: #7aa7ff;
    box-shadow: 0 0 0 3px rgba(122,167,255,.15);
  }

  /* CSS (스타일 정의) */
@keyframes blink {
  0%, 100% { background-color: inherit; }
  50% { background-color: #ffcccc; }
}

.blinking {
  animation: blink 0.5s step-start 7; /* 0.5초 × 7회 */
}

/* 설정 파일 저장 / 불러오기 버튼 */
.timer-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 8px 14px;
  margin: 4px 2px;

  font-size: 13px;
  font-weight: 600;
  color: #fff;

  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: 1px solid #1d4ed8;
  border-radius: 6px;

  cursor: pointer;
  user-select: none;

  transition: all 0.15s ease;
}

.timer-file-btn:hover {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.timer-file-btn:active {
  transform: scale(0.97);
}

.timer-file-btn.load {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-color: #15803d;
}

.timer-file-btn.load:hover {
  background: linear-gradient(180deg, #4ade80, #22c55e);
}
/* ══════════════════════════════════════════════
   한타임 수익 계산기
══════════════════════════════════════════════ */

/* ── 3단 flex 래퍼 ── */
.pc-inputs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

/* 시작·종료 칼럼 */
.pc-col {
  flex: 1 1 300px;
  min-width: 280px;
}

/* 결과 칼럼 */
.pc-col-result {
  flex: 1 1 260px;
  min-width: 240px;
}

/* ── 패널 공통 ── */
.pc-panel {
  background: #f8f9ff;
  border: 2px solid #c7d2fe;
  border-radius: 14px;
  padding: 0 12px 12px;
  overflow: hidden;
}

/* ── 패널 헤더 ── */
.pc-panel-header {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  margin: 0 -12px 10px;
  letter-spacing: 0.4px;
}

.pc-header-start  { background: linear-gradient(90deg,#d1fae5,#a7f3d0); color:#065f46; border-bottom:2px solid #6ee7b7; }
.pc-header-end    { background: linear-gradient(90deg,#fee2e2,#fecaca); color:#7f1d1d; border-bottom:2px solid #fca5a5; }
.pc-header-result { background: linear-gradient(90deg,#ede9fe,#ddd6fe); color:#3730a3; border-bottom:2px solid #a5b4fc; }

/* ── 섹션 라벨 ── */
.pc-section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #4f46e5;
  background: #e0e7ff;
  border-radius: 5px;
  padding: 2px 7px;
  margin: 8px 0 5px;
}

/* ── 캐릭터 정보 행 (레벨·경험치·메소 – 한 줄에 하나, 컴팩트) ── */
.pc-info-row {
  margin-bottom: 3px;
  display: flex;
  justify-content: center;
}

.pc-info-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 80%;
}

.pc-info-label {
  font-size: 10px;
  color: #374151;
  width: 58px;
  flex-shrink: 0;
  text-align: right;
}

.exp-mode-btn {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1.5px solid #a5b4fc;
  background: #ede9fe;
  color: #4f46e5;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(99,102,241,0.15);
  transition: opacity 0.15s;
}
.exp-mode-btn:hover { opacity: 0.8; }
.exp-mode-btn:active { transform: scale(0.95); }

/* ── 공통 input ── */
.pc-input {
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 12px;
  outline: none;
  min-width: 0;
  transition: border-color 0.15s;
  background: #fff;
}

.pc-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}

/* 캐릭터 정보용 – 세로 좁게 */
.pc-input-sm {
  flex: 1;
  height: 22px;
  font-size: 11px;
}

/* 포션용 – 정사각형에 가깝게 */
.pc-input-xs {
  width: 100%;
  height: 24px;
  font-size: 11px;
  text-align: center;
  padding: 0 3px;
}

/* 단가 인풋 배경색 살짝 구분 */
.pc-price {
  background: #fffbeb;
  border-color: #fcd34d;
}
.pc-price:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.15);
}

/* ── 포션 4열 그리드 ── */
.pc-potion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 2px;
}

/* 포션 셀: 이름 + 수량 + 단가 세로 배치 */
.pc-potion-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: stretch;
}

.pc-potion-name {
  font-size: 10px;
  font-weight: 700;
  color: #4b5563;
  text-align: center;
  background: #e5e7eb;
  border-radius: 4px;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 결과 보기 / 초기화 버튼 ── */
.pc-calc-btn {
  padding: 8px 22px;
  background: linear-gradient(135deg,#f59e0b,#ef4444);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 8px;
  transition: opacity 0.15s;
}
.pc-calc-btn:hover { opacity: 0.85; }

.pc-reset-btn {
  padding: 8px 16px;
  background: #6b7280;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  width: auto;
  margin-top: 0;
  transition: background 0.15s;
}
.pc-reset-btn:hover { background: #4b5563; }

/* ── 결과 패널 내부 ── */
.pc-result-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  text-align: center;
}

.pc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.pc-result-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  padding: 6px 10px;
}

.pc-result-card .card-label {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 2px;
  text-align: center;
}

.pc-result-card .card-value {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  word-break: break-all;
  text-align: center;
}

.card-value.pos  { color: #16a34a; }
.card-value.neg  { color: #dc2626; }
.card-value.blue { color: #2563eb; }

.pc-potion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-top: 4px;
}

.pc-potion-table th {
  background: #e0e7ff;
  color: #3730a3;
  padding: 3px 3px;
  text-align: center;
  font-weight: 700;
}

.pc-potion-table td {
  padding: 3px 3px;
  text-align: center;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.pc-potion-table tr:last-child td { border-bottom: none; }

.pc-net-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 2px solid #6366f1;
  border-radius: 9px;
  padding: 8px 10px;
  margin-top: 8px;
}

.pc-net-row .net-label {
  font-size: 10px;
  font-weight: 700;
  color: #4f46e5;
}

.pc-net-row .net-value {
  font-size: 15px;
  font-weight: 800;
}

.pc-result-card .card-sub {
  font-size: 10px;
  margin-top: 3px;
  font-weight: 500;
}
.card-sub.pos { color: #16a34a; }
.card-sub.neg { color: #dc2626; }

/* 결과 전폭 카드 (메소증감·소비·획득) */
.pc-result-wide {
  margin-bottom: 6px;
}

/* 값 + 세부내용 가로 배치 */
.card-row-inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* 세부 설명 텍스트 */
.card-detail {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
}
.card-detail.pos { color: #16a34a; }
.card-detail.neg { color: #dc2626; }

/* 소비/획득 내역 인라인 테이블 */
.pc-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-top: 5px;
}

.pc-detail-table th {
  background: #f3f4f6;
  color: #374151;
  padding: 3px 5px;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
}

.pc-detail-table td {
  padding: 3px 5px;
  text-align: center;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
}

.pc-detail-table tr:last-child td { border-bottom: none; }

.card-none {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ── 시작창 프리셋 저장/불러오기 버튼 ── */
.pc-preset-save-btn,
.pc-preset-load-btn {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.15s;
  color: #fff;
}
.pc-preset-save-btn {
  background: linear-gradient(135deg, #10b981, #059669);
}
.pc-preset-load-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.pc-preset-save-btn:hover,
.pc-preset-load-btn:hover { opacity: 0.82; }
.pc-preset-save-btn:active,
.pc-preset-load-btn:active { transform: scale(0.96); }

  justify-content: center;
  text-align: center;
}

/* ── PIP 버튼 최상단 바 ── */
.pip-top-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.pip-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.3px;
  width: 100%;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}
.pip-btn:hover  { opacity: 0.85; box-shadow: 0 3px 12px rgba(99,102,241,0.5); }
.pip-btn:active { transform: scale(0.97); }

/* ── 알람 삭제 버튼 ── */
.del-btn {
  background: #d81b60;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

/* ── 포션 이름 편집 input ── */
.pc-potion-name-input {
  font-size: 10px;
  font-weight: 700;
  color: #1e40af;
  background: #e0e7ff;
  border: 1.5px solid #a5b4fc !important;
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  width: 100%;
  height: 22px;
  cursor: text;
  transition: background 0.15s, border-color 0.15s;
}
.pc-potion-name-input:focus {
  background: #fff;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
  outline: none;
}

/* ── 종료→시작 복사 버튼 컬럼 ── */
.pc-copy-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* 상하 중앙 */
  align-self: stretch;       /* 부모(flex row) 높이를 꽉 채움 */
  min-width: 60px;
  flex-shrink: 0;
}

/* ── 종료→시작 복사 버튼 ── */
.pc-copy-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16,185,129,0.35);
  transition: opacity 0.15s, transform 0.1s;
  min-width: 52px;
}
.pc-copy-btn:hover { opacity: 0.85; }
.pc-copy-btn:active { transform: scale(0.97); }

/* ── 결과 저장 버튼 ── */
.pc-save-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: opacity 0.15s;
}
.pc-save-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════
   사용 안내 – container 외부 독립 박스
══════════════════════════════════════════════ */
.guide-box {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 16px;
  width: 95%;
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 20px 28px 24px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.guide-title {
  font-size: 17px;
  color: #ff4f4f;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.guide-list {
  font-size: 14px;
  color: #e2e2e2;
  line-height: 1.85;
  padding-left: 20px;
  margin: 0;
}

.guide-list li {
  margin-bottom: 4px;
}

.guide-list strong {
  color: #ffe066;
}
