@charset "UTF-8";

.golf-penalty-page,
.golf-penalty-page * {
  box-sizing: border-box;
}

.golf-penalty-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 44px;
  overflow-x: hidden;
}

.golf-penalty-page .utility-top {
  text-align: center;
  padding: 34px 20px 30px;
}

.golf-penalty-page .utility-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.golf-penalty-page .utility-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.golf-penalty-page .utility-desc {
  max-width: 820px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.golf-penalty-page .utility-card {
  width: 100%;
  max-width: 100%;
  margin-bottom: 26px;
  overflow: hidden;
}

.golf-penalty-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.golf-penalty-summary-card .summary-item {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.golf-penalty-summary-card .summary-item::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #0f766e);
}

.golf-penalty-summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.golf-penalty-summary-card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.penalty-setting-card {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.09), transparent 34%),
    #ffffff;
}

.penalty-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.penalty-mode-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.penalty-mode-card p,
.preset-header p,
.history-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.mode-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mode-buttons .utility-btn,
.penalty-chip-row .utility-btn {
  min-height: 42px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mode-buttons .active,
.penalty-chip-row .active {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #14532d);
  color: #ffffff;
}

.penalty-option-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.92);
  overflow: hidden;
}

.preset-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.preset-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.penalty-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.golf-penalty-page .utility-field-label {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.golf-penalty-page .utility-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 190px;
  resize: vertical;
  border-radius: 20px;
  line-height: 1.7;
  overflow-x: hidden;
}

.penalty-game-card {
  position: relative;
  padding: 34px 26px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.penalty-roulette-box {
  width: 100%;
  max-width: 820px;
  min-height: 330px;
  margin: 0 auto 30px;
  padding: 28px 20px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.09), transparent 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.roulette-title {
  margin-bottom: 18px;
  text-align: center;
}

.roulette-title span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.roulette-title strong {
  display: block;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  word-break: keep-all;
}

.penalty-rolling-list {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  width: 100%;
  min-height: 230px;
  overflow: hidden;
}

.penalty-rolling-list::before,
.penalty-rolling-list::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 54px;
  pointer-events: none;
}

.penalty-rolling-list::before {
  top: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0));
}

.penalty-rolling-list::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(248, 250, 252, 0.98), rgba(248, 250, 252, 0));
}

.penalty-rolling-item {
  width: 100%;
  max-width: 100%;
  padding: 7px 12px;
  text-align: center;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transform: scale(0.96);
  opacity: 0.55;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    font-size 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.penalty-rolling-item small {
  display: block;
  margin-top: 4px;
  color: #d1d5db;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.penalty-rolling-item.is-active {
  width: min(92%, 620px);
  margin: 2px auto;
  padding: 15px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #ffffff;
  color: #0f172a;
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 950;
  letter-spacing: -0.05em;
  transform: scale(1.03);
  opacity: 1;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.penalty-rolling-item.is-active small {
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0;
}

.penalty-ball-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 4px 0 24px;
}

.penalty-ball {
  position: relative;
  width: 220px;
  height: 220px;
  flex: 0 0 220px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.penalty-ball::before {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(59, 130, 246, 0.1) 45%, transparent 72%);
  filter: blur(16px);
  z-index: 0;
}

.penalty-ball::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 142px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  filter: blur(13px);
  transform: translateX(-50%);
  z-index: 0;
}

.penalty-ball img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter:
    contrast(1.04)
    brightness(1.04)
    drop-shadow(0 20px 26px rgba(15, 23, 42, 0.16));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.penalty-ball:hover img {
  transform: translateY(-5px) scale(1.035);
}

.penalty-ball:disabled {
  cursor: wait;
}

.penalty-ball.is-shaking img {
  animation: penaltyBallShake 0.55s ease;
}

@keyframes penaltyBallShake {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-8deg) scale(1.04); }
  40% { transform: rotate(8deg) scale(1.04); }
  60% { transform: rotate(-5deg) scale(1.02); }
  80% { transform: rotate(5deg) scale(1.02); }
}

.penalty-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.penalty-action-row .utility-btn {
  min-width: 126px;
  min-height: 44px;
  max-width: 100%;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.penalty-action-row .utility-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.penalty-action-row .utility-btn:active {
  transform: translateY(0);
}

#copyResultBtn,
#shareResultBtn {
  border-color: #cbd5e1;
}

