/* The home page's own parts, drawn to its mockup (assets/concept/luckydeck-game/website-home/mockup-v1.jpg): the news and
   ranking side by side (the key visual is the page's background, skin.css), the special events, the story with its four bosses and the
   characters band. The skin every page shares (header, links, panels, left column) is in skin.css. */

.home-page #content.home { display: block; }
.home-row { display: flex; gap: 16px; align-items: stretch; }
.home-page #center { flex: 1; width: auto; min-width: 0; }
.home-page #right { width: 236px; }
.home-page .home-row > div > .win { height: calc(100% - 16px); }

/* ---------- special events: two banners at a time ---------- */
.home-page #hero { position: relative; height: auto; overflow: visible; padding: 10px 10px 26px; }
.home-page #hero .slide { position: absolute; inset: 10px 10px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: none; }
.home-page #hero .slide:first-child { position: relative; inset: auto; }
.home-page #hero .slide:not(.on) { pointer-events: none; }
.event { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 150px; padding: 10px 14px; overflow: hidden; color: #fff;
  background: center / cover no-repeat; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #98a4b1, 0 3px 6px rgba(20, 35, 60, 0.25); transition: transform 0.15s ease; }
.event::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(10, 20, 45, 0) 30%, rgba(10, 20, 45, 0.78)); }
.event > * { position: relative; }
.event b { font: bold 25px/1.2 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; color: #fff;
  text-shadow: -2px 0 #16264d, 2px 0 #16264d, 0 -2px #16264d, 0 2px #16264d, -2px -2px #16264d, 2px 2px #16264d, 2px -2px #16264d, -2px 2px #16264d, 0 4px 6px rgba(0, 0, 0, 0.5); }
.event span { font-size: 12px; font-weight: bold; color: #e6f0ff; text-shadow: 0 1px 2px #000; }
.event:hover { text-decoration: none; transform: translateY(-2px); }
.event:hover b { color: #dfffe4; }
.home-page #hero .pager { left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); gap: 6px; }
.home-page #hero .pager li { width: 11px; height: 11px; font-size: 0; border-radius: 50%; background: #cfd7e0; border: 1px solid #98a4b1; }
.home-page #hero .pager li.on { background: var(--slate-2); border-color: var(--slate); }

/* ---------- the story and its four bosses ---------- */
.story { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px 16px; align-items: center; }
.story-art { display: block; width: 100%; height: auto; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #98a4b1; }
.story-text p { margin: 0 0 8px; font-size: 13px; line-height: 1.75; color: #3a4453; }
.story-text b { color: var(--slate); }
.bosses { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.boss-ribbon { grid-column: 1 / -1; justify-self: center; margin: 0; padding: 3px 30px; font: bold 14px/1.5 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; color: #fff;
  text-shadow: 0 1px 0 #0b1633; background: linear-gradient(var(--slate-2), var(--slate)); border: 2px solid #dfe5eb; border-radius: 4px;
  box-shadow: 0 0 0 1px #6f7c8b; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%, 12px 50%); }
.boss { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink); }
.boss img { display: block; width: 100%; height: auto; aspect-ratio: 96 / 102; object-fit: cover; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #1a2540, 0 0 0 3px #aeb8c2, 0 3px 6px rgba(20, 35, 60, 0.3); transition: transform 0.15s ease; }
.boss b { font-size: 13px; text-align: center; }
.boss:hover { text-decoration: none; color: var(--green); }
.boss:hover img { transform: translateY(-3px); }

/* ---------- the characters band across the whole page ---------- */
.home-page > #after { margin-bottom: 16px; }
.chars { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 18px; align-items: center; }
.chars-art { display: block; width: 100%; height: auto; border-radius: 8px; }
.chars-text h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: bold 22px/1.3 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; color: var(--slate); }
.chars-text h2::before { content: ''; width: 26px; height: 26px; background: var(--clover) center / contain no-repeat; }
.chars-text p { margin: 0 0 12px; font-size: 13px; line-height: 1.75; color: #3a4453; }
.chars-shots { display: flex; gap: 8px; }
.chars-shots img { flex: 1; min-width: 0; height: 86px; object-fit: cover; border: 3px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px #98a4b1, 0 3px 6px rgba(20, 35, 60, 0.3); transform: rotate(-2deg); }
.chars-shots img:nth-child(2) { transform: rotate(2deg) translateY(4px); }

/* ---------- smaller screens ---------- */
@media (max-width: 1019px) {
  .home-row { flex-direction: column; gap: 0; }
  .home-page #right { width: 100%; display: block; }
  .home-page .home-row > div > .win { height: auto; }
  .chars { grid-template-columns: 1fr; }
}
@media (max-width: 679px) {
  .home-page #hero .slide { grid-template-columns: 1fr; }
  .event { height: 120px; }
  .story { grid-template-columns: 1fr; }
  .bosses { grid-template-columns: repeat(2, 1fr); }
}
