:root {
  color-scheme: light;
  --festive-blue: #342d82;
  --festive-gold: #d4a04f;
  --festive-line: #ead8b8;
  --festive-cream: #fff8e9;
  --festive-ink: #45392c;
  --festive-green: #4f9b53;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.diwali-page {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--festive-ink);
  background: #fff;
  font: 14px/1.5 "DM Sans", Arial, sans-serif;
}

.skip-content {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: #fff;
  background: #302977;
}

.skip-content:focus {
  transform: translateY(0);
}

.diwali-hero {
  position: relative;
  overflow: hidden;
  line-height: 0;
  background: #22120f;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.hero-lamp-glow {
  position: absolute;
  z-index: 1;
  bottom: 4%;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 188, 23, .2), rgba(255, 157, 0, .05) 32%, transparent 70%);
  animation: diya-glow 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

.glow-left {
  left: 1%;
}

.glow-right {
  right: 2%;
  animation-delay: -1.2s;
}

.sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 230, 150, .85) 0 1px, transparent 1.8px), radial-gradient(circle, rgba(255, 191, 65, .75) 0 1px, transparent 2px), radial-gradient(circle, rgba(255, 245, 210, .8) 0 .8px, transparent 1.7px);
  background-size: 137px 111px, 193px 157px, 89px 167px;
  background-position: 20px 22px, 57px 74px, 11px 115px;
  opacity: .24;
  animation: ember-drift 12s linear infinite;
}

.campaign-intro {
  position: relative;
  height: 24.75vw;
  min-height: 0;
  padding: 6.45vw 24px 0;
  text-align: center;
  background: #fff var(--intro-art) center top / 100% 100% no-repeat;
}

.campaign-home-link {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: clamp(16px, calc((100% - 1140px) / 2), 56px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--festive-gold);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--festive-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.campaign-home-link:hover {
  transform: translateY(-1px);
  background: var(--festive-blue);
  color: #fff;
}

.campaign-home-link:focus-visible {
  outline: 3px solid rgba(52, 45, 130, .35);
  outline-offset: 3px;
}

.intro-title {
  margin: 0;
  color: #383992;
  font: 700 clamp(30px, 3.05vw, 59px)/1.2 "Playfair Display", Georgia, serif;
}

.intro-copy {
  margin: 1.65vw auto 0;
  color: #555;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.5;
}

.hanging-ornament {
  position: absolute;
  top: 0;
  width: 40px;
  height: 94px;
  color: #d9b77d;
  opacity: .8;
  border-top: 1px solid #e2ca9e;
}

.hanging-ornament::before {
  position: absolute;
  top: 0;
  left: 50%;
  height: 63px;
  border-left: 1px dashed #d6b77f;
  content: "";
}

.hanging-ornament::after {
  position: absolute;
  top: 50px;
  left: 50%;
  display: grid;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  place-items: center;
  border: 1px solid #e3c78f;
  border-radius: 50%;
  background: #fffaf0;
  content: "✧";
  font-size: 15px;
}

.hanging-ornament span {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 29px;
}

.ornament-left {
  left: 18px;
}

.ornament-right {
  right: 18px;
}

.swinging-ornament {
  position: absolute;
  top: 3.28vw;
  z-index: 1;
  display: block;
  width: 10.75vw;
  transform-origin: 50% 0;
  animation: ornament-sway 1.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.swinging-ornament img {
  display: block;
  width: 100%;
  height: auto;
}

.swing-left {
  left: 1vw;
}

.swing-right {
  right: 1vw;
}

.event-list {
  width: 90%;
  margin: 0 auto 2vw;
}

.event-card {
  overflow: hidden;
  margin: 0 0 2vw;
  border: 1px solid #f0e1c5;
  border-radius: 1.1vw;
  background: var(--festive-cream);
  box-shadow: 0 2px 7px rgba(100, 65, 20, .045);
}

.event-card-visible {
  animation: card-arrive .62s cubic-bezier(.2, .7, .25, 1) both;
}

.event-art-wrap {
  position: relative;
  overflow: hidden;
  line-height: 0;
  background: #351714;
}

.event-art {
  display: block;
  width: 100%;
  height: auto;
}

.event-art-wrap .sparkle-field {
  opacity: .18;
  background-size: 93px 83px, 149px 127px, 67px 131px;
  animation-duration: 9s;
}

.table-panel {
  margin: 1.25vw;
  padding: .8vw 1vw .7vw;
  border: 1px solid #f1e3c9;
  border-radius: .55vw;
  background: #fffdf8;
}

.live-market-status {
  margin: 8px 3px 0;
  color: #887c67;
  font-size: clamp(9px, .62vw, 12px);
  line-height: 1.4;
  text-align: right;
}

.table-ornament {
  position: relative;
  height: 30px;
  margin: 0 0 5px;
  color: #b76525;
  text-align: center;
  line-height: 24px;
}

.table-ornament::before {
  position: absolute;
  top: 7px;
  right: 14px;
  left: 0;
  height: 1px;
  background: #eedab7;
  content: "";
}

.table-ornament span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: #fffdf8;
  font-size: 9px;
}

.table-ornament i {
  position: absolute;
  top: 1px;
  right: 0;
  color: #c89456;
  font-size: 15px;
  font-style: normal;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #d8b46e #fff7e8;
}

.investment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #534b42;
  font-size: clamp(12px, .9vw, 17px);
  line-height: 1.2;
}

