/* body { text-align: center; background: #222; color: white; }
#app {
        width: 90vw;
        height: 70vh;
        background: var(--bg-color);
        border: var(--primary-border-width) solid var(--border-color);
}
#rollBtn { padding: 10px 20px; font-size: 20px; cursor: pointer; }
.flexbox {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
} */


/* Improve page look */
body {
        margin: 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: var(--background-color);
        color: var(--text-color);
}
      
h1 {
        margin-bottom: 20px;
        text-shadow: 0 0 10px var(--titlebar-glow-color);
}

.domcontrols,
.subcontrols {
    display: none;
}
      
      /* Dice container */
.app {
        width: 100%;
        margin-bottom: 20px;
        border-radius: var(--border-radius);
        background-color: var(--bg-color);
        border: var(--primary-border-width) solid var(--border-color);
        box-shadow: 0 0 15px var(--primary-color);
        margin: 10px;
        margin-right: 10px;
        margin-right: 0;
        height: 95%;
        /* min-width: 300px; */
        min-height: 200px;
}

#duel-dice {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
      
      /* Button styling */
.rollBtn {
        background-color: var(--button-bg-color);
        color: var(--button-font-color);
        border: var(--primary-border-width) solid var(--button-border-color);
        border-radius: var(--border-radius);
        font-size: 16px;
        font-weight: bold;
        transition: all 0.2s ease;
        box-shadow: 0 0 8px var(--button-hover-color);
        padding: 5px;
        margin: 15px 10px 5px 10px;
        width: 98%;
        margin: 10px;
}
      
.rollBtn:hover {
        background-color: var(--button-hover-color);
        box-shadow: 0 0 12px var(--button-hover-color);
}
      
.rollBtn:active {
        background-color: var(--button-active-color);
        transform: scale(0.97);
}

.flexbox {
        display: flex;
        align-items: center;
        flex-direction: column;
        animation: fadeIn 0.6s ease;
        width: 100%;
        /* height: 68%; */
        height: auto;
}

.flexrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-evenly;
  height: 100%;
  margin: 10px;
}

.sidebar {
  /* width: 20%; */
  /* height: 98%; */
  height: 450px;
  margin: 5px;
  overflow-y: auto;
  padding-left: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding-top: 10px;
}

.sidebar-item {
  padding: 8px;
  margin-bottom: 5px;
  background: var(--bg-color);
  color: var(--text-color);
  /* border: 1px solid #ddd;
  border-radius: 5px; */
  font-size: 14px;
}
.sidebar-header {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}
.sidebar-top {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


.player-box {
    /* width: 100%; */
    background: var(--bg-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.player-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.captured-pieces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 30px;
}

.captured-pieces img {
    width: 20px;
    height: 20px;
    margin: 2px;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-drag: none;
    filter:
      drop-shadow(1px 0 white)
      drop-shadow(-1px 0 white)
      drop-shadow(0 1px white)
      drop-shadow(0 -1px white);
}

.spare-pieces-7492f img {    
    /* drop-shadow border effect */
    filter:
      drop-shadow(1px 0 white)
      drop-shadow(-1px 0 white)
      drop-shadow(0 1px white)
      drop-shadow(0 -1px white);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    overflow: auto;
}

.modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    width: 350px;
    margin: 10% auto;
    text-align: left;
    max-width: 90%;
    border: var(--primary-border-width) solid var(--border-color);
    overflow-y: auto;
    max-height: 60vh; 
}

.modal-buttons {
    margin-top: 15px;
    text-align: right;
}

.modal-buttons button {
    margin-left: 10px;
}


@keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
}





