/* ============ База: колонка под телефон, на десктопе — поля по бокам ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #0d0a14;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 62, 165, .18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, .14), transparent 45%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  font-family: -apple-system, 'PT Sans', 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
#app {
  position: relative;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.6);
}
#stage { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.screen { position: relative; min-height: 100%; }
[hidden] { display: none !important; }

/* панель: звук и призы */
#hud { position: absolute; top: max(8px, env(safe-area-inset-top)); right: 8px; z-index: 40; display: flex; gap: 6px; }
#hud button {
  border: 0; border-radius: 18px; height: 34px; min-width: 34px; padding: 0 10px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 15px; backdrop-filter: blur(6px);
}

/* помехи */
#static { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 90; image-rendering: pixelated; opacity: 0; pointer-events: none; transition: opacity .12s; }
#static.on { opacity: 1; pointer-events: all; }
#osd {
  position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; z-index: 95;
  font-family: 'Press Start 2P', monospace; font-size: 14px; color: #3cff5a;
  text-shadow: 0 0 6px #3cff5a, 2px 2px 0 #000; opacity: 0; transition: opacity .3s; pointer-events: none;
}
#osd.on { opacity: 1; }

/* общий слой эффектов */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 85; overflow: hidden; }
.confetto {
  position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); opacity: .9; }
}
.spark { position: absolute; animation: twinkle ease-in-out infinite; pointer-events: none; line-height: 1; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.15); } }
.trail { position: absolute; pointer-events: none; font-size: 16px; animation: trail .9s ease-out forwards; z-index: 30; transform: translate(-50%, -50%); }
@keyframes trail { to { opacity: 0; transform: translate(-50%, 20px) scale(.4) rotate(90deg); } }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