.penalty-kakao-btn {
  border: 1px solid #f5d800;
  background: #fee500;
  color: #3c1e1e;
  font-weight: 900;
}

.penalty-kakao-btn:hover {
  border-color: #f5d800;
  background: #ffe812;
  color: #3c1e1e;
}

.selected-penalty-box {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 20px 22px 20px 26px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  text-align: left;
  overflow: hidden;
}

.selected-penalty-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
}

.selected-penalty-box span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.selected-penalty-box strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.selected-penalty-box p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.penalty-history-card {
  padding: 26px;
}

.history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.utility-subtitle {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.history-list {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.empty-history {
  width: 100%;
  padding: 28px 20px;
  border: 1px dashed #dbe3ec;
  border-radius: 20px;
  background: #ffffff;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
  text-align: center;
  word-break: keep-all;
}

.history-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: #ffffff;
}

.history-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.history-content {
  min-width: 0;
  flex: 1 1 auto;
}

.history-content strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.history-content span {
  display: block;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.golf-penalty-page .help-panel {
  margin-top: 32px;
}

.golf-penalty-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
}

.golf-penalty-page .help-box {
  max-width: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.golf-penalty-page .help-box + .help-box {
  margin-top: 18px;
}

.golf-penalty-page .help-box p,
.golf-penalty-page .help-box li {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.golf-penalty-page .help-toggle-box summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  word-break: keep-all;
}

.golf-penalty-page .help-toggle-box summary::-webkit-details-marker {
  display: none;
}

.golf-penalty-page .help-toggle-box summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #64748b;
}

.golf-penalty-page .help-toggle-box[open] summary::after {
  content: "−";
}

.golf-penalty-page .help-toggle-content {
  margin-top: 14px;
}

.golf-penalty-page .help-toggle-content p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .penalty-mode-card,
  .preset-header,
  .history-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mode-buttons,
  .penalty-chip-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .golf-penalty-page {
    padding-bottom: 34px;
  }

  .golf-penalty-summary-card {
    grid-template-columns: 1fr;
  }

  .penalty-setting-card,
  .penalty-history-card {
    padding: 22px;
  }

  .mode-buttons,
  .penalty-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-buttons .utility-btn,
  .penalty-chip-row .utility-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .penalty-roulette-box {
    min-height: 300px;
    padding: 24px 14px;
  }

  .penalty-rolling-list {
    min-height: 214px;
    gap: 12px;
  }

  .penalty-rolling-item {
    font-size: 15px;
  }

  .penalty-rolling-item.is-active {
    font-size: 27px;
    transform: scale(1.04);
  }

  .penalty-ball {
    width: 180px;
    height: 180px;
    flex-basis: 180px;
  }

  .penalty-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .penalty-action-row .utility-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .golf-penalty-page .utility-top {
    padding: 28px 14px 24px;
  }

  .golf-penalty-page .utility-title {
    font-size: 31px;
  }

  .golf-penalty-page .utility-desc {
    font-size: 14px;
  }

  .golf-penalty-summary-card .summary-item {
    padding: 20px 18px;
  }

  .penalty-setting-card,
  .penalty-history-card {
    padding: 18px;
  }

  .penalty-option-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .mode-buttons,
  .penalty-chip-row {
    grid-template-columns: 1fr;
  }

  .penalty-game-card {
    padding: 28px 14px;
  }

  .penalty-roulette-box {
    min-height: 282px;
    margin-bottom: 24px;
    padding: 22px 10px;
    border-radius: 22px;
  }

  .roulette-title strong {
    font-size: 15px;
  }

  .penalty-rolling-list {
    min-height: 198px;
    gap: 10px;
  }

  .penalty-rolling-item {
    padding: 0 4px;
    font-size: 14px;
  }

  .penalty-rolling-item.is-active {
    width: 100%;
    padding: 13px 12px;
    font-size: 22px;
    transform: scale(1);
  }

  .penalty-ball {
    width: 160px;
    height: 160px;
    flex-basis: 160px;
  }

  .penalty-action-row {
    grid-template-columns: 1fr;
  }

  .selected-penalty-box {
    padding: 18px 18px 18px 22px;
    border-radius: 20px;
  }

  .selected-penalty-box strong {
    font-size: 20px;
  }

  .history-item {
    padding: 14px;
  }

  .golf-penalty-page .help-panel > h2 {
    font-size: 25px;
  }
}