/* --- 全局變數與設定 --- */
:root {
  --bg-color: #F2F0EB;
  /* 米灰白 */
  --ink-color: #1a1a1a;
  /* 深黑灰 */
  --stroke-width: 6px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  height: 100vh;
  background-color: var(--bg-color);
  color: var(--ink-color);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  touch-action: none;
  /* Prevent scrolling on mobile */
}

/* 噪點紋理效果 (Noise Texture) */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 99;
}

/* --- UI 層 --- */
.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.menu-icon {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bar {
  width: 100%;
  height: 3px;
  background: var(--ink-color);
  border-radius: 2px;
}

.hero-text {
  font-size: clamp(40px, 12vw, 80px);
  line-height: 0.9;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px;
  max-width: 80%;
  margin-top: 20px;
}

/* --- 互動按鈕 --- */
#start-btn {
  pointer-events: auto;
  background: var(--ink-color);
  color: var(--bg-color);
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  align-self: center;
  opacity: 0;
  transition: transform 0.2s;
  position: absolute;
  bottom: 10%;
  z-index: 20;
}

#start-btn:active {
  transform: scale(0.95);
}

/* --- 場景與 SVG --- */
.scene {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

svg {
  width: 85%;
  max-width: 500px;
  height: auto;
  overflow: visible;
}

/* 線條與填充定義 */
.line {
  fill: none;
  stroke: var(--ink-color);
  stroke-width: var(--stroke-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.fill-white {
  fill: #FFF;
  stroke: var(--ink-color);
  stroke-width: var(--stroke-width);
}

.fill-black {
  fill: var(--ink-color);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .ui-layer {
    padding: 16px;
    justify-content: flex-start;
    /* Align items to the top */
    gap: 30px;
    /* Add space between header and text */
  }

  .hero-text {
    font-size: 10vw;
    /* Smaller font size */
    max-width: 100%;
    margin-top: 0;
    /* Reset margin */
  }

  .header {
    font-size: 12px;
    flex-shrink: 0;
    /* Prevent header from shrinking */
  }

  svg {
    width: 100%;
    /* Full width on mobile */
    max-width: none;
  }

  #start-btn {
    bottom: 15%;
    /* Move button up slightly */
    padding: 12px 24px;
    font-size: 14px;
  }
}