/* ==========================================================================
   mspaint - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Theme Variables
   -------------------------------------------------------------------------- */
:root {
  --page: #0b0b0d;
  --text: #e6e6ea;
  --dim: #7b7b84;
  --chassis: #2b2b2e;
  --chassis-hi: #3c3c40;
  --chassis-lo: #17171a;
  --well: #050506;
  --key: #151517;
  --key-hi: #232327;
  --field: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #0a84ff;
  --dots: rgba(255, 255, 255, 0.10);

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --page: #d9dae0;
    --text: #1d1d1f;
    --dim: #62626a;
    --field: rgba(0, 0, 0, 0.06);
    --line: rgba(0, 0, 0, 0.16);
    color-scheme: light;
  }
}

:root[data-theme="dark"] {
  --page: #0b0b0d;
  --text: #e6e6ea;
  --dim: #7b7b84;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Global Resets & Scrollbars
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-y: scroll;
  overflow-x: clip;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html, body {
  min-height: 100%;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body {
  background: var(--page);
  color: var(--text);
  font: 14px/1.4 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   3. Intro Animation ("Hello" Draw-on Overlay)
   -------------------------------------------------------------------------- */
html.lock,
html.lock body {
  overflow: hidden !important;
  scrollbar-width: none !important;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(11, 11, 13, 0.18);
  -webkit-backdrop-filter: blur(26px);
  backdrop-filter: blur(26px);
}

.intro.out {
  animation: introOut 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes introOut {
  from {
    opacity: 1;
    -webkit-backdrop-filter: blur(26px);
    backdrop-filter: blur(26px);
  }
  to {
    opacity: 0;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

.hello__div {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

.hello__svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-miterlimit: 10;
  stroke-width: 48px;
  stroke-dasharray: 5800px;
  stroke-dashoffset: 5800px;
  animation: hello 3.4s cubic-bezier(0.55, 0.1, 0.25, 1) 0.35s forwards;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

@keyframes hello {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hello__svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------------------------------
   4. Background Grid & Top Navigation Bar
   -------------------------------------------------------------------------- */
.bg {
  --gl: rgba(255, 255, 255, 0.06);
  --gd: rgba(255, 255, 255, 0.3);
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--gd) 1px, transparent 1.6px),
    linear-gradient(var(--gl) 1px, transparent 1px),
    linear-gradient(90deg, var(--gl) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -22px -22px, 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.6) 38%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 100% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.6) 38%, transparent 80%);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: none;
  filter: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .bg {
    --gl: rgba(0, 0, 0, 0.07);
    --gd: rgba(0, 0, 0, 0.28);
  }
  :root:not([data-theme="dark"]) .topbar {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  :root:not([data-theme="dark"]) .brand img {
    filter: none;
  }
}

.bar {
  display: flex;
  gap: 8px;
  margin-left: auto;
  width: min(420px, 60%);
}

@media (max-width: 560px) {
  .brand span { display: none; }
  .bar { flex: 1; width: auto; }
}

.bar input {
  flex: 1;
  min-width: 0;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  font: inherit;
  outline: none;
  backdrop-filter: blur(8px);
}

.bar input:focus {
  border-color: var(--accent);
}

.bar button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  font: 500 13px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Scroll Track & Sticky Viewport
   -------------------------------------------------------------------------- */
.scroll-track {
  height: 380vh;
  position: relative;
  z-index: 1;
}

.sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: max(96px, env(safe-area-inset-top, 0px) + 88px);
}

/* --------------------------------------------------------------------------
   6. Hero Section & Buy Badge
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  margin-bottom: -10px;
  flex: 0 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.hero-title {
  font-size: clamp(42px, 5.2vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.1;
  margin: 12px 0 6px 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   7. 3D Jackpot Slot Machine
   -------------------------------------------------------------------------- */
.slot-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 18px 0;
  cursor: pointer;
  user-select: none;
}

.slot-prefix {
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.slot-reel-wrap {
  position: relative;
  height: 52px;
  overflow: hidden;
  perspective: 700px;
  perspective-origin: 50% 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 6%, black 94%, transparent 100%);
}

.slot-reel {
  position: relative;
  width: 100%;
  height: 52px;
  transform-style: preserve-3d;
  transition: transform 0.82s cubic-bezier(0.18, 1.35, 0.32, 1);
}

.slot-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 0 8px;
  box-sizing: border-box;
}

.slot-item.middle {
  color: #9ca3af;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.slot-item.suffix {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   8. Script Code Box & Copy Action Button
   -------------------------------------------------------------------------- */
.code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.code-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 16px;
  max-width: min(390px, 68vw);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.code-box:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.code-text {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: all;
}

.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.action-btn.discord-btn {
  color: #5865F2;
}

.action-btn.discord-btn:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #fff;
}

.tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #18181b;
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   MacBook 3D Stage & Keyboard styles are now in css/mac.css
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   11. Advertising Services Section
   -------------------------------------------------------------------------- */
.ads-section {
  position: absolute;
  bottom: max(32px, env(safe-area-inset-bottom, 0px) + 26px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: filter 0.2s ease;
}

.ads-inner {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.ads-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ads-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ad-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 8px 16px 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.ad-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(120, 100, 255, 0.18);
}

.ad-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ads-more {
  font-size: 13px;
  color: #71717a;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   12. Supported Executors Section
   -------------------------------------------------------------------------- */
.executors-section {
  position: absolute;
  bottom: max(30px, env(safe-area-inset-bottom, 0px) + 22px);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.executors-inner {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.executors-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.executors-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.executors-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.executor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.executor-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(120, 100, 255, 0.18);
}

.executor-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  transition: transform 0.25s ease;
}

.executor-item:hover .executor-icon-box {
  transform: scale(1.08);
}

.executor-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.executor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.executor-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.executor-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
}

.verify-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}

.executors-more {
  font-size: 13px;
  color: #71717a;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .ads-section {
    padding: 0 16px;
    bottom: max(20px, env(safe-area-inset-bottom, 0px) + 16px);
  }
  .ads-list {
    gap: 12px;
  }
  .ad-item {
    font-size: 15px;
    gap: 8px;
    padding: 5px 10px;
  }
  .ad-icon {
    width: 24px;
    height: 24px;
  }

  .executors-section {
    padding: 0 16px;
    bottom: max(20px, env(safe-area-inset-bottom, 0px) + 16px);
  }
  .executors-list {
    gap: 10px;
  }
  .executor-item {
    padding: 6px 12px 6px 8px;
    gap: 8px;
  }
  .executor-icon-box {
    width: 32px;
    height: 32px;
    padding: 4px;
  }
  .executor-name {
    font-size: 14px;
  }
}

/* --------------------------------------------------------------------------
   13. Social Links Section
   -------------------------------------------------------------------------- */
.social-section {
  position: relative;
  z-index: 10;
  padding: 40px 24px 80px;
  display: flex;
  justify-content: center;
}

.social-inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.social-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.social-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(120, 100, 255, 0.18);
}

.social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-icon--rounded {
  border-radius: 12px;
  object-fit: cover;
  overflow: hidden;
}

.social-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  min-width: 0;
}

.social-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.social-url {
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 640px) {
  .social-section {
    padding: 24px 16px 64px;
  }
  .social-list {
    grid-template-columns: 1fr;
  }
}