input, textarea, select {
        padding: 5px;
        margin-top: 5px;
        border: var(--primary-border-width) solid var(--border-color);
        border-radius: var(--border-radius);
        background: var(--background-color);
        color: var(--text-color);
        box-sizing: border-box;
        margin: 5px;
      }
      
      #wheel-title-display {
        display: flex;
        color: var(--text-color);
        font-size: 2rem;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        text-align: center;
      }
      
      .create-div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        max-width: 600px;
        margin: auto;
        background: var(--button-bg-color);
        border-radius: var(--border-radius);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        border: var(--primary-border-width) solid var(--border-color);
        color: var(--button-font-color);
        padding: 10px 0;
      }
      
      #wheelOfFortune:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
      }
      
      #wheel-container:not(:has(#wheel-creator)) {
        justify-content: center;
        width: auto;
      }
      
      #wheel-container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        width: auto;
        height: 100%;
        padding-right: 20px;
        left: 10px;
      }
      
      #wheel-creator {
        display: flex;
        flex-direction: column;
        width: 45%;
        min-width: 400px;
        max-height: 100%;
        padding: 20px;
        background-color: var(--background-color);
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
        border-radius: var(--border-radius);
        z-index: 1;
        margin-right: 10px;
        color: var(--text-color);
        border: var(--primary-border-width) solid var(--border-color);
      }
      
      #title-container,
      #add-segment-container {
        background: var(--background-color);
        padding: 10px 0;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
      }
      
      #segment-list-container {
        background-color: var(--grid-bg-color);
        flex: 1;
        overflow-y: auto;
        min-height: 300px;
        max-height: calc(60vh - 200px);
        padding: 10px 0;
      }
      
      .segment {
        display: grid;
        grid-template-columns: 20px 1fr auto;
        gap: 1rem;
        align-items: center;
        padding: 0.5rem;
        background-color: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        color: var(--text-color);
      }
      
      #wheelOfFortune {
        position: relative;
        flex-shrink: 0;
        width: 100%;
        aspect-ratio: 1;
        background: var(--bg-color);
        border-radius: 50%;
        box-shadow: 0px 0px 20px 1px var(--primary-color);
        z-index: 2;
        padding: 10px;
        box-sizing: border-box;
        overflow: hidden;
      }
      
      #wheel {
        display: block;
        width: 100%;
        height: 100%;
      }
      
      #spin {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        font-weight: bold;
        user-select: none;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20%;
        height: 20%;
        max-width: 100px;
        max-height: 100px;
        transform: translate(-50%, -50%);
        background: var(--bg-color);
        color: var(--text-color);
        box-shadow: 0 0 0 8px var(--primary-color),
                    0 0px 15px 10px rgba(0, 0, 0, 0.8);
        border-radius: 50%;
        z-index: 2;
      }
      
      
      /* Adjust the pointer triangle to remain proportional */
      #spin::after {
        content: "";
        position: absolute;
        top: -17px;
        border: 12px solid transparent;
        border-bottom-color: var(--primary-color); /* white -> var */
        border-top: none;
      }
      
      /* Title Section */
      #title-section {
        color: var(--text-color);
        margin-bottom: 20px;
        padding: 10px;
      }
      
      #bg-color-pickers,
      #font-color-pickers {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
      }
      
      .color-picker-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
      
      .color-picker-group input[type="color"] {
        width: 30px;
        height: 30px;
        cursor: pointer;
        border: var(--primary-border-width) solid var(--border-color);
        border-radius: var(--border-radius);
        transition: border-color 0.3s;
      }
      
      .color-picker-group input[type="color"]:hover {
        border-color: #888; /* Optional: you can define a --hover-border-color if you want */
      }
      
      .color-picker-group button {
        background-color: #e74c3c; /* Consider adding a variable for delete/danger buttons */
        color: var(--text-color);
        border: none;
        border-radius: calc(var(--border-radius) / 2);
        cursor: pointer;
        margin-right: 5px;
        font-size: 0.575rem;
        transition: background-color 0.3s;
      }
      
      .color-picker-group button:hover {
        background-color: #c0392b; /* Same here for hover-danger if needed */
      }
      
      input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 4px;
        background: var(--border-color);
        border-radius: 2px;
        outline: none;
      }
      
      input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
      }
      
      
      .fontslider {
        width: 170px;
      }
      
      .edit-div {
        display: flex;
        gap: 10px;
        margin-left: auto;
      }
      .edit-button {
        cursor: pointer;
        font-weight: bold;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        text-align: center;
        line-height: 20px;
        margin-left: 10px;
        color: var(--text-color);
        display: inline-block;
        font-size: 30px;
        justify-content: center;
        align-items: center;
        display: flex;
        margin-left: auto;
      }
      .edit-button a {
        text-decoration: none;
        color: var(--text-color);
      }
      
      /* Main container */
      #wheel-mini {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: auto;
        background: var(--bg-color);
        border-radius: var(--border-radius);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        border: var(--primary-border-width) solid var(--border-color);
        min-width: 400px;
        min-height: 500px;
        width: 80vw;
        /* height: 90vh; */
        max-width: 800px;
      }
      
      .topflex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 45px;
      }
      
      /* Profile & Title Section */
      #wheel-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: 50px;
        background: var(--primary-color);
        border-radius: var(--border-radius);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        border-bottom: var(--primary-border-width) solid var(--border-color);
      }
      
      #wheel-header-box {
        height: 50px;
        width: 100%;
        box-sizing: border-box;
      }
      
      .profile-section {
        display: flex;
        align-items: center;
      }
      
      .profile-pic {
        width: 50px;
        aspect-ratio: 1 / 1;
        max-width: 100px;
        max-height: 100px;
        border-radius: 50%;
        border: var(--secondary-border-width) solid var(--profile-border-color);
        background: #888; /* fallback for no image */
        overflow: hidden;
        display: flex;
        margin-right: 10px;
        justify-content: center;
        align-items: center;
        box-shadow: 3px 3px 5px 1px var(--bg-color);
      }
      
      .profile-pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      
      /* Username */
      .username a {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--link-color);
        text-decoration: none;
        margin-bottom: 10px;
      }
      
      /* Wheel Title */
      #wheel-title-display {
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        color: var(--text-color);
        width: 50%;
        left: 25%;
      }
      
      
      /* Wheel Container */
      #wheel-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 20px;
      }
      .flex-container {
        display: flex;
        margin-right: 10px;
      }
      .column {
        flex-direction: column;
      }
      
      /* Wheel */
      #wheelOfFortune {
        position: relative;
        /* left: 10px; */
      }
      
      /* Wheel Result Display */
      #wheel-result {
        pointer-events: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: var(--background-color);
        color: var(--text-color);
        border: var(--secondary-border-width) solid var(--border-color);
        padding: 15px 20px;
        font-size: 1.5rem;
        font-weight: bold;
        border-radius: var(--border-radius);
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        text-align: center;
        width: 80%;
        min-height: 30px;
        z-index: 999;
        max-width: 800px;
      }
      
      /* Input Groups */
      .input-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        justify-content: space-between;
      }
      
      .input-group > div {
        display: flex;
        flex-direction: column;
        min-width: 100px;
        flex: 1;
      }
      
      .smallinput {
        width: 60px;
        background: var(--bg-color);
        color: var(--text-color);
        border: var(--primary-border-width) solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 5px;
      }
      
      /* Delete Button */
      button.delete {
        background-color: #cc2e2e;
        color: var(--button-font-color);
        padding: 6px 10px;
        border-radius: var(--border-radius);
        font-size: 0.9rem;
        border: none;
        cursor: pointer;
      }
      
      button.delete:hover {
        background-color: #e44242;
      }
      
      /* Controls Section */
      .controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
      }
      
      /* General Button Styles */
      button {
        padding: 10px 15px;
        font-size: 1rem;
        background-color: var(--button-bg-color);
        color: var(--button-font-color);
        border: var(--primary-border-width) solid var(--button-border-color);
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: background-color 0.3s ease;
      }
      
      button:hover {
        background-color: var(--button-hover-color);
      }
      
      button:active {
        background-color: var(--button-active-color);
      }
      #game-link-title {
        font-weight: bold;
      }
      #game-link {
        font-style:italic;
      }
      
      
      #info-icon {
        cursor: pointer;
        font-weight: bold;
        border: var(--primary-border-width) solid var(--border-color);
        border-radius: 50%;
        width: 35px;
        height: 35px;
        text-align: center;
        line-height: 20px;
        margin-left: 10px;
        background-color: var(--bg-color);
        color: var(--text-color);
        display: inline-block;
        font-size: 30px;
        justify-content: center;
        align-items: center;
        display: flex;
        box-shadow: 1px 1px 5px 1px var(--bg-color);
        margin-left: auto;
      }
      
      #game-info-popup, #tease-window, #login-window {
        position: absolute;
        top: 60px; /* adjust based on your layout */
        right: 20px;
        width: 50vw;
        background: var(--bg-color);
        border: var(--primary-border-width) solid var(--border-color);
        border-radius: var(--border-radius);
        box-shadow: 0px 4px 8px var(--bg-color);
        color: var(--text-color);
        z-index: 1000;
        padding: 15px;
        left: 25%;
        border-radius: 8px;
      }
      
      #game-info-content, #tease-content, #login-content {
        position: relative;
      }
      
      #close-info, #tease-close, #login-close {
        position: absolute;
        top: 0;
        right: 5px;
        cursor: pointer;
        font-size: 18px;
      }

      .roll-text {
        border: var(--primary-border-width) solid var(--border-color);
        height: 30%;
        width: 90%;
        margin: 5px;
        align-items: center;
        text-align: center;
        display: flex;
        justify-content: center;
        min-height: 120px;
      }

      .roll-amount {
        font-size: 3em;
      }


      #wheel-header-box {
            width: 100%;
            box-sizing: border-box;
            height: 50px;
        }
        #wheel-title-display {
            font-size: 1.5rem;
            font-weight: bold;
            text-align: center;
            color: var(--text-color);
            margin: 0;
            position: relative;
            top: -40px;
        }

        .flexbox {
            display: flex;
            align-items: center;
            flex-direction: column;
            animation: fadeIn 0.6s ease;
            width: 100%;
            height: auto;
            position: relative;
        }
        .textup {
          top: -20px;
        }
      
      
      /* Mobile Adjustments */
      /* @media (max-aspect-ratio: 1/1) { */
        #wheel-container {
          flex-direction: column;
          margin: 0;
          margin-top: 20px;
          margin-bottom: 20px;
        }
        #wheel-creator {
          width: 90vw;
          padding: 0;
          margin-bottom: 30px;
        }
      
        button {
          padding: 8px 12px;
          font-size: 0.9rem;
        }

        /* .sidebar{
          width: 40%
        } */
      
      
        #game-info-popup {
          position: absolute;
          top: 60px; /* adjust based on your layout */
          width: 85vw;
          left: 10px;
        }
        
        .flexrow {
          flex-direction: column;  /* stack vertically on tall/narrow */
        }

        .sidebar {
          width: 90%;  /* sidebar full width below */
          height: auto; /* shrink to content */
          flex-direction: row; /* make sidebar items flow horizontally */
          justify-content: space-around; /* spread items */
          padding: 0; /* remove left padding */
          margin: 0;
        }

        .sidebar-top {
          flex-direction: row; /* player boxes side by side */
          justify-content: center;
          gap: 10px;
        }

        .player-box {
          flex: 1 1 45%; /* let them each take ~half width */
          margin-bottom: 0; /* no vertical margin */
        }

        .button-bar {
          display: flex;
          justify-content: center;
          gap: 10px;
          margin-top: 10px;
        }
      
        #duel-dice {
          width: 95%;
        }

