body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #44475a;
    padding-bottom: 48px;
    overflow-x: hidden; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;  
    align-items: center;   
    background-color: #44475a; /* slate grey */
    padding-bottom: 48px;
    z-index: 1;
}

.header {
    font-size: 3em;
    color: pink;
    margin-top: 100px;
    margin-bottom: 8px;
    z-index: 4;
}

.paragraph {
    font-size: 1.6em;
    color: pink;
    margin-bottom: 24px;
    z-index: 4;
}

.cat-name-text {
    font-family: monospace;
    color: pink;
    padding: 2px 20px;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0;
    border: 1px solid pink;
    background: rgba(255, 252, 252, 0.096);
    border-radius: 18px;
    cursor: pointer;
    text-align: center;
    user-select: none;
    z-index: 4;
}

.cat-name-edit {
    font-family: monospace;
    font-size: 2em;
    padding: 2px 20px;
    border-radius: 18px;
    border: 1px solid pink;
    font-weight: bold;
    text-align: center;
    color: pink;
    background: rgba(255, 252, 252, 0.096);
    outline: none;
    margin-bottom: 0; /* got to be a better way to keep this aligned */
    margin-top: 20px;
    z-index: 4;
}

.main-cat {
    width: 256px;
    height: 256px;
    flex-shrink: 0;
    touch-action: manipulation;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 3072px 256px;
    cursor: pointer;
    display: block;
    transition: transform 0.12s cubic-bezier(.42,0,.58,1);
    z-index: 2;
    -webkit-tap-highlight-color: transparent; 
    outline: none;                            
    user-select: none;                       
    -webkit-user-select: none;                
    -moz-user-select: none;                   
    -ms-user-select: none;  
}

.counter {
    margin-top: 24px;
    color: pink;
    font-size: 2em; 
    text-align: center;
    z-index: 4;
}

.bps-counter {
    font-size: 1.4em;
    margin-bottom: 24px;
    color: white;
    text-align: center;
    z-index: 4;
}

.collapse-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    color: #333;
    background: pink;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
    z-index: 4;
}

.upgrade-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 0 auto;
    background: transparent;
    padding-bottom: 16px;
    transition: max-height 0.6s, opacity 0.6s;
    overflow: hidden;
    z-index: 4;
}

.upgrade-list.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    padding-bottom: 0;
}

.upgrade-list-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    flex-shrink: 0;
    display: block;
}

.upgrade-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    background: pink;
    border-radius: 8px;
    margin-bottom: 10px;
}

.upgrade-btn {
    width: 80%;
    font-size: 1.2em;
    text-align: left;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #e3e2e8;
    color: #333;
    margin-right: 16px;
    cursor: pointer;
    touch-action: manipulation;
    opacity: 1;
    box-shadow: 0 2px 8px #0002;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.upgrade-btn:active {
    background: #d1ffe8;
}
.upgrade-btn:disabled {
    background: #ccc;
    color: #888;
    border: 1px solid #aaa;
    opacity: 0.6;
    cursor: not-allowed;
}

.upgrade-price {
    font-size: 0.95em;
    color: #666;
    display: block;
    margin-top: 2px;
}

.upgrade-green {
    color: #53bd5f;
    font-weight: bold;
}

.upgrade-counter {
    padding: 16px 16px;
    font-size: 1.6em;
    color: #333;
    background: #e3e2e8;
    box-shadow: 0 2px 8px #0002;
    border-radius: 8px;
    min-width: 32px;
    text-align: right;
    margin-right: 6px;
}

.upgrade-section {
    width: 100%;
    max-width: 400px;
    margin: 12px auto;
    z-index: 4;
}

.floating-icons {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 3;
}

.floating-icons.left {
    left: 0;
}

.floating-icons.right {
    right: 0;
}

.upgrade-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    transition: transform 0.8s cubic-bezier(.42,0,.58,1);
    will-change: transform, top, left;
    z-index: 3;
}

.lucky-fish, .golden-fish {
    transition: width 0.08s linear, height 0.08s linear;
    pointer-events: auto;
    cursor: pointer;
}

.lucky-fish-timer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e3e2e8;
    border: 4px dashed pink;
    color: #333;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 10;
    text-align: center;
    letter-spacing: 0.4px;
    pointer-events: none;
}

.danger-reset-btn {
    width: 100%;
    max-width: 300px;    
    max-height: 80px;
    margin: 64px auto 48px auto;
    padding: 8px;
    font-size: 1.3em;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0002;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;    
    transition: background 0.2s;
    z-index: 4;
}
.danger-reset-btn:active {
    background: #b71c1c;
}

.bottom-spacer {
    width: 100%;
    height: 24px;
    flex-shrink: 0;
}

.click-popup {
    position: absolute;
    pointer-events: none;
    font-size: 1.6em;
    color: pink;
    font-weight: bold;
    z-index: 10;
    opacity: 1;
    transform: translateY(0);
    transition: transform 1.3s cubic-bezier(.42,0,.58,1), opacity 1.3s;
    text-shadow: 0 4px 8px #0006;
    z-index: 10;
}


@media (max-width: 600px) {
  html, body {
    font-size: 18px;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  body {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0 12px; 
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  .header {
    font-size: 2.2em;
    margin-top: 24px;
    margin-bottom: 8px;
    text-align: center;
    z-index: 4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .paragraph {
    font-size: 1.4em;
    margin-bottom: 12px;
    text-align: center;
    z-index: 4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .cat-name-text,
  .cat-name-edit {
    font-size: 1.1em;
    padding: 4px 10px;
    margin-top: 6px;
    z-index: 4;
  }
  .main-cat {
    width: 70vw;
    height: 70vw;
    max-width: 256px;
    max-height: 256px;
    min-width: 128px;
    min-height: 128px;
    margin: 0 auto 10px auto;
    -webkit-tap-highlight-color: transparent; 
    outline: none;
    z-index: 2;
  }
  .counter {
    font-size: 1.1em;
    margin-top: 10px;
    text-align: center;
    z-index: 4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .bps-counter {
    font-size: 0.9em;
    margin-bottom: 12px;
    text-align: center;
    z-index: 4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .upgrade-section,
  .upgrade-list {
    max-width: 98vw;
    width: 100%;
    margin: 8px auto;
    padding: 0;
    box-sizing: border-box;
    z-index: 4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .collapse-btn {
    width: 100%;
    margin-bottom: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 1em;
    font-weight: bold;
    box-sizing: border-box;
    display: block;
    text-align: left;
    z-index: 4;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .upgrade-row {
    padding: 4px;
    margin-bottom: 6px;
    font-size: 1em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .upgrade-btn {
    font-size: 1em;
    padding: 6px 6px;
    width: 80%;
    margin-right: 6px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .upgrade-counter {
    font-size: 1.2em;
    font-weight: bold;
    padding: 6px 8px;
    min-width: 18px;
    margin-right: 2px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .upgrade-list-icon,
  .upgrade-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
  }
  .floating-icons {
    width: 60px !important; 
    min-width: 60px !important;
    max-width: 60px !important;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .floating-icons.left {
    left: 0 !important;
  }
  .floating-icons.right {
    right: 0 !important;
  }
  .danger-reset-btn {
    font-size: 1em;
    padding: 6px;
    margin: 16px auto 16px auto;
    max-width: 92vw;
    z-index: 4;
  }
  .lucky-fish-timer {
    font-size: 1em;
    padding: 6px 12px;
    top: 6px;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .click-popup {
    font-size: 1em;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
}