*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --b: #1c1210;
  --bc: rgba(28, 18, 16, 0.95);
  --g1: #c9a96e;
  --g2: #e2c898;
  --g3: #9a7a4a;
  --w: #f5f0eb;
  --m: rgba(245, 240, 235, 0.55);
  --bb: #2e1f1a;
  --bd: rgba(201, 169, 110, 0.25);
  --rp: 32px;
  --rb: 60px;
  --hd: 1.5s;
  --f: 'Outfit', system-ui, sans-serif;
}

html, body { height: 100%; margin: 0; }

body {
  background-color: var(--b);
  color: var(--w);
  font-family: var(--f);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 16px);
  overflow: hidden;
}

.bg-w {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-i {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) brightness(0.6);
  transform: scale(1.1);
}

.bg-o {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--b) 100%);
  opacity: 0.8;
}

.g {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.p {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  padding: 16px;
  transition: filter 0.5s, transform 0.5s;
}

body.v-active .p { filter: blur(10px); transform: scale(0.95); pointer-events: none; }

.c {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: rev 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rev {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pw {
  position: relative;
  width: 100%;
  border-radius: var(--rp);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.ph {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pv {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(28, 18, 16, 0.9));
}

.n {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--w);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hb {
  position: relative;
  width: 100%;
  height: 64px;
  border-radius: var(--rb);
  border: 1px solid var(--bd);
  background: var(--bb);
  color: var(--w);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  overflow: hidden;
  user-select: none;
  transition: all 0.3s;
}

.hbf {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--g3), var(--g1), var(--g2));
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0.3;
}

.hb.is-holding .hbf { transform: scaleX(1); transition: transform var(--hd) linear; }
.hb.is-done .hbf { opacity: 0.5; transform: scaleX(1); }

.hbt, .hba { position: relative; z-index: 3; }

.v-w {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(15px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

body.v-active .v-w { opacity: 1; pointer-events: auto; }

.v-c {
  background: var(--bb);
  border: 1px solid var(--bd);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s;
}

body.v-active .v-c { transform: translateY(0); }

.v-t {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 32px;
}

.v-b {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v-btn {
  width: 100%;
  height: 56px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.v-btn-p {
  background: var(--w);
  color: var(--b);
}

.v-btn-p:hover { transform: scale(1.02); background: #fff; }

.v-btn-s {
  background: transparent;
  color: var(--m);
  border: 1px solid rgba(245, 240, 235, 0.1);
}

.v-btn-s:hover { color: var(--w); border-color: rgba(245, 240, 235, 0.3); }

@media (max-height: 500px) and (orientation: landscape) {
  .c { flex-direction: row; max-width: 600px; }
  .pw { width: 180px; }
  .v-c { padding: 24px; }
  .v-t { margin-bottom: 20px; }
  .v-b { flex-direction: row; }
}
