/* 3 Moles Studio showcase — shared by index.html (Poker Bang!) and your-app.html (business app) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #000; color: #fff; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(1.1rem, env(safe-area-inset-top)) 1.5rem 1rem;
  font-size: .72rem; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.top a { color: inherit; text-decoration: none; letter-spacing: .2em; transition: color .2s; }
.top a:hover { color: #fff; }
#brand, #hero img { cursor: pointer; }
#brand { pointer-events: auto; transition: color .2s; } #brand:hover { color: #fff; }

#caption {
  position: fixed; left: 0; right: 0; bottom: 9vh; z-index: 2; text-align: center;
  pointer-events: none; opacity: 0; will-change: opacity, transform; text-shadow: 0 0 6px #000, 0 2px 22px #000, 0 0 40px #000;
}
#caption .n { display: block; font-size: .7rem; letter-spacing: .5em; color: rgba(255,255,255,.45); margin-bottom: .5rem; }
#caption .w { font-size: clamp(1.6rem, 4.2vw, 3rem); font-weight: 200; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; }

#hero {
  position: fixed; z-index: 2; opacity: 0; pointer-events: none; will-change: opacity, transform;
  left: 8vw; top: 50%; width: min(44rem, 50vw); transform: translateY(-50%);
}
#hero img { width: clamp(120px, 15vw, 210px); height: auto; display: block; mix-blend-mode: screen; margin: 0 0 .4rem -1.4rem; }
#hero h1 { font-size: clamp(1.9rem, 3.3vw, 3.3rem); white-space: nowrap; font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
#hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd60a, #ff9500 45%, #ff2d92); -webkit-background-clip: text; background-clip: text; color: transparent; }
#hero p { margin-top: 1.1rem; font-size: clamp(.95rem, 1.25vw, 1.1rem); line-height: 1.6; color: rgba(255,255,255,.68); max-width: 30rem; }
.cta { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn {
  display: inline-block; padding: .8rem 1.35rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  text-decoration: none; color: #000; background: #fff; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #ffe27a; }
a.chip { text-decoration: none; cursor: pointer; color: #fff; border-color: rgba(255,255,255,.45); padding: .78rem 1.35rem; font-size: .9rem; font-weight: 600; letter-spacing: 0; transition: border-color .2s, background .2s; }
a.chip:hover { border-color: #fff; background: rgba(255,255,255,.1); }
/* the contact form lives ON the phone: a real form, laid out at iPhone size and scaled onto the 3D screen */
#contactForm {
  position: fixed; left: 0; top: 0; width: 393px; height: 852px; transform-origin: 0 0; z-index: 4; margin: 0;
  padding: 150px 24px 46px; display: flex; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .3s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #fff;
}
#contactForm[hidden] { display: none; }
#contactForm.show { opacity: 1; pointer-events: auto; }
#contactForm .lead { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.62); margin-bottom: 4px; }
#contactForm label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
#contactForm label.grow { flex: 1; min-height: 0; }
#contactForm input, #contactForm textarea {
  font: inherit; font-size: 18px; letter-spacing: 0; text-transform: none; color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px 14px; outline: none; resize: none; -webkit-appearance: none;
}
#contactForm textarea { flex: 1; min-height: 0; }
#contactForm input:focus, #contactForm textarea:focus { border-color: #ffd60a; background: rgba(255,255,255,.12); }
#contactForm .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#contactForm .status { min-height: 20px; font-size: 14px; color: #ffd60a; }
#contactForm .status.ok { color: #48f08a; font-weight: 600; }
#contactForm .status a { color: #fff; }
#contactForm .actions { display: flex; gap: 12px; }
#contactForm .actions button { flex: 1; font: inherit; font-size: 17px; font-weight: 600; border: none; border-radius: 14px; padding: 15px 0; cursor: pointer; }
#pfCancel { color: #fff; background: rgba(255,255,255,.14); }
#pfSend { color: #000; background: #ffd60a; }
#pfSend:disabled { opacity: .6; cursor: default; }
/* "Play our web games" shows on phones and tablets too since 2026-09-20: Royale 21 and Pac-Man play on touch screens,
   and every tile on games.3moles.com says where it plays. */
body.contact #controls, body.late #controls, body.late #soundBig { display: none; }
#fade { position: fixed; inset: 0; z-index: 6; background: #000; opacity: 0; pointer-events: none; }
.chip { font-size: .78rem; letter-spacing: .08em; color: rgba(255,255,255,.6); padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }

#controls { position: fixed; right: 1.4rem; bottom: 1.2rem; z-index: 3; display: flex; gap: .6rem; align-items: center; }
#controls button {
  background: none; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.7);
  font: inherit; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .55rem .95rem; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s;
}
#controls button:hover { color: #fff; border-color: #fff; }
#controls button[hidden] { display: none; }
#controls #sound.wait, #controls #sound.wait:hover { color: #000; background: #ffd60a; border-color: #ffd60a; font-weight: 700; }
#soundBig {
  position: fixed; left: 50%; top: 68%; transform: translate(-50%, -50%); z-index: 4; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #000; background: #ffd60a;
  border: none; border-radius: 999px; padding: 1rem 1.9rem; box-shadow: 0 6px 30px rgba(0,0,0,.55);
  transition: opacity .5s, transform .5s; animation: pulse 1.8s ease-in-out infinite;
}
#soundBig:hover { background: #ffe27a; }
#soundBig.gone { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.85); visibility: hidden; transition: opacity .5s, transform .5s, visibility 0s .5s; }
@keyframes pulse { 50% { box-shadow: 0 6px 30px rgba(0,0,0,.55), 0 0 38px rgba(255,214,10,.75); } }
footer a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); pointer-events: auto; }
footer a:hover { color: #fff; border-color: #fff; }
footer { position: fixed; left: 1.5rem; bottom: 1.35rem; z-index: 2; font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,.32); }

/* portrait / phones: phone on top, words underneath */
@media (max-aspect-ratio: 1/1) {
  #hero { left: 50%; top: auto; bottom: 9.5vh; width: min(30rem, 86vw); transform: translateX(-50%); text-align: center; }
  #hero img { display: none; }
  #hero p { margin-left: auto; margin-right: auto; font-size: .92rem; margin-top: .7rem; }
  #hero h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); white-space: normal; }
  .cta { justify-content: center; margin-top: 1.1rem; }
  #caption { bottom: 4.5vh; }
  #caption .w { font-size: 1.5rem; }
  footer { left: 0; right: 0; text-align: center; bottom: .8rem; }
  #controls { bottom: 2.2rem; right: .6rem; gap: 0; }
  #controls button { border: none; }
}
.top, footer { opacity: 0; }                       /* shown with the end screen (showcase.js) */
body.static #hero, body.static .top, body.static footer { opacity: 1; pointer-events: auto; }
