* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 24px;
  align-items: start;
  padding: 56px 56px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -1px;
}

.subtitle {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.25;
  max-width: 720px;
  white-space: pre-line; /* keeps line breaks like your image */
}

/* mrbeast image below intro text */
.mrbeast {
  display: block;
  margin: 28px auto 0;
  width: 520px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* iframe area */
.frame-wrap {
  width: 680px;
  max-width: 100%;
}

.frame-wrap iframe {
  width: 100%;
  height: 520px;
  border: none;
}

/* custom cursor */
@media (hover: hover) {
  body {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: transform 120ms ease, opacity 120ms ease;
    will-change: transform, opacity;
  }
}

@media (hover: none) {
  .custom-cursor { display: none; }
}

/* right side image */
.right {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.smiley {
  width: 420px;
  max-width: 100%;
  height: auto;
  transition: transform 220ms ease;
  transform-origin: center center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.smiley:hover {
  transform: scale(1.08);
}

/* spin animation when clicked */
.smiley.spin {
  animation: spin 700ms linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* mobile */
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

  .right {
    padding-top: 10px;
    justify-content: flex-start;
  }

  .frame-wrap iframe {
    height: 420px;
  }
}

/* socials: fixed links bottom-right */
.socials {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10000;
}
.socials a {
  display: inline-block;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  box-shadow: none;
  transition: none;
}
.socials a img {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(100%) contrast(120%);
}

/* ensure default cursor doesn't reappear over links */
@media (hover: hover) {
  * { cursor: none !important; }
}

@media (max-width: 520px) {
  .socials { right: 12px; bottom: 12px; }
  .socials a { width: 40px; height: 40px; }
}
