@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

@scope (#anilBollywoodGame) {
:scope { display:block; width:100%; position:relative; isolation:isolate; overflow:hidden; }

:scope {
  --wine: #79001f;
  --deep: #25000d;
  --gold: #e9b64d;
  --gold-light: #ffe1a0;
  --cream: #fff0cf;
  --rust: #a64a25;
}
* { box-sizing: border-box; }

:scope {
  margin: 0;
  color: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 12% 12%, rgba(219,153,49,.22), transparent 27%),
    radial-gradient(ellipse at 82% 35%, rgba(145,34,45,.18), transparent 28%),
    radial-gradient(ellipse at 70% 90%, rgba(180,99,35,.12), transparent 24%),
    #79001f;
  overflow-x: hidden;
}
:scope {
  position: relative;
  min-height: 100vh;
  padding: 34px 22px 24px;
  isolation: isolate;
}
:scope::before, :scope::after {
  content: "";
  position: fixed;
  width: 340px; height: 340px;
  border: 1px solid rgba(233,182,77,.13);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
:scope::before { left: -180px; top: 28%; box-shadow: 0 0 90px rgba(231,160,53,.08); }
:scope::after { right: -190px; bottom: -100px; box-shadow: 0 0 90px rgba(231,160,53,.08); }
.sparkles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .65;
  background-image:
    radial-gradient(2px 2px at 12% 20%, #f7c65e 50%, transparent 60%),
    radial-gradient(2px 2px at 78% 13%, #f7c65e 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 72%, #f7c65e 50%, transparent 60%),
    radial-gradient(2px 2px at 35% 83%, #f7c65e 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 47%, #f7c65e 50%, transparent 60%);
  background-size: 380px 320px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .8; } }
.game-heading { text-align: center; max-width: 940px; margin: 0 auto 24px; }
.eyebrow, .panel-title, .result-kicker, .dream-note {
  letter-spacing: .34em; font-size: 9px; font-weight: 700; color: var(--gold);
}
.eyebrow { margin: 0 0 8px; }
h1 {
  font-family: Cinzel, Georgia, serif; font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12; margin: 0; color: #f6cf75; text-shadow: 0 3px 0 #4b0b15, 0 0 24px rgba(233,182,77,.2);
}
h1 span { color: #fff0cf; }
.subtitle { font-size: 17px; margin: 10px 0 7px; color: #ffe4b4; }
.intro { font-size: 14px; color: #d7bca4; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.tagline { color: #e5ad5b; font-family: Georgia, serif; font-style: italic; font-size: 14px; margin: 7px 0 0; }
.game-layout {
  width: min(100%, 900px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(360px, 1fr) 260px;
  align-items: center; gap: clamp(25px, 5vw, 60px);
}
.wheel-column { display: flex; flex-direction: column; align-items: center; }
.wheel-wrap { position: relative; width: min(100%, 390px); aspect-ratio: 1; padding: 12px; }
.pointer {
  position: absolute; z-index: 5; top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 25px solid #ffd56f; filter: drop-shadow(0 3px 2px #29000b);
}
.wheel-rim {
  width: 100%; height: 100%; padding: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe8a1, #b87823 38%, #f5ce69 65%, #8d481d);
  box-shadow: 0 0 0 5px #3d160f, 0 0 0 8px #dca447, 0 12px 35px rgba(0,0,0,.55), 0 0 45px rgba(244,179,67,.18);
}
.wheel-face {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 3px solid #f6d57f; transform: rotate(0deg);
  transition: transform 5.2s cubic-bezier(.12,.72,.12,1);
  background: #6c1d19;
}
.wheel-face svg { display: block; width: 100%; height: 100%; }
.wheel-center {
  position: absolute; width: 56px; height: 56px; border-radius: 50%; left: 50%; top: 50%;
  transform: translate(-50%,-50%); z-index: 3; display: grid; place-items: center;
  color: #5b1a16; font-size: 25px; background: radial-gradient(circle at 35% 30%, #fff0b4, #e8ad3e 72%);
  border: 4px solid #ffe09a; box-shadow: 0 2px 10px #23000a;
}
.spin-button, .again-button {
  border: 0; cursor: pointer; color: #3b160b; font-weight: 800; font-size: 16px;
  border-radius: 999px; padding: 13px 30px; margin-top: 22px;
  background: linear-gradient(110deg, #ffe7a0, #e8a33c);
  box-shadow: 0 5px 20px rgba(244,177,65,.25), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .2s, filter .2s;
}
.spin-button:hover, .again-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.spin-button:disabled { opacity: .6; cursor: wait; transform: none; }
.spin-hint { color: #d4aa8c; font-size: 13px; min-height: 18px; text-align: center; }
.stats-panel {
  border: 1px solid rgba(222,165,85,.28); border-radius: 15px; padding: 20px 18px;
  background: linear-gradient(145deg, rgba(48,8,18,.7), rgba(33,3,12,.5));
  box-shadow: 0 12px 35px rgba(0,0,0,.2); color: #d7bca4;
}
.panel-title { font-size: 10px; margin-bottom: 18px; }
.stat-row, .history {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid rgba(222,165,85,.14); font-size: 13px;
}
.stat-row strong, .history strong { color: #f1c56e; font-weight: 700; text-align: right; }
.locked { color: #d9b67c !important; }
.history { display: block; line-height: 1.8; }
.history strong { display: block; text-align: left; }
.sound-toggle {
  background: transparent; color: #d9c0a6; border: 0; cursor: pointer;
  padding: 13px 0 0; font: inherit; font-size: 13px;
}
.small-note { font-size: 11px; color: #9e7969; line-height: 1.5; margin: 14px 0 0; }
.footer-note { text-align: center; margin-top: 30px; color: rgba(240,194,112,.55); font-size: 8px; letter-spacing: .3em; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px;
  background: rgba(18,0,7,.84); backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.result-card {
  position: relative; width: min(100%, 390px); padding: 24px 25px 22px; text-align: center;
  color: #fff1d2; border-radius: 14px; border: 1px solid #e5b65b;
  background: radial-gradient(circle at 85% 100%, #d77b2d, transparent 42%), linear-gradient(145deg, #70201c, #a94b25 58%, #c76d2d);
  box-shadow: 0 0 0 5px rgba(205,144,54,.12), 0 25px 80px rgba(0,0,0,.6);
  transform: translateY(18px) scale(.96); transition: transform .3s;
}
.show .result-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #ffdf9c; font-size: 24px; cursor: pointer; }
.result-kicker { font-size: 7px; margin: 0 0 8px; color: #f6d18a; }
.result-card h2 { font: 700 30px/1.15 Cinzel, Georgia, serif; color: #ffd66f; margin: 0 0 9px; }
.congrats { font-size: 14px; font-weight: 800; margin: 0 0 3px; }
.result-subtitle { font-size: 10px; font-weight: 700; margin: 0 0 15px; color: #ffe5b8; }
.couple { display: flex; justify-content: center; align-items: center; gap: 12px; }
.person-photo {
  width: 104px; height: 132px; margin: 0; padding: 5px; border-radius: 9px;
  background: #f9dba0; box-shadow: 0 4px 12px rgba(35,0,0,.28); position: relative;
}
.person-photo img { width: 100%; height: 100px; display: block; object-fit: cover; border-radius: 5px; background: #4c201b; }
.person-photo figcaption { color: #4d1a13; font-size: 10px; font-weight: 800; margin-top: 5px; }
.heart { color: #ffcf69; font-size: 31px; text-shadow: 0 2px 4px #5a1b13; }
.actress-photo { background: #f5d6a0; }
.actress-fallback {
  display: none; width: 100%; height: 100px; border-radius: 5px; place-items: center;
  color: #f7d17b; background: repeating-linear-gradient(135deg,#4a201b,#4a201b 8px,#5a2a20 8px,#5a2a20 16px);
  font: 700 24px Cinzel, Georgia, serif;
}
.actress-photo.fallback img { display: none; }
.actress-photo.fallback .actress-fallback { display: grid; }
.match-line { font: 700 22px Cinzel, Georgia, serif; margin: 12px 0 7px; }
.result-message { font-size: 12px; margin: 0 0 10px; color: #ffe5bd; }
.points-earned { font-size: 12px; color: #ffd36c; font-weight: 800; margin: 0 0 14px; }
.dream-note { font-size: 9px; color: #f2c88a; margin: 0; }
.again-button { font-size: 13px; padding: 10px 18px; margin-top: 15px; }
@media (max-width: 760px) {
  :scope { padding: 26px 15px 20px; }
  .game-layout { grid-template-columns: 1fr; gap: 20px; width: min(100%, 460px); }
  .wheel-wrap { width: min(82vw, 360px); }
  .stats-panel { width: 100%; }
  .game-heading { margin-bottom: 20px; }
  .intro { max-width: 500px; }
}
@media (max-width: 390px) {
  .wheel-wrap { width: 88vw; }
  .result-card { padding: 22px 16px 18px; }
  .person-photo { width: 94px; }
}

/* Typography and centre-heart refinements */
.wheel-face svg text { font-weight: 700; letter-spacing: .15px; }
.wheel-center { width: 64px; height: 64px; font-size: 0; }
.wheel-center span { display: block; color: #4a160f; font-family: Georgia, serif; font-size: 31px; line-height: 1; transform: translateY(-1px); text-shadow: 0 1px 0 rgba(255,255,255,.28); }
.eyebrow, .panel-title, .result-kicker, .dream-note { font-size: 10px; }
@media (max-width: 760px) { h1 { font-size: clamp(31px, 8vw, 46px); } .subtitle { font-size: 15px; } }

.actress-photo.loading .actress-fallback { display: grid; color: #f7d17b; font-size: 23px; }


/* Bollywood Portfolio — separate collection panel below the original game */
.portfolio-panel {
  width: min(100%, 760px);
  margin: 34px auto 8px;
  padding: 20px 18px 15px;
  color: #f8e4c2;
  border: 1px solid rgba(226, 164, 75, .28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(57, 13, 15, .92), rgba(35, 5, 10, .94));
  box-shadow: 0 14px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,220,150,.07);
}
.portfolio-heading { text-align: center; margin-bottom: 17px; }
.portfolio-heading h2 {
  margin: 0 0 4px;
  color: #f3c66a;
  font: 700 clamp(19px, 2.4vw, 25px)/1.2 Cinzel, Georgia, serif;
}
.portfolio-heading p { margin: 0; color: #c9a98a; font-size: 11px; }
.portfolio-progress { margin: 0 0 13px; }
.portfolio-progress-label {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 7px; color: #c9a98a; font-size: 10px;
}
.portfolio-progress-label strong { color: #f2c45e; font-size: 11px; }
.portfolio-progress-track {
  height: 5px; overflow: hidden; border-radius: 99px;
  background: #32100f; border: 1px solid rgba(232,183,95,.16);
}
.portfolio-progress-track span {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #d58b32, #ffe08a);
  box-shadow: 0 0 10px rgba(245,185,73,.45);
  transition: width .55s ease;
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
.portfolio-card {
  position: relative; min-width: 0; overflow: hidden;
  padding: 6px 5px 7px; text-align: center;
  border: 1px solid rgba(222,164,91,.2); border-radius: 9px;
  background: linear-gradient(160deg, #451b16, #2e0b0d);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.portfolio-card.unlocked {
  border-color: #d99a3e;
  background: linear-gradient(155deg, #73321d, #a64e25);
  box-shadow: 0 0 16px rgba(224,153,54,.22), inset 0 0 12px rgba(255,213,126,.08);
}
.portfolio-card.jackpot { border-color: #e9bd60; }
.portfolio-photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.12;
  overflow: hidden; border-radius: 6px; background: #27090d;
}
.portfolio-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  opacity: .32; filter: grayscale(.45) brightness(.55);
  transition: opacity .3s ease, filter .3s ease, transform .35s ease;
}
.portfolio-card.unlocked .portfolio-photo img {
  opacity: 1; filter: none;
}
.portfolio-card:hover .portfolio-photo img { transform: scale(1.06); }
.portfolio-initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #eac16f; font: 700 19px Cinzel, Georgia, serif;
  background: linear-gradient(145deg, #3b1515, #57251a);
}
.portfolio-lock {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #d9bd91; font-size: 17px; text-shadow: 0 2px 4px #1c0708;
  background: rgba(22,5,8,.24);
}
.portfolio-card.unlocked .portfolio-lock {
  display: grid; inset: auto 5px 5px auto; width: 22px; height: 22px;
  border-radius: 50%; color: #4b170f; background: #ffd879;
  font-size: 13px; text-shadow: none; box-shadow: 0 2px 7px rgba(0,0,0,.3);
}
.portfolio-card-name {
  display: block; margin-top: 6px; color: #ead6b7;
  font-size: 9px; line-height: 1.2; font-weight: 700;
  overflow-wrap: anywhere;
}
.portfolio-card-status {
  display: block; margin-top: 3px; color: #ad9277;
  font-size: 8px; line-height: 1.2;
}
.portfolio-card.unlocked .portfolio-card-name,
.portfolio-card.unlocked .portfolio-card-status { color: #ffe6b5; }
.portfolio-achievement {
  display: flex; justify-content: center; align-items: center; gap: 7px;
  margin-top: 13px; padding-top: 11px;
  border-top: 1px solid rgba(224,164,82,.16);
  color: #e9c98c; font-size: 10px; font-weight: 700; text-align: center;
}
.portfolio-achievement > span:first-child { color: #f1c45e; font-size: 14px; }
.portfolio-achievement.achieved { color: #ffe29a; text-shadow: 0 0 12px rgba(255,203,91,.28); }
@media (max-width: 620px) {
  .portfolio-panel { margin-top: 24px; padding: 17px 12px 13px; }
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
}
@media (max-width: 380px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
}