.investment-table th {
  padding: .7vw .5vw;
  color: white;
  background: #d2a151;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.investment-table th:first-child {
  border-radius: 5px 0 0;
}

.investment-table th:last-child {
  border-radius: 0 5px 0 0;
}

.investment-table td {
  height: 3.7vw;
  padding: .45vw .55vw;
  border-right: 1px solid #f0e6d6;
  border-bottom: 1px solid #f0e6d6;
  background: #fff;
  text-align: center;
  white-space: nowrap;
}

.investment-table td:first-child {
  border-left: 1px solid #f0e6d6;
  text-align: left;
}

.investment-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 5px;
}

.investment-table tbody tr:last-child td:last-child {
  border-radius: 0 0 5px;
}

.investment-table .name-cell {
  font-weight: 600;
  text-align: left;
}

.dhan-table th:nth-child(1) {
  min-width: 82px;
}

.dhan-table th:nth-child(2) {
  min-width: 205px;
}

.stock-table th:first-child {
  text-align: left;
}

.stock-table td:first-child {
  font-weight: 600;
}

.buy-button {
  display: inline-flex;
  min-width: 7.5vw;
  min-height: 2.4vw;
  padding: .3vw .85vw;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--festive-green);
  font-size: clamp(11px, .85vw, 16px);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.buy-button:hover,
.buy-button:focus-visible {
  transform: translateY(-1px);
  background: #397e3d;
  box-shadow: 0 3px 9px rgba(39, 100, 46, .25);
}

.buy-button:focus-visible {
  outline: 2px solid #2e672f;
  outline-offset: 2px;
}

.table-caption {
  display: flex;
  min-height: 20px;
  padding: .55vw 1px 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #887c67;
  font-size: clamp(9px, .62vw, 12px);
  line-height: 1.4;
}

.table-caption b {
  color: #d5a246;
  font-weight: 500;
}

.diwali-footer {
  padding: 11px 18px;
  color: #fff;
  background: #302d78;
  font-size: 10px;
  text-align: center;
}

.diwali-footer a {
  margin-left: 13px;
  color: #fff;
  text-decoration: none;
}

@keyframes diya-glow {
  from {
    opacity: .5;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes ember-drift {
  from {
    background-position: 20px 22px, 57px 74px, 11px 115px;
  }

  to {
    background-position: 85px -100px, -65px -80px, 75px -55px;
  }
}

@keyframes card-arrive {
  from {
    opacity: .45;
    transform: translateY(13px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ornament-sway {
  from {
    transform: rotate(-1.15deg);
  }

  to {
    transform: rotate(1.35deg);
  }
}

@media (min-width: 701px) and (max-width: 1200px) {
  .campaign-intro {
    height: 30vw;
    min-height: 300px;
    padding-top: 7vw;
  }

  .intro-title {
    font-size: clamp(30px, 4vw, 44px);
  }

  .intro-copy {
    margin-top: 20px;
    font-size: clamp(16px, 1.8vw, 20px);
  }

  .event-list {
    width: 92%;
  }

  .table-panel {
    margin: 12px;
    padding: 10px;
  }

  .investment-table {
    font-size: 12px;
  }

  .investment-table td {
    height: 44px;
  }
}

@media (max-width: 700px) {
  body.diwali-page {
    font-size: 12px;
  }

  .campaign-home-link {
    top: 10px;
    left: 12px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .campaign-intro {
    height: auto;
    min-height: 270px;
    padding: 78px 26px 28px;
    background-size: 100% 100%;
  }

  .intro-title {
    font-size: clamp(20px, 5vw, 30px);
  }

  .intro-copy {
    max-width: 530px;
    margin-top: 16px;
    font-size: 14px;
  }

  .hanging-ornament {
    transform: scale(.7);
    transform-origin: top center;
  }

  .ornament-left {
    left: 1px;
  }

  .ornament-right {
    right: 1px;
  }

  .desktop-break {
    display: none;
  }

  .event-list {
    width: calc(100% - 26px);
    margin-bottom: 20px;
  }

  .event-card {
    margin-bottom: 18px;
    border-radius: 9px;
  }

  .table-panel {
    margin: 6px;
    padding: 8px 7px 7px;
  }

  .live-market-status {
    text-align: left;
  }

  .investment-table {
    min-width: 590px;
    font-size: 10px;
  }

  .investment-table td {
    height: 34px;
  }

  .stock-table {
    min-width: 590px;
  }

  .table-caption {
    font-size: 8px;
  }

  .buy-button {
    min-width: 55px;
    min-height: 22px;
  }

  .diwali-footer {
    padding: 10px 12px;
    font-size: 9px;
    line-height: 1.5;
  }
}

@media (max-width: 420px) {
  .campaign-home-link {
    top: 8px;
    left: 10px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .campaign-intro {
    min-height: 260px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .intro-copy {
    font-size: 10px;
  }

  .table-caption {
    display: block;
  }

  .table-caption small {
    display: block;
    margin-bottom: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