/*       
      }
       */
      
      

img,
canvas {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: none;
}

.content img {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version */
    pointer-events: none;        /* Prevent all interactions (optional) */
    touch-action: none;          /* Disable gestures like long press */
}


.board {
    width: min(58vh, 100%); /* Prevent it from blowing past viewport */
    height: auto;
    max-height: 85vh; /* Still keep some space below */
    /* margin: auto; */
}

.info {
    width: 400px;
    margin: auto;
}

.button-bar {
    /* width: 100%; */
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.button-bar-vert {
    /* width: 100%; */
    margin: auto;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
}




#duel-dice {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 20px;
    font-family: sans-serif;
}






    :root {
      --bg: #101010;
      --panel: #1b1b1b;
      --panel-2: #232323;
      --text: #f3f3f3;
      --muted: #b8b8b8;
      --border: #3f3f3f;
      --accent: #ffd34d;
      --danger: #ff7777;
      --good: #8dff8d;
    }

    * {
      box-sizing: border-box;
    }

  

    .app {
      width: min(1700px, 100%);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 360px minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }

    .app.sidebar-hidden {
      grid-template-columns: 1fr;
    }

    .panel {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
    }

    .sidebar {
      display: flex;
      flex-direction: column;
      gap: 14px;
      position: sticky;
      top: 14px;
    }

    h1, h2, h3 {
      margin: 0 0 10px 0;
      line-height: 1.15;
    }

    h1 {
      font-size: 22px;
    }

    h2 {
      font-size: 18px;
      margin-top: 2px;
    }

    h3 {
      font-size: 15px;
      color: var(--muted);
      font-weight: 700;
    }

    .subtle {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .row {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .row.wrap {
      flex-wrap: wrap;
    }

    .grid2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-bottom: 10px;
    }

    label {
      font-size: 13px;
      color: var(--muted);
      font-weight: 700;
    }

    input[type="text"],
    input[type="number"],
    input[type="range"],
    select,
    textarea,
    button {
      font: inherit;
    }

    input[type="text"],
    input[type="number"],
    select,
    textarea {
      width: 100%;
      background: var(--panel-2);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 9px 10px;
    }

    textarea {
      min-height: 100px;
      resize: vertical;
    }

    input[type="range"] {
      width: 100%;
    }

    button {
      background: #2c2c2c;
      color: var(--text);
      border: 1px solid #555;
      border-radius: 8px;
      padding: 9px 12px;
      cursor: pointer;
    }

    button:hover {
      background: #383838;
    }

    button.primary {
      background: #3e3520;
      border-color: #7d6730;
    }

    button.primary:hover {
      background: #4c4227;
    }

    button.danger {
      background: #412323;
      border-color: #824242;
    }

    button.danger:hover {
      background: #562b2b;
    }

    .statbar {
      display: flex;
      gap: 3px;
      margin-bottom: 12px;
      justify-content: center;
      gap: 20px;
    }

    .stat {
      display: flex;
      gap: 10px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 3px 5px;
      text-align: center;
    }

    .stat .k {
      display: block;
      font-size: 22px;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .stat-btn {
      display: flex;
      background: var(--panel);
      text-align: center;
    }

    .stat .v {
      font-size: 20px;
      font-weight: 700;
    }

    .rewards-wrap {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 12px;
    }

    .reward-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .reward-pill {
      padding: 6px 10px;
      border-radius: 999px;
      background: #2a2a2a;
      border: 1px solid #464646;
      font-weight: 700;
      font-size: 14px;
    }

    .main {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .game-layout {
      display: grid;
      grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(180px, 240px);
      gap: 12px;
      align-items: start;
    }

    .side-column {
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: sticky;
      top: 14px;
    }

    .hud-column .statbar {
      gap: 3px;
      margin-bottom: 12px;
      height: 40px;
      justify-content: center;
      gap: 20px;
    }

    .hud-column .stat {
      text-align: left;
    }

    .stat-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .mini-btn {
      padding: 5px 9px;
      font-size: 12px;
    }

    .drop-btn-inline {
      white-space: nowrap;
    }

    .controls-panel .row {
      justify-content: flex-start;
    }

    .rewards-side .reward-list {
      flex-direction: column;
      align-items: stretch;
    }

    .rewards-side .reward-pill {
      display: flex;
      justify-content: center;
      width: 100%;
      font-size: 16px;
      padding: 10px 12px;
    }

    .hide-sidebar-wrap {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 10px;
    }

    #plinko {
      display: flex;
      flex-direction: column;
      max-width: 100%;
    }

    .canvas-wrap {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
    }

    canvas {
      width: 100%;
      height: auto;
      max-height: 80vh;

      display: block;
      background: #000;
      border-radius: 10px;
      border: 2px solid #4e4e4e;
      cursor: crosshair;
    }

    .small {
      font-size: 12px;
      color: var(--muted);
    }

    .status {
      min-height: 20px;
      font-size: 13px;
      line-height: 1.4;
    }

    .status.good {
      color: var(--good);
    }

    .status.bad {
      color: var(--danger);
    }

    .mono {
      font-family: Consolas, Menlo, monospace;
      font-size: 12px;
    }


      #dropTickerBtn {
      font-size: 22px;
      padding: 16px 24px;
      font-weight: bold;
      background: #5a4a1f;
      border-color: #c9a84a;
      display: flex;
      align-items: center;
    }

    @media (max-width: 1300px) {
      .game-layout {
        grid-template-columns: 200px minmax(0, 1fr) 200px;
      }
    }

    @media (max-width: 1100px) {
      .app {
        grid-template-columns: 1fr;
      }

      .sidebar,
      .side-column {
        position: static;
      }

      .game-layout {
        grid-template-columns: 1fr;
      }

      .rewards-side .reward-list {
        flex-direction: row;
      }

      .hud-column .statbar {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 700px) {
      .statbar,
      .hud-column .statbar {
        grid-template-columns: repeat(2, 1fr);
      }

      .grid2 {
        grid-template-columns: 1fr;
      }

      .hud-column .statbar {
        gap: 0px;
        justify-content: space-around;
      }
      .stat {
        padding: 3px 5px;
      }
      #dropTickerBtn {
        padding: 16px 10px;
        font-size: 18px;
      }
      .stat .k {
          font-size: 18px;
      }

    }

  