/* оверлеи */
.overlay {
  position: absolute; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: 20px 16px; background: rgba(10, 5, 20, .9); opacity: 0; transition: opacity .25s; overflow-y: auto;
}
.overlay.show { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  border: 0; border-radius: 14px; padding: 13px 20px; font-size: 16px; font-weight: 700; width: 100%;
}
.btn-gold { background: linear-gradient(#ffe27a, #d4a017); color: #4a2c00; box-shadow: 0 3px 0 #9a6f00; }
.btn-next { background: #fff; color: #1a1030; margin-top: 10px; }
.btn-light { background: #fff; color: #111; width: auto; }
.lb { max-width: 100%; text-align: center; }
.lb img { max-width: 100%; max-height: 72vh; border-radius: 10px; display: block; margin: 0 auto; }
.lb-cap { color: #ddd; font-size: 14px; margin: 10px 0 14px; }

/* приз раунда */
.prize { width: 100%; max-width: 360px; text-align: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.prize-head { font-family: Lobster, cursive; font-size: 34px; color: #ffd700; text-shadow: 0 2px 0 #7a0000, 0 0 18px rgba(255, 215, 0, .5); margin-bottom: 14px; }
.pc {
  position: relative; background: #fffaf0; color: #3b2a00; border-radius: 14px; padding: 22px 18px 24px;
  border: 3px dashed #b8860b; margin-bottom: 14px; overflow: hidden;
}
.pc-sub { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #b8860b; }
.pc-title { font-family: Lobster, cursive; font-size: 27px; line-height: 1.15; color: #7a0000; margin: 10px 0; }
.pc-fine { font-size: 13px; color: #6b5a2a; }
.pc-stamp {
  position: absolute; right: 10px; bottom: 8px; transform: rotate(-14deg); border: 2px solid #c0392b; color: #c0392b;
  border-radius: 8px; padding: 2px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .8;
}
.pc-xp { background: #ece9d8; border: 2px solid #0831d9; border-radius: 8px; color: #000; }
.pc-xp .pc-title { font-family: Tahoma, Verdana, sans-serif; font-size: 20px; color: #0a246a; font-weight: 700; }
.pc-xp .pc-sub { color: #0a5ad8; }
.pc-card { background: #c2187a; border: 3px solid #ffd700; color: #fff; }
.pc-card .pc-title { color: #ffd700; text-shadow: 0 2px 0 #7a0000; }
.pc-card .pc-sub, .pc-card .pc-fine { color: #ffe0f2; }
.pc-armenian { background: #f3e6c4; border: 3px double #8a5a1e; }
.pc-armenian .pc-title { font-family: Lora, serif; font-weight: 600; color: #4a2c10; font-size: 22px; }
.pc-fortune { background: #24103f; border: 2px solid #d4af37; color: #e9d9ff; }
.pc-fortune .pc-title { font-family: 'Marck Script', cursive; color: #d4af37; font-size: 32px; }
.pc-fortune .pc-sub, .pc-fortune .pc-fine { color: #b89cf0; }
.pc-mfc { background: #fff; border: 1px solid #b9c2d0; border-radius: 4px; }
.pc-mfc .pc-title { font-family: 'PT Sans', sans-serif; font-weight: 700; color: #1b3a8a; font-size: 22px; }
.pc-mfc .pc-sub { color: #546178; }
.prize-note { font-size: 14px; color: #f5e9ff; background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px; }
.prize-letter { margin-top: 16px; font-size: 14px; color: #e8dcff; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.prize-letter .pl {
  display: inline-flex; width: 56px; height: 64px; align-items: center; justify-content: center; border-radius: 10px;
  background: #fff; color: #1a1030; font-family: Lora, serif; font-size: 34px; font-weight: 600;
  box-shadow: 0 4px 0 #b8a6e0; animation: pop .5s .3s both cubic-bezier(.2, 1.4, .4, 1);
}

/* сумка призов */
.bag { width: 100%; max-width: 380px; }
.bag-head { font-family: Lobster, cursive; font-size: 30px; text-align: center; color: #ffd700; }
.bag-letters { display: flex; justify-content: center; gap: 6px; margin: 12px 0 16px; }
.bag-letters span { width: 38px; height: 44px; border-radius: 8px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-family: Lora, serif; font-size: 22px; }
.bag-item { margin-bottom: 16px; }
.bag-item .pc { margin-bottom: 8px; padding: 14px 14px 18px; }
.bag-item .pc-title { font-size: 21px; }
.bag-empty { text-align: center; color: #cfc2ea; }

/* ============ 0. Интро: выключенный телевизор ============ */
.st-intro .screen { background: #050505; }
.in { min-height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 28px; text-align: center; position: relative; }
.in-scan { position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 2px, rgba(255,255,255,.035) 2px 4px); pointer-events: none; }
.in-text { min-height: 130px; }
.in-l1 { font-family: Lora, serif; font-size: 38px; margin: 0 0 6px; color: #fff; }
.in-l2 { font-family: Lora, serif; font-style: italic; font-size: 19px; line-height: 1.35; color: #d8d0c4; margin: 0; }
.in-power {
  margin-top: 40px; width: 96px; height: 96px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #c0161b 60%, #7d0a0e);
  box-shadow: 0 0 0 6px #1d1d1d, 0 0 0 8px #333, 0 0 40px rgba(255, 40, 40, .45);
  font-size: 40px; color: #fff; animation: breathe 2s ease-in-out infinite;
}
.in-power:active { transform: scale(.94); }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px #1d1d1d, 0 0 0 8px #333, 0 0 60px rgba(255, 40, 40, .8); } }
.in-hint { margin-top: 18px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #8d8d8d; }
.in-restart { margin-top: 26px; background: none; border: 0; color: #777; text-decoration: underline; font-size: 14px; }

/* ============ 1. МашаОС XP ============ */
.xp { font-family: Tahoma, Verdana, 'PT Sans', sans-serif; color: #000; }
.xp-boot { min-height: 100dvh; min-height: 100vh; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }
.xp-logo { text-align: center; color: #fff; }
.xp-flag { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 64px; margin: 0 auto 10px; transform: skewY(-6deg); }
.xp-flag i { font-style: normal; font-size: 26px; line-height: 1; text-align: center; }
.xp-flag i:nth-child(1) { color: #f25022; } .xp-flag i:nth-child(2) { color: #7fba00; }
.xp-flag i:nth-child(3) { color: #00a4ef; } .xp-flag i:nth-child(4) { color: #ffb900; }
.xp-flag.small { width: 40px; margin: 0; }
.xp-flag.small i { font-size: 16px; }
.xp-word { font-size: 34px; font-weight: 700; font-style: italic; letter-spacing: -1px; }
.xp-word sup { font-size: 12px; margin-left: 1px; }
.xp-word b { color: #ff7a1a; font-size: 26px; margin-left: 6px; }
.xp-ed { font-size: 13px; color: #9fb8e8; margin-top: 2px; }
.xp-bar { margin-top: 46px; width: 150px; height: 18px; border: 2px solid #b2b2b2; border-radius: 5px; padding: 2px; overflow: hidden; position: relative; }
.xp-bar span { position: absolute; top: 2px; width: 10px; height: 10px; border-radius: 2px; background: linear-gradient(#a8c8ff, #2f5fd6); animation: xpload 1.6s linear infinite; }
.xp-bar span:nth-child(2) { animation-delay: .12s; } .xp-bar span:nth-child(3) { animation-delay: .24s; }
@keyframes xpload { from { left: -36px; } to { left: 160px; } }
.xp-copy { position: absolute; bottom: 24px; font-size: 11px; color: #777; }

.xp-login { min-height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; background: #5a7edc; }
.xl-top { height: 70px; background: #00309c; border-bottom: 2px solid #f9a85a; }
.xl-mid { flex: 1; padding: 34px 22px 60px; display: flex; flex-direction: column; justify-content: center; color: #fff; position: relative; }
.xl-brand { display: flex; align-items: center; gap: 10px; }
.xl-brand .xp-word { font-size: 28px; }
.xl-tip { font-size: 16px; margin: 18px 0 18px; color: #e4ecff; }
.xl-line { height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); margin-bottom: 26px; }
.xl-user { display: flex; gap: 14px; align-items: flex-start; padding: 10px; border-radius: 8px; cursor: pointer; }
.xl-user:active { background: rgba(255,255,255,.1); }
.xl-user img { width: 72px; height: 72px; object-fit: cover; border: 3px solid #fff; border-radius: 8px; flex: none; }
.xl-info { flex: 1; min-width: 0; }
.xl-name { font-size: 24px; margin-top: 6px; }
.xl-label { font-size: 13px; margin: 8px 0 4px; color: #e4ecff; }
.xl-row { display: flex; gap: 6px; align-items: center; }
.xl-input { flex: 1; min-width: 0; height: 34px; border: 1px solid #1d3e9e; border-radius: 3px; padding: 0 8px; font-size: 16px; font-family: inherit; }
.xl-go { width: 34px; height: 34px; border-radius: 4px; border: 1px solid #fff; background: linear-gradient(#5ec958, #2c8f27); color: #fff; font-size: 18px; flex: none; }
.xl-q { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #fff; background: #2850c4; color: #fff; font-weight: 700; flex: none; }
.xl-balloon { margin-top: 18px; background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.xl-welcome { margin: auto; font-size: 34px; font-style: italic; font-weight: 700; color: #fff; text-shadow: 2px 2px 0 #00309c; }
.xl-bottom { background: #00309c; border-top: 2px solid #f9a85a; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.xl-off { align-self: flex-start; background: none; border: 0; color: #fff; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.xl-off span { width: 26px; height: 26px; border-radius: 5px; background: linear-gradient(#f07a5a, #c4320e); border: 1px solid #fff; display: flex; align-items: center; justify-content: center; }
.xl-small { font-size: 11px; color: #9fb8e8; }

.xp-desk { position: relative; min-height: 100dvh; min-height: 100vh; overflow: hidden; overflow: clip; background: linear-gradient(#2a6cd8 0%, #6aa8ef 45%, #a9d1f7 60%); }
.xd-hill { position: absolute; left: -30%; right: -30%; bottom: -10%; height: 55%; border-radius: 50% 50% 0 0; background: radial-gradient(ellipse at 40% 20%, #79c043, #3f8e1f 60%, #2d6b14); }
.xd-icons { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; padding: 54px 8px 0; }
.xd-ic { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; padding: 4px; border-radius: 4px; }
.xd-ic:active { background: rgba(49, 106, 197, .5); }
.xd-ic .ico { font-size: 38px; line-height: 1; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.4)); }
.xd-ic .lbl { font-size: 12px; text-shadow: 1px 1px 1px #000; text-align: center; }
.xd-zip.pulse .ico { animation: zippulse 1s ease-in-out infinite; }
@keyframes zippulse { 50% { transform: scale(1.22) rotate(-6deg); } }
.xd-wins { position: absolute; inset: 0 0 34px 0; z-index: 5; pointer-events: none; overflow: hidden; overflow: clip; }
.xw { position: absolute; pointer-events: all; background: #ece9d8; border: 3px solid #0831d9; border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 3px 3px 10px rgba(0,0,0,.45); font-size: 13px; }
.xw-title { background: linear-gradient(#0a5ad8, #0842b0 50%, #0a5ad8); color: #fff; font-weight: 700; padding: 5px 4px 5px 8px; display: flex; align-items: center; justify-content: space-between; border-radius: 6px 6px 0 0; margin: 0 -3px; font-size: 13px; }
.xw-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xw-x { width: 24px; height: 22px; border-radius: 3px; border: 1px solid #fff; background: linear-gradient(#e57d63, #c4370c); color: #fff; font-size: 12px; line-height: 1; flex: none; }
.xw-body { padding: 12px; }
.xw-err { width: 78%; animation: pop .2s; }
.xe { display: flex; gap: 12px; align-items: center; }
.xe-ico { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #d8261b; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px #8a0f08; }
.xe-ico.info { background: #2459d6; font-family: Georgia, serif; font-style: italic; }
.xw-btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.xp-btn { min-width: 74px; padding: 4px 10px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ece9d8); font-family: inherit; font-size: 13px; color: #000; }
.xp-btn:active { background: #e3e1d5; }
.xw-app { left: 4%; right: 4%; top: 9%; animation: pop .2s; }
.xw-notes .xw-body, .xw-photo .xw-body { padding: 0; }
.np-menu { display: flex; gap: 12px; padding: 4px 8px; font-size: 12px; border-bottom: 1px solid #c8c5b5; }
.np-text { background: #fff; margin: 0; padding: 10px; font-family: 'Lucida Console', 'PT Mono', monospace; font-size: 12.5px; line-height: 1.7; border: 1px solid #7f9db9; min-height: 220px; }
.np-text div { padding-left: 1.4em; text-indent: -1.4em; }
.xw-photo img { display: block; width: 100%; max-height: 56vh; object-fit: cover; }
.ph-cap { padding: 8px 10px; font-size: 12px; text-align: center; }
.xp-pc .pc-row { margin-bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.xp-pc small { color: #555; }
.pc-bar { height: 12px; border: 1px solid #888; background: #fff; }
.pc-bar i { display: block; height: 100%; background: #2f8dd6; }
.pc-bar.full i { width: 100%; background: #d8261b; }
.xp-files { display: flex; flex-direction: column; gap: 8px; }
.xp-files > * { display: flex; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 4px; text-align: left; font-family: inherit; font-size: 13px; color: #000; }
.xp-files small { color: #666; }
.xf-pass { background: #dbe6fb !important; border-radius: 3px; }
.zp { text-align: center; }
.zp-ico { font-size: 40px; }
.zp p { margin: 8px 0; }
.zp-hint { color: #0a246a; font-size: 12px; min-height: 30px; }
.zp-form { display: flex; gap: 6px; margin-top: 8px; }
.zp-form input { flex: 1; min-width: 0; height: 32px; border: 1px solid #7f9db9; padding: 0 8px; font-size: 16px; font-family: inherit; }
.zp-bar { height: 18px; border: 1px solid #888; background: #fff; padding: 2px; margin: 12px 0; }
.zp-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #37b13c 0 9px, transparent 9px 11px); transition: width .07s; }
.xd-balloon { position: absolute; z-index: 8; left: 10px; right: 10px; bottom: 46px; background: #ffffe1; border: 1px solid #000; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #000; box-shadow: 2px 2px 6px rgba(0,0,0,.4); animation: pop .25s; }
.xd-balloon b { display: block; margin-bottom: 3px; }
.xd-menu { position: absolute; z-index: 9; left: 0; bottom: 34px; width: 78%; background: #fff; border: 2px solid #0831d9; border-radius: 8px 8px 0 0; overflow: hidden; color: #000; }
.xm-top { background: linear-gradient(#1c63d9, #3d84e8); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px; font-weight: 700; font-size: 16px; }
.xm-top img { width: 44px; height: 44px; object-fit: cover; border: 2px solid #fff; border-radius: 4px; }
.xm-list div { padding: 10px; font-size: 14px; border-bottom: 1px solid #eee; }
.xm-list i { color: #777; font-size: 12px; margin-left: 4px; }
.xm-off { width: 100%; background: #d3e5fa; border: 0; padding: 10px; text-align: right; font-size: 13px; }
.xd-task { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: 34px; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; background: linear-gradient(#3168d5, #245edb 15%, #1941a5); display: flex; align-items: center; justify-content: space-between; }
.xd-start { height: 34px; padding: 0 18px 0 14px; border: 0; border-radius: 0 12px 12px 0; background: linear-gradient(#5eb95a, #3c9a3c 40%, #2f7e2f); color: #fff; font-style: italic; font-weight: 700; font-size: 17px; text-shadow: 1px 1px 1px #1a4a1a; }
.xd-tray { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #0f8fe8; border-left: 1px solid #0a5ad8; color: #fff; font-size: 12px; }
form.shake { animation: shake .4s; }

/* ============ 2. Открытка-2007 ============ */
.c7 { background: radial-gradient(circle at 50% 0%, #ff4fb3, #c2187a 40%, #5a0b5e 100%); overflow: hidden; overflow: clip; padding-bottom: 40px; font-family: Verdana, sans-serif; }
.c7::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 220, 120, .55) 0 6px, transparent 22px) 0 0 / 90px 110px,
    radial-gradient(circle, rgba(255, 255, 255, .35) 0 3px, transparent 14px) 40px 60px / 120px 90px;
  animation: bokeh 6s linear infinite;
}
@keyframes bokeh { to { background-position: 0 220px, 40px -120px; } }
.c7-sparks { position: absolute; inset: 0; pointer-events: none; }
.c7-wrap { position: relative; z-index: 2; padding: 56px 16px 0; text-align: center; }
.c7-title {
  font-family: Lobster, cursive; font-weight: 400; font-size: 44px; line-height: 1.05; margin: 0;
  background: linear-gradient(#fff6a8, #ffd700 45%, #e08a00 55%, #fff2a0); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.5px #7a0000; filter: drop-shadow(0 3px 0 #4a0030) drop-shadow(0 0 14px rgba(255, 215, 0, .6));
  animation: wobble 2.4s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-2deg) scale(1.03); } }
.c7-heart { position: relative; width: 240px; height: 220px; margin: 22px auto 4px; }
.c7-heart-gold, .c7-heart-photo {
  position: absolute; inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 92S0 60 0 27C0 12 11 0 26 0c10 0 19 6 24 15C55 6 64 0 74 0c15 0 26 12 26 27 0 33-50 65-50 65z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 92S0 60 0 27C0 12 11 0 26 0c10 0 19 6 24 15C55 6 64 0 74 0c15 0 26 12 26 27 0 33-50 65-50 65z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.c7-heart-gold { background: conic-gradient(#fff6a8, #d4a017, #fff, #e08a00, #fff6a8); animation: spin 4s linear infinite; }
@keyframes spin { to { filter: hue-rotate(40deg) brightness(1.2); } }
.c7-heart-photo { inset: 10px; background-size: cover; background-position: center 30%; }
.c7-crown { position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 48px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) rotate(6deg) translateY(-4px); } }
.c7-e { position: absolute; font-size: 34px; animation: bob2 2s ease-in-out infinite; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
@keyframes bob2 { 50% { transform: translateY(-6px) rotate(8deg); } }
.c7-e.e1 { left: -14px; top: 40px; } .c7-e.e2 { right: -10px; top: 30px; animation-delay: .4s; }
.c7-e.e3 { right: -6px; bottom: 30px; animation-delay: .8s; } .c7-e.e4 { left: -6px; bottom: 26px; animation-delay: 1.2s; }
.c7-e.e5 { left: 50%; bottom: -16px; animation-delay: .6s; }
.c7-marquee { overflow: hidden; white-space: nowrap; margin: 14px -16px; background: rgba(0,0,0,.35); border-top: 2px dotted #ffd700; border-bottom: 2px dotted #ffd700; padding: 6px 0; }
.c7-marquee span { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; color: #fff700; font-weight: 700; font-size: 15px; text-shadow: 1px 1px 0 #c00; }
@keyframes marquee { to { transform: translateX(-100%); } }
.c7-machine { position: relative; margin: 26px 4px 0; padding: 22px 12px 18px; border-radius: 22px; background: linear-gradient(#7a0000, #3a0010); border: 4px solid #ffd700; box-shadow: 0 0 0 3px #7a0000, 0 10px 30px rgba(0,0,0,.5); }
.c7-lights { position: absolute; inset: 6px; display: flex; justify-content: space-between; pointer-events: none; }
.c7-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ffd700; box-shadow: 0 0 8px #ffd700; animation: blink .5s steps(2) infinite; }
.c7-lights i:nth-child(2n) { animation-delay: .25s; }
@keyframes blink { 50% { opacity: .2; } }
.c7-mtitle { font-family: Lobster, cursive; font-size: 28px; color: #ffd700; text-shadow: 0 2px 0 #000; margin-bottom: 12px; }
.c7-reels { display: flex; gap: 6px; }
.c7-reel { flex: 1; height: 92px; overflow: hidden; border-radius: 10px; background: #fff; border: 3px solid #d4a017; box-shadow: inset 0 10px 12px -8px rgba(0,0,0,.5), inset 0 -10px 12px -8px rgba(0,0,0,.5); }
.c7-strip { will-change: transform; }
.c7-item { height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 3px; }
.c7-item .em { font-size: 36px; line-height: 1.1; }
.c7-item .tx { font-size: 11px; line-height: 1.15; color: #7a0000; font-weight: 700; }
.c7-spin {
  margin-top: 16px; width: 100%; padding: 14px; border: 0; border-radius: 40px; font-family: Lobster, cursive; font-size: 26px; color: #7a0000;
  background: linear-gradient(#fff6a8, #ffd700 50%, #d4a017); box-shadow: 0 5px 0 #8a5a00, 0 0 20px rgba(255, 215, 0, .5);
}
.c7-spin:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a5a00; }
.c7-spin:disabled { filter: grayscale(.4); }
.c7-result { padding-top: 26px; scroll-margin-top: 50px; }
.c7-card { background: #ff3ea5; border: 6px solid #ffd700; border-radius: 18px; padding: 18px 14px 16px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.c7c-top { font-family: Lobster, cursive; font-size: 32px; color: #fff700; text-shadow: 2px 2px 0 #7a0000, -1px -1px 0 #7a0000; }
.c7c-photo { width: 150px; height: 150px; border-radius: 50%; margin: 12px auto; background-size: cover; background-position: center 30%; border: 5px solid #ffd700; box-shadow: 0 0 0 4px #7a0000; }
.c7c-emoji { font-size: 44px; letter-spacing: 6px; }
.c7c-text { font-family: Lobster, cursive; font-size: 23px; line-height: 1.25; margin: 10px 0; color: #fff; text-shadow: 2px 2px 0 #7a0000; }
.c7c-sign { font-size: 13px; color: #fff3b0; }
.c7-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.c7-btn { border: 0; border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 700; background: #fff; color: #c2187a; }
.c7-ok { background: linear-gradient(#ffa63d, #ee8208); color: #fff; text-shadow: 0 1px 0 #a35400; }
.ok { width: 100%; max-width: 360px; background: #fff; color: #333; border-radius: 14px; overflow: hidden; animation: pop .3s; }
.ok-head { background: #ee8208; color: #fff; font-weight: 700; padding: 12px 16px; font-size: 18px; }
.ok-body { padding: 14px 16px; }
.ok-st { margin: 0 0 10px; font-weight: 700; }
.ok-bar { height: 10px; border-radius: 6px; background: #f1e5d6; overflow: hidden; }
.ok-bar i { display: block; height: 100%; width: 0; background: #ee8208; }
.ok-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ok-vote { font-size: 14px; line-height: 1.35; animation: pop .3s; }
.ok-vote i { display: block; color: #777; }
.ok-5 { display: inline-block; background: #ee8208; color: #fff; border-radius: 6px; padding: 0 6px; font-weight: 700; }
.ok-actions { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.ok-actions .c7-btn:not(.c7-ok) { background: #f3f3f3; color: #333; }

/* ============ 3. Армянский комплимент ============ */
.am { background: #2a1608; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px); padding: 50px 14px 30px; min-height: 100%; }
.am-label { background: #f3e6c4; border-radius: 14px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.6); color: #4a2c10; }
.am-frame { position: relative; border: 3px double #8a5a1e; border-radius: 10px; padding: 18px 14px 14px; outline: 1px solid #c79a4a; outline-offset: -8px; }
.am-c { position: absolute; font-size: 22px; color: #8a5a1e; line-height: 1; }
.am-c.tl { top: 4px; left: 6px; } .am-c.tr { top: 4px; right: 6px; transform: scaleX(-1); }
.am-c.bl { bottom: 4px; left: 6px; transform: scaleY(-1); } .am-c.br { bottom: 4px; right: 6px; transform: scale(-1); }
.am-head { text-align: center; font-family: Lora, serif; font-weight: 600; font-size: 33px; line-height: 1; color: #6b1d10; }
.am-head small { display: block; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: #8a5a1e; margin: 4px 0; font-weight: 500; }
.am-stars { text-align: center; color: #c9962a; letter-spacing: 4px; font-size: 18px; margin: 4px 0 8px; }
.am-medals { display: flex; justify-content: center; gap: 10px; }
.am-medals span { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b0, #d4af37 55%, #9a7417); border: 1px solid #7a5a10; display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: 700; color: #4a3200; text-align: center; text-transform: uppercase; }
.am-tamada { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 12px; }
.am-tm-ph { width: 66px; height: 66px; border-radius: 50%; background-size: 190%; background-position: 50% 24%; border: 3px solid #c9962a; flex: none; }
.am-bubble { position: relative; flex: 1; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.35; min-height: 44px; box-shadow: 0 2px 0 #d9c69a; }
.am-bubble::before { content: ''; position: absolute; left: -8px; top: 18px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.am-bubble.pop { animation: pop .3s; }
.am-body { min-height: 200px; }
.am-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.am-progress i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #8a5a1e; }
.am-progress i.done { background: #8a5a1e; } .am-progress i.now { background: #c9962a; }
.am-qn { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #8a5a1e; }
.am-q { text-align: center; font-family: Lora, serif; font-weight: 600; font-size: 23px; line-height: 1.15; margin: 6px 0 14px; }
.am-opts { display: flex; flex-direction: column; gap: 8px; }
.am-opt { background: transparent; border: 1.5px solid #8a5a1e; border-radius: 12px; padding: 12px; font-size: 15px; color: #4a2c10; transition: background .2s, transform .2s; }
.am-opt.chosen { background: #6b1d10; color: #fff3d6; border-color: #6b1d10; transform: scale(1.03); }
.am-opt.modest { border-style: dashed; animation: shake .4s; }
.am-opt.upgraded { background: #c9962a; color: #2a1608; border-style: solid; font-weight: 700; animation: pop .4s; }
.am-opt s { opacity: .55; font-weight: 400; margin-right: 4px; }
.am-btn { width: 100%; border: 0; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; background: #6b1d10; color: #fff3d6; margin-top: 8px; }
.am-ghost { background: transparent; border: 1.5px solid #6b1d10; color: #6b1d10; }
.am-age { text-align: center; padding: 30px 0; }
.am-barrel { font-size: 64px; animation: rock 1s ease-in-out infinite; }
@keyframes rock { 50% { transform: rotate(10deg); } }
.am-years { font-family: Lora, serif; font-size: 21px; margin-top: 10px; }
.am-toast { font-family: Lora, serif; font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.4; color: #3a1a08; text-align: center; padding: 6px 4px 10px; min-height: 120px; }
.am-actions { display: flex; flex-direction: column; }
.am-foot { text-align: center; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8a5a1e; margin-top: 14px; }

/* ============ 4. Гадалка ============ */
.ft { background: radial-gradient(ellipse at 50% 0%, #4b1f86, #1a0a33 55%, #0a0414); color: #e9d9ff; overflow: hidden; overflow: clip; padding-bottom: 40px; }
.ft-stars { position: absolute; inset: 0; pointer-events: none; }
.ft-wrap { position: relative; z-index: 1; padding: 56px 16px 0; text-align: center; }
.ft-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #9cffb0; text-transform: uppercase; letter-spacing: 1.5px; }
.ft-online i { width: 8px; height: 8px; border-radius: 50%; background: #3cff5a; box-shadow: 0 0 8px #3cff5a; animation: blink 1s infinite; }
.ft-title { font-family: Lora, serif; font-weight: 500; font-size: 15px; margin: 10px 0 0; color: #cdb8f5; letter-spacing: 1px; }
.ft-title span { display: block; font-family: 'Marck Script', cursive; font-size: 58px; line-height: 1.1; color: #d4af37; text-shadow: 0 0 18px rgba(212, 175, 55, .6); }
.ft-services { font-size: 12px; color: #a58fd6; margin: 4px 0 18px; }
.ft-ball { position: relative; width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: 0 0 40px rgba(170, 120, 255, .7), inset 0 0 30px rgba(0,0,0,.6); animation: glow 3s ease-in-out infinite; }
.ft-ball::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -14px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.4); }
@keyframes glow { 50% { box-shadow: 0 0 70px rgba(200, 150, 255, .95), inset 0 0 30px rgba(0,0,0,.6); } }
.ft-ball-img { position: absolute; inset: 0; background-size: cover; background-position: center 30%; filter: saturate(1.3) hue-rotate(-10deg) blur(.4px); opacity: .9; animation: swirl 6s ease-in-out infinite; }
@keyframes swirl { 50% { transform: scale(1.12) rotate(4deg); filter: saturate(1.5) blur(1.2px); } }
.ft-ball-shine { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.75), transparent 22%), radial-gradient(circle, transparent 55%, rgba(80, 30, 160, .65)); }
.ft-say { font-family: Lora, serif; font-size: 17px; line-height: 1.35; margin: 22px 4px 18px; }
.ft-say b { color: #d4af37; }
.ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ft-card { border: 0; background: none; padding: 0; aspect-ratio: 2 / 3; perspective: 800px; transition: opacity .5s; }
.ft-card.dim { opacity: .25; pointer-events: none; }
.ft-inner { position: relative; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
.ft-card.open .ft-inner { transform: rotateY(180deg); }
.ft-back, .ft-face { position: absolute; inset: 0; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; border: 2px solid #d4af37; }
.ft-back { background: repeating-linear-gradient(45deg, #3d1a6e 0 8px, #34155f 8px 16px); display: flex; flex-direction: column; align-items: center; justify-content: space-around; color: #d4af37; font-size: 18px; box-shadow: inset 0 0 0 4px #24103f, inset 0 0 0 5px #d4af37; }
.ft-back .eye { font-size: 28px; }
.ft-card:not(.open):active .ft-inner { transform: scale(.95); }
.ft-face { transform: rotateY(180deg); background: #f3e6c4; display: flex; flex-direction: column; padding: 4px; color: #3d1a6e; }
.ft-num { font-family: Lora, serif; font-weight: 600; font-size: 12px; }
.ft-pic { flex: 1; background-size: cover; background-position: center; border: 1px solid #8a5a1e; border-radius: 4px; }
.ft-name { font-family: Lora, serif; font-weight: 600; font-size: 11px; line-height: 1.1; padding: 3px 0 1px; }
.ft-reading { margin-top: 18px; text-align: left; }
.ft-line { font-family: Lora, serif; font-size: 16px; line-height: 1.35; margin: 0 0 10px; animation: pop .3s; }
.ft-line b { color: #d4af37; }
.ft-final { margin-top: 14px; padding: 16px; border: 1px solid #d4af37; border-radius: 14px; background: rgba(20, 8, 40, .6); }
.ft-sum { font-family: Lora, serif; font-style: italic; font-size: 17px; line-height: 1.4; margin: 0 0 14px; min-height: 80px; }
.ft-btn { width: 100%; border: 0; border-radius: 30px; padding: 14px; font-size: 16px; font-weight: 700; background: linear-gradient(#f4d67a, #b8860b); color: #24103f; box-shadow: 0 0 22px rgba(212, 175, 55, .5); }

/* ============ 5. МФЦ любви ============ */
.mfc { background: #eef1f5; color: #1f2a3d; font-family: 'PT Sans', sans-serif; min-height: 100%; padding-bottom: 30px; }
.mf-head { display: flex; align-items: center; gap: 12px; padding: 54px 16px 14px; background: #1b3a8a; color: #fff; }
.mf-head b { display: block; font-size: 20px; }
.mf-head small { color: #b8c7ec; font-size: 12px; }
.mf-logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; color: #c0392b; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; }
.mf-logo::after { content: '♥'; position: absolute; right: -4px; top: -6px; color: #ff5c7a; font-size: 18px; }
.mf-body { padding: 16px; }
.mf-term-screen { background: #fff; border-radius: 14px; padding: 18px 14px; box-shadow: 0 2px 10px rgba(27, 58, 138, .12); display: flex; flex-direction: column; gap: 10px; }
.mf-term-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.mf-svc { display: flex; gap: 10px; align-items: center; border: 0; border-radius: 10px; padding: 16px 12px; font-size: 16px; font-weight: 700; text-align: left; background: #1b3a8a; color: #fff; }
.mf-svc:nth-child(3), .mf-svc:nth-child(4) { background: #dfe5f0; color: #1b3a8a; }
.mf-term-msg { margin-top: 12px; font-size: 15px; color: #1b3a8a; min-height: 20px; text-align: center; }
.mf-ticket { display: flex; justify-content: center; padding-top: 20px; }
.mf-t-paper { width: 220px; background: #fff; padding: 18px 14px 22px; text-align: center; font-family: 'PT Mono', monospace; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.15); animation: print .8s ease-out; clip-path: polygon(0 0, 100% 0, 100% 100%, 92% 97%, 84% 100%, 76% 97%, 68% 100%, 60% 97%, 52% 100%, 44% 97%, 36% 100%, 28% 97%, 20% 100%, 12% 97%, 4% 100%, 0 97%); }
@keyframes print { from { transform: translateY(-40px); opacity: 0; } }
.mf-t-paper small { color: #777; }
.mf-t-num { font-size: 46px; font-weight: 700; margin: 8px 0; }
.mf-t-queue { margin-top: 10px; color: #c0392b; }
.mf-board { margin-top: 20px; background: #111; color: #ffb000; font-family: 'Press Start 2P', monospace; font-size: 14px; text-align: center; padding: 16px 10px; border-radius: 8px; line-height: 1.6; animation: blink .4s 4 steps(2); }
.mf-board span { color: #3cff5a; }
.mf-board small { display: block; font-family: 'PT Sans', sans-serif; font-size: 13px; color: #ddd; margin-top: 6px; }
.mf-form { background: #fff; padding: 18px 14px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.08); border-top: 6px solid #1b3a8a; }
.mf-doc-title { text-align: center; font-size: 22px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.mf-doc-title small { display: block; font-size: 12px; text-transform: none; letter-spacing: 0; color: #667; font-weight: 400; }
.mf-f { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; }
.mf-f > span { font-weight: 700; color: #33415c; }
.mf-f input:not([type]), .mf-f input[name="name"] { height: 40px; border: 1px solid #9aa6bd; border-radius: 4px; padding: 0 10px; font-size: 16px; font-family: inherit; }
.mf-cb { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 3px 0; }
.mf-cb input { width: 20px; height: 20px; accent-color: #1b3a8a; }
.mf-must { margin-top: 16px; font-weight: 700; color: #1b3a8a; }
.mf-range { width: 100%; accent-color: #1b3a8a; }
.mf-note, .mf-ph-ok { color: #2e7d32; font-size: 13px; min-height: 16px; }
.mf-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mf-ph { aspect-ratio: 3 / 4; border: 2px solid #ccd3e0; border-radius: 4px; background-size: cover; background-position: center; }
.mf-ph.sel { border-color: #1b3a8a; box-shadow: 0 0 0 3px rgba(27, 58, 138, .3); }
.mf-sign { width: 100%; height: 130px; border: 1px dashed #1b3a8a; border-radius: 4px; background: #fafbff; touch-action: none; }
.mf-link { align-self: flex-end; background: none; border: 0; color: #1b3a8a; text-decoration: underline; font-size: 13px; }
.mf-err { color: #c0392b; font-size: 13px; min-height: 0; }
.mf-err:not(:empty) { margin-top: 4px; }
.mf-submit { width: 100%; margin-top: 20px; border: 0; border-radius: 8px; padding: 15px; background: #1b3a8a; color: #fff; font-size: 16px; font-weight: 700; }
.mf-ghost { background: #fff; color: #1b3a8a; border: 1.5px solid #1b3a8a; margin-top: 10px; }
.mf-review { text-align: center; padding: 40px 10px; font-size: 17px; }
.mf-term-days b { color: #2e7d32; }
.mf-spinner { width: 40px; height: 40px; margin: 20px auto; border: 4px solid #ccd3e0; border-top-color: #1b3a8a; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.mf-cert { position: relative; background: #fffef8; color: #1f2a3d; padding: 22px 16px 18px; border: 1px solid #c9cfdb; box-shadow: 0 6px 18px rgba(0,0,0,.12); overflow: hidden; }
.mf-c-head { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #1b3a8a; font-size: 14px; }
.mf-c-head small { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; color: #667; }
.mf-c-title { text-align: center; font-size: 24px; font-weight: 700; margin: 12px 0 14px; text-transform: uppercase; }
.mf-c-row { display: flex; gap: 12px; align-items: flex-start; }
.mf-c-photo { width: 84px; height: 112px; flex: none; background-size: cover; background-position: center; border: 1px solid #999; }
.mf-c-text { font-size: 15px; line-height: 1.4; }
.mf-c-small { font-size: 12px; color: #556; margin-top: 14px; line-height: 1.4; }
.mf-c-sign { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; font-size: 12px; color: #556; border-bottom: 1px solid #999; }
.mf-c-sign img { height: 50px; max-width: 60%; }
.mf-c-date { text-align: right; font-size: 13px; margin-top: 6px; font-family: 'PT Mono', monospace; }
.mf-stamp {
  position: absolute; right: 14px; top: 46%; padding: 8px 14px; border: 4px double #c0392b; border-radius: 10px; color: #c0392b;
  font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; transform: rotate(-16deg) scale(3); opacity: 0;
}
.mf-stamp.slam { animation: slam .35s cubic-bezier(.5, 0, .7, 1.4) forwards; }
@keyframes slam { to { transform: rotate(-16deg) scale(1); opacity: .88; } }
.mf-actions { margin-top: 4px; }

/* ============ 6. Финал ============ */
.fin { background: #f4efe6; color: #2c2a26; min-height: 100%; font-family: Lora, serif; }
.fin-lock { min-height: 100dvh; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px 40px; text-align: center; }
.fin-title { font-weight: 500; font-size: 34px; margin: 0; }
.fin-sub { font-size: 17px; color: #6b665c; margin: 6px 0 26px; font-style: italic; }
.fin-safe { width: 170px; height: 170px; border-radius: 22px; background: #5f5e5a; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); perspective: 600px; }
.fin-door { width: 100%; height: 100%; border-radius: 14px; background: linear-gradient(145deg, #8b8a84, #6a6964); display: flex; align-items: center; justify-content: center; transform-origin: left center; transition: transform 1.2s cubic-bezier(.6, 0, .3, 1); box-shadow: inset 0 0 0 2px #9d9c96; }
.fin-wheel { position: relative; width: 74px; height: 74px; border-radius: 50%; border: 5px solid #d8d6cf; transition: transform 1s; }
.fin-wheel i { position: absolute; left: 50%; top: 50%; width: 92px; height: 5px; margin: -2.5px 0 0 -46px; background: #d8d6cf; border-radius: 3px; }
.fin-wheel i:nth-child(2) { transform: rotate(60deg); } .fin-wheel i:nth-child(3) { transform: rotate(120deg); }
.fin-safe.opening .fin-wheel { transform: rotate(540deg); }
.fin-safe.opening .fin-door { transform: rotateY(-110deg); transition-delay: .7s; }
.fin-slots { display: flex; gap: 8px; margin: 30px 0 18px; }
.fin-slots span { width: 46px; height: 56px; border-bottom: 2px solid #2c2a26; font-size: 36px; font-weight: 600; display: flex; align-items: flex-end; justify-content: center; }
.fin-slots.shake { animation: shake .4s; }
.fin-tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fin-tile { width: 52px; height: 60px; border-radius: 10px; border: 0; background: #fff; box-shadow: 0 3px 0 #d6cfc0; font-family: Lora, serif; font-size: 28px; font-weight: 600; color: #2c2a26; }
.fin-tile:disabled { opacity: .25; }
.fin-reset { margin-top: 18px; background: none; border: 0; color: #8c867a; text-decoration: underline; font-size: 16px; font-family: inherit; }
.fin-open { padding: 60px 22px 50px; }
.fin-letter p { font-size: 18px; line-height: 1.5; margin: 0 0 16px; opacity: 0; animation: fadeup .9s ease forwards; }
.fin-letter .fin-hi { font-size: 26px; font-weight: 600; }
.fin-sign { font-style: italic; text-align: right; }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fin-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 30px 0; }
.fin-pol { border: 0; background: #fff; padding: 8px 8px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.15); transform: rotate(var(--r)); display: flex; flex-direction: column; }
.fin-pol-img { display: block; width: 100%; aspect-ratio: 1; background-size: cover; background-position: center 30%; }
.fin-pol-cap { font-family: 'Marck Script', cursive; font-size: 16px; color: #444; min-height: 4px; padding-top: 6px; }
.fin-gift { background: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.fin-gift-title { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.fin-gift p { font-size: 17px; line-height: 1.4; margin: 0 0 6px; }
.fin-end { text-align: center; font-family: 'Marck Script', cursive; font-size: 38px; margin: 36px 0 10px; color: #a3341d; }
.fin-again { display: block; margin: 0 auto; background: none; border: 0; color: #a39d90; text-decoration: underline; font-family: inherit; font-size: 16px; }

.prize-letter .pl, .bag-letters span, .fin-slots span, .fin-tile { font-family: 'PT Sans', sans-serif; font-weight: 700; }
.ov-dark { background: rgba(8, 4, 16, .93); }
