 body {
      --selected-card-size: 250px;
      
      font-family: 'Cinzel', serif;
      background-image: url('https://unityx.de/wp-content/uploads/2025/06/battle-arena.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-color: #111;
      color: #fff;
      text-align: center;
      padding: 20px 0;
      letter-spacing: 0.5px;
      overflow-x: hidden;
      margin: 0;
    }

    /* YENİ: Logo ve Başlık Alanı Stilleri */
    .site-header {
        padding: 20px 0;
    }
    .site-logo {
        max-width: 300px;
        height: auto;
        margin-bottom: 10px;
    }
    .site-tagline {
        font-size: 1.2rem;
        color: #ddd;
        margin-top: 0;
        margin-bottom: 30px;
        letter-spacing: 1px;
    }
    /* -------------------------------- */

    #game-area {
        transition: filter 0.5s ease-in-out;
    }
    .hide-section { 
      display: none !important; 
    }
    #game-area {
      max-width: 100%;
      padding: 0 20px;
      box-sizing: border-box;
    }
    .identity-bar {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 25px;
      margin-top: 5px;
      letter-spacing: 1px;
    }
    .player1-identity {
      color: #2c85ff;
      text-shadow: 0 0 12px #0057ff99;
    }
    .player2-identity {
      color: #ff4059;
      text-shadow: 0 0 12px #ff002e99;
    }
    .vs-label {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 10px;
      letter-spacing: 2px;
    }
    #round-selection-display {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 40px;
      margin: 20px 0 25px 0;
    }
    .choice-display {
      width: var(--selected-card-size);
      background-color: rgba(0, 0, 0, 0.2);
      border: 4px solid #555;
      border-radius: 15px;
      box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all 0.4s ease;
    }
    .choice-display img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
    }

    .cards {
      display: inline-flex;
      max-width: 100%; 
      flex-wrap: nowrap; 
      overflow-x: auto;
      -webkit-overflow-scrolling: touch; 
      gap: 16px;
      padding: 20px;
      transition: gap 0.3s ease;
    }

    .cards::-webkit-scrollbar {
      height: 10px;
    }
    .cards::-webkit-scrollbar-track {
      background: rgba(0,0,0,0.3);
      border-radius: 5px;
    }
    .cards::-webkit-scrollbar-thumb {
      background-color: #8a7a5a;
      border-radius: 5px;
      border: 1px solid #c0a070;
    }

    .card {
      position: relative;
      width: 140px;
      flex-shrink: 0;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
      background-color: rgba(0, 0, 0, 0.2);
      cursor: pointer;
      transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, width 0.3s ease;
    }
    .card:hover {
      transform: scale(1.15);
      z-index: 10;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    }
    .card.disabled {
      opacity: 0.3;
      pointer-events: none;
      background-color: rgba(0, 0, 0, 0.5);
    }
    .card.disabled:hover {
      transform: none;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    }

    .card img {
      width: 100%;
      height: auto;
      border-radius: 12px;
      display: block;
      opacity: 0.85;
      transition: opacity 0.2s ease-out;
    }
    .card:hover img {
        opacity: 1;
    }
    
    .winner-text {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 1rem;
      font-weight: 700;
      color: gold;
      text-shadow: 0 0 5px black;
    }
    .result-detail {
      font-family: 'MedievalSharp', cursive;
      font-size: 2.5rem; 
      font-weight: normal;
      margin-top: 15px;
      letter-spacing: 2px;
      transition: color 0.4s ease, text-shadow 0.4s ease, font-size 0.4s ease;
      margin-bottom: 75px; 
      line-height: 1.2;
    }

    #round-summary-container {
      margin-top: 75px;
      min-height: 150px;
    }
    .round-summary-panel {
      display: flex;
      justify-content: space-around;
      align-items: center;
      max-width: 900px;
      margin: 0 auto;
      padding: 20px;
      background-color: rgba(0, 0, 0, 0.4);
      border: 1px solid #555;
      border-radius: 15px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.4);
      transition: all 0.4s ease;
    }
    .summary-col {
      display: flex;
      flex-direction: column;
      gap: 8px;
      text-align: center;
      flex-basis: 40%;
    }
    .summary-col.separator-col {
      flex-basis: 10%;
      font-size: 2rem;
      font-weight: 700;
      color: #888;
      transition: all 0.4s ease;
    }
    .col-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 10px;
      letter-spacing: 1px;
    }
    .played-card {
      font-size: 1.1rem;
      color: #ddd;
    }
    .played-card strong {
      color: #fff;
      font-weight: 700;
    }
    .round-points {
      font-size: 1.2rem;
      font-weight: 700;
      color: #5fde5f;
    }
    .total-score {
      font-size: 1.3rem;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #444;
      font-weight: 700;
    }

    .opponent-played-area {
      max-width: 800px;
      margin: 40px auto 0 auto;
      padding: 20px;
      background-color: rgba(255, 64, 89, 0.1);
      border: 1px solid rgba(255, 64, 89, 0.4);
      border-radius: 15px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    .opponent-hand-title {
      margin: 0 0 20px 0;
      font-family: 'MedievalSharp', cursive;
      font-size: 1.4rem;
      color: #ff9aab;
      font-weight: normal;
      letter-spacing: 1px;
      text-shadow: 0 0 6px #000;
    }
    .opponent-hand {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 10px;
      min-height: 60px;
    }
    .opp-card-img {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      background: #232;
      border: 2px solid #ff4059;
      object-fit: cover;
      box-shadow: 0 0 6px #ff4059bb;
      opacity: 0.93;
    }
    .opp-card-label {
      font-family: 'MedievalSharp', cursive;
      font-size: 0.8rem;
      color: #ff9aab;
      margin-top: 4px;
      font-weight: normal;
    }
    
    #game-over-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 200;
        text-align: center;
        padding: 20px;
        box-sizing: border-box;
    }

    #final-result-text {
        font-family: 'MedievalSharp', cursive;
        font-size: clamp(3rem, 10vw, 8rem);
        font-weight: normal;
        margin: 0;
        padding: 0;
        letter-spacing: 3px;
        animation: fadeInScale 1s ease-out;
    }

    #game-over-overlay .button-container {
        margin-top: 30px;
        animation: fadeIn 1s 0.5s ease-out backwards;
    }
    
    .game-over-button {
        padding: 12px 24px;
        font-size: 1.1rem;
        font-weight: 700;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        box-shadow: 0 0 10px gold;
        letter-spacing: 1px;
        margin: 10px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .game-over-button:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px gold;
    }

    #claim-button {
      background: gold;
      color: #000;
    }

    #play-again-button {
        background: #555;
        color: #fff;
        border: 2px solid #888;
        box-shadow: 0 0 10px #888;
    }
    #play-again-button:hover {
        background: #666;
        box-shadow: 0 0 15px #aaa;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes fadeInScale {
        from { opacity: 0; transform: scale(0.8); }
        to { opacity: 1; transform: scale(1); }
    }

    #sound-control-container {
        position: fixed;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 210;
    }

    #speaker-icon {
        font-size: 1.8rem;
        background-color: rgba(0, 0, 0, 0.5);
        border: 2px solid #8a7a5a;
        padding: 10px;
        cursor: pointer;
        border-radius: 10px 0 0 10px;
        text-shadow: 1px 1px 3px #000;
        transition: background-color 0.2s;
    }
    #speaker-icon:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    #sound-menu {
        position: absolute;
        right: 100%;
        top: 50%;
        background-color: rgba(42, 30, 14, 0.95);
        border: 2px solid #9a8a6a;
        border-radius: 8px;
        padding: 8px;
        width: 180px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        opacity: 0;
        transform: translateX(10px) translateY(-50%);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    #sound-menu.visible {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
        pointer-events: auto;
    }

    .sound-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px;
        color: #c0b090;
        cursor: pointer;
        border-radius: 5px;
        font-size: 1rem;
        transition: background-color 0.2s;
    }
    .sound-menu-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .menu-icon {
        font-size: 1.2rem;
        width: 25px; 
        text-align: center;
    }

    /* --- RESPONSIVE DESIGN --- */
    @media (max-width: 768px) {
      .site-logo {
        max-width: 250px;
      }
      .site-tagline {
        font-size: 1rem;
      }
      body {
        --selected-card-size: 180px;
      }
      #game-area {
        padding: 0 15px;
      }
      .result-detail {
        font-size: 2rem;
        margin-bottom: 50px;
      }
      .round-summary-panel {
        flex-direction: column; 
        gap: 25px;
        padding: 15px;
        max-width: 95%; 
      }
      .summary-col {
        flex-basis: 100%;
      }
      .summary-col.separator-col {
        display: none; 
      }
      .opponent-played-area {
        max-width: 95%;
      }
    }
    @media (max-width: 480px) {
      .site-logo {
        max-width: 200px;
      }
      body {
        --selected-card-size: 130px;
      }
      #game-area {
        padding: 0 10px;
      }
      .cards {
        display: flex;
        justify-content: center;
        overflow-x: visible;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 20px 5px;
      }
      .card {
        width: 60px;
      }
      .card:hover {
        transform: scale(1.5);
      }
      .result-detail {
        font-size: 1.8rem;
        margin-bottom: 40px;
      }
      .identity-bar {
        font-size: 1.1rem;
      }
      .vs-label, .col-title, .total-score {
        font-size: 1.1rem;
      }
      .played-card, .round-points, .opp-card-label {
        font-size: 1rem;
      }
      #round-summary-container {
        margin-top: 50px;
      }
      .opponent-hand-title {
        font-size: 1.3rem;
      }
    }