
  .island-left {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .brand-bold {
    font-size: 14px;
    font-weight: 800; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .brand-thin {
    font-size: 14px;
    font-weight: 300; 
    letter-spacing: 0.02em;
    color: var(--text-muted);
  }

  .island-left .beta-badge {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: #eef2f6;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: normal;
    margin-left: 4px;
  }
  :root {
    --bg-color: #fafafa;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    
    --sarah: #e11d48;
    --jeoji: #eab308;
    --mulchat: #16a34a;
    --geomun: #2563eb;
    --noro: #9333ea;
  }

  body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px 20px; 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    width: 100%;
    max-width: 680px; 
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .top-island-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: -20px; 
  }

  .island-left {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .island-left span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
    letter-spacing: normal;
    text-transform: none;
    vertical-align: middle;
    background: #eef2f6;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .island-right {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
  }

  .page-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
  }

  .page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
  }

  .leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .team-identity {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
  }

  .team-name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .team-score {
    font-size: 18px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .winner-sarah { color: var(--sarah); }
  .winner-jeoji { color: var(--jeoji); }
  .winner-mulchat { color: var(--mulchat); }
  .winner-geomun { color: var(--geomun); }
  .winner-noro { color: var(--noro); }

  .dot-sarah { background-color: var(--sarah); }
  .dot-jeoji { background-color: var(--jeoji); }
  .dot-mulchat { background-color: var(--mulchat); }
  .dot-geomun { background-color: var(--geomun); }
  .dot-noro { background-color: var(--noro); }

  
  .game-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .game-title-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 16px;
  }

  .game-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  
  .house-rank-squares-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 4px;
  }

  .rank-square-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
  }

  .square-rank-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
  }

  .square-team-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-muted);
  }
  
  .square-winner-border {
    border-color: #111111;
  }

  .game-status {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
  }

  
  .player-rank-list {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
  }

  .player-rank-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px 100px;
    padding: 12px 16px;
    font-size: 14px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
  }

  .player-rank-row:last-child {
    border-bottom: none;
  }

  .p-rank {
    font-weight: 700;
    color: var(--text-main);
  }

  .p-name {
    font-weight: 500;
  }

  .p-team {
    font-weight: 600;
    text-transform: capitalize;
    font-size: 13px;
  }

  .p-score {
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  /* Hides the special winner border highlight when the section text is censored */
  .hidden-scoreboard-text .square-winner-border {
    border-color: var(--border-color) !important;
  }

  /* Full-screen fixed overlay covering the entire viewport */
  /* Enables smooth scrolling across the page */
  html {
    scroll-behavior: smooth;
  }

  /* Full-screen hero element in the normal document flow */
  /* Full-screen fixed overlay covering the entire viewport */
  /* Full-screen fixed overlay with smooth transition support */
  .competition-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    box-sizing: border-box;
    padding: 40px 20px;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    /* Smooth sliding transition */
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateY(0);
  }

  /* When active, slides completely off screen upwards */
  .competition-hero.slide-up {
    transform: translateY(-100%);
    pointer-events: none;
  }

  /* Base state for leaderboard rows before they are revealed */
  .leaderboard-row {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  /* Revealed state class triggered when visible */
  .leaderboard-row.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-sarah { background-color: var(--sarah); }
  .hero-jeoji { background-color: var(--jeoji); }
  .hero-mulchat { background-color: var(--mulchat); }
  .hero-geomun { background-color: var(--geomun); }
  .hero-noro { background-color: var(--noro); }

/* Hides text content inside the boxes/scores while leaving structural boxes visible */
/* Existing text hiding rule */
  .hidden-scoreboard-text,
  .hidden-scoreboard-text * {
    color: transparent !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    user-select: none;
  }

  /* Add this rule to hide colored dots when inside a hidden section */
  .hidden-scoreboard-text .color-dot {
    background-color: transparent !important;
  }

  .footer-credits {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 20px;
  }
