@font-face {
    font-family: "pixelFont";
    src: url("./assets/fonts/pixelFont.ttf") format("truetype");
}

.final-round-popup-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  padding: 30px 20px;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: white;
  text-align: center;
  z-index: 9999;
  font-family: "pixelFont", sans-serif;
}

.final-round-popup-logo {
  display: block;
  width: 100px;
  margin: 0 auto 20px;
}

.final-round-popup-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-top: 10px;
}

.final-round-popup-round-row {
  background: rgba(255,255,255,0.1);
  padding: 10px 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 28px;
  text-align: center;
  transition: background 0.2s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.35);
}

.final-round-popup-title {
  color: rgb(255, 255, 255);
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 25px;
}

.info-final-round {
  color: rgb(255, 255, 255);
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 25px;
}

.info-large-font {
  color: rgb(255, 255, 255);
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 25px;
}

.info-large-emoji {
  font-size: 60px;
  margin-top: 35px;
  margin-bottom: 35px;
}

.info-large-font {
  color: rgb(255, 255, 255);
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 25px;
}

.round-row-rank {
  color: rgb(255, 255, 255);
  font-size: 30px;
  font-weight: bold;
}

.round-row-date {
  color: rgb(255, 255, 255);
  font-size: 20px;
}

.round-row-round {
  color: rgb(255, 255, 255);
  font-size: 30px;
}

.bottom-button {
  display: block;
  margin: 25px auto 0;
  padding: 10px 25px;
  border: none;
  border-radius: 12px;
  font-family: "pixelFont", sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #28a745, #3cd070);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  margin-bottom: 25px;
}

.bottom-button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2cc14a, #45e078);
}

.toggle-summary-button {
    margin-top: 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
}

.expand-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s ease-out;
    opacity: 0;
    padding: 0 12px;
    border-radius: 8px;
}

.expand-panel .expand-inner {
    padding: 10px 0;
    font-size: 16px;
    text-align: left !important;
}

.expand-panel:not(.collapsed) {
    max-height: 200px; /* enough space for content */
    opacity: 1;
}

.expand-btn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: #4A64FF;
    color: white;
    transition: background 0.2s;
}

.expand-btn:hover {
    background: #3A53D8;
}

.stats-column {
    display: flex;
    flex-direction: column;
}

.stats-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding: 12px;
    
    /* NEW: visual style */
    background: rgba(255, 255, 255, 0.12); /* subtle transparent white overlay */
    border-radius: 12px;
    backdrop-filter: blur(4px); /* optional glassy blur effect */
}

/* Expandable View Two-column layout */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    text-align: left;
    width: 100%;
}

/* Expandable View Headers */
.details-title {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
    text-decoration: underline;
}

/* Expandable View Rows */
.details-line {
    margin: 3px 0;
}