/*!
 * g perya - Core stylesheet
 * Mobile-first design, all classes use the "g357-" prefix.
 * Color palette: #0000CD | #FFB74D | #FF7F50 | #2D2D2D | #FF8000
 */

:root {
  --g357-primary: #0000CD;
  --g357-bg: #2D2D2D;
  --g357-text: #ffffff;
  --g357-accent: #FF8000;
  --g357-amber: #FFB74D;
  --g357-coral: #FF7F50;
  --g357-dark: #1a1a1a;
  --g357-card: #333333;
  --g357-line: rgba(255, 255, 255, 0.08);
  --g357-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--g357-bg);
  color: var(--g357-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--g357-amber);
  text-decoration: none;
}

/* ===== Layout container ===== */
.g357-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--g357-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.g357-container {
  width: 100%;
  padding: 0 1.2rem;
}

main.g357-main {
  padding-bottom: 8rem;
}

/* ===== Header ===== */
.g357-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--g357-primary), #1a1aff);
  border-bottom: 2px solid var(--g357-accent);
  box-shadow: var(--g357-shadow);
}

.g357-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  height: 5.4rem;
}

.g357-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.7rem;
}

.g357-brand img,
.g357-brand .g357-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--g357-amber);
}

.g357-brand-name span {
  color: var(--g357-amber);
}

.g357-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g357-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #fff;
}

.g357-btn:active {
  transform: scale(0.95);
}

.g357-btn-login {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.g357-btn-register {
  background: linear-gradient(90deg, var(--g357-accent), var(--g357-coral));
  box-shadow: 0 4px 10px rgba(255, 128, 0, 0.45);
}

.g357-icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== Nav (expandable) ===== */
.g357-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.35);
  max-width: 430px;
  margin: 0 auto;
}

.g357-nav-open {
  max-height: 28rem;
}

.g357-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
}

.g357-nav li a {
  display: block;
  padding: 0.9rem 0.6rem;
  color: #fff;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g357-line);
}

.g357-nav li a:hover {
  color: var(--g357-amber);
}

/* ===== Hero / Carousel ===== */
.g357-carousel {
  margin-top: 5.4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--g357-accent);
}

.g357-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.g357-slide.g357-active {
  display: block;
  animation: g357fade 0.6s ease;
}

.g357-slide img {
  width: 100%;
  height: 19rem;
  object-fit: cover;
}

.g357-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

@keyframes g357fade {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.g357-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 5;
}

.g357-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
}

.g357-dot-active {
  background: var(--g357-accent);
  width: 1.6rem;
  border-radius: 4px;
}

/* ===== Section ===== */
.g357-section {
  padding: 1.6rem 0;
}

.g357-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g357-section-title .g357-mark {
  width: 4px;
  height: 1.7rem;
  background: var(--g357-accent);
  border-radius: 2px;
}

.g357-section-sub {
  font-size: 1.3rem;
  color: var(--g357-amber);
  margin: 0 0 1rem 0;
}

/* ===== H1 ===== */
.g357-h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 1.4rem 0 0.6rem 0;
  line-height: 2.6rem;
}

.g357-h1 span {
  color: var(--g357-accent);
}

.g357-h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g357-amber);
  margin: 1.4rem 0 0.6rem 0;
}

.g357-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--g357-coral);
  margin: 1rem 0 0.4rem 0;
}

/* ===== Game grid ===== */
.g357-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.6rem 0;
}

.g357-cat-head h3 {
  font-size: 1.45rem;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.g357-cat-tag {
  font-size: 1.1rem;
  color: var(--g357-amber);
  background: rgba(255, 183, 77, 0.12);
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
}

.g357-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.g357-game-card {
  background: var(--g357-card);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--g357-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.g357-game-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--g357-accent);
}

.g357-game-card img {
  width: 100%;
  height: 9.4rem;
  object-fit: cover;
}

.g357-game-name {
  display: block;
  font-size: 1.15rem;
  color: #fff;
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Cards / panels ===== */
.g357-card {
  background: var(--g357-card);
  border-radius: 1rem;
  padding: 1.2rem;
  margin: 0.6rem 0;
  border: 1px solid var(--g357-line);
  box-shadow: var(--g357-shadow);
}

.g357-card p {
  margin: 0.4rem 0;
  color: #f3f3f3;
  font-size: 1.35rem;
  line-height: 2.2rem;
}

.g357-card .g357-lead {
  color: var(--g357-amber);
  font-weight: 700;
}

/* ===== Promo CTA ===== */
.g357-cta {
  display: block;
  width: 100%;
  margin: 1.2rem 0;
  padding: 1.4rem;
  text-align: center;
  background: linear-gradient(90deg, var(--g357-accent), var(--g357-coral));
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(255, 128, 0, 0.45);
}

.g357-cta:active {
  transform: scale(0.97);
}

.g357-promo-link {
  color: var(--g357-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ===== Steps / lists ===== */
.g357-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
}

.g357-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.2rem;
  font-size: 1.35rem;
  line-height: 2.2rem;
  border-bottom: 1px solid var(--g357-line);
}

.g357-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--g357-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ===== RTP / data table ===== */
.g357-rtp {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  margin: 0.4rem 0;
}

.g357-rtp th,
.g357-rtp td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--g357-line);
  text-align: left;
}

.g357-rtp th {
  color: var(--g357-amber);
  font-size: 1.2rem;
}

.g357-rtp td.g357-num {
  color: var(--g357-coral);
  font-weight: 700;
  text-align: right;
}

/* ===== Testimonial / winners ===== */
.g357-tile {
  background: var(--g357-card);
  border-radius: 0.9rem;
  padding: 1rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--g357-line);
}

.g357-tile .g357-av {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g357-primary), var(--g357-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.g357-tile .g357-meta {
  flex: 1;
  min-width: 0;
}

.g357-tile .g357-meta b {
  color: #fff;
  font-size: 1.3rem;
}

.g357-tile .g357-meta span {
  display: block;
  color: var(--g357-amber);
  font-size: 1.2rem;
}

/* ===== Payment chips ===== */
.g357-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0;
}

.g357-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--g357-card);
  border: 1px solid var(--g357-line);
  padding: 0.5rem 0.9rem;
  border-radius: 1.2rem;
  font-size: 1.2rem;
  color: #fff;
}

/* ===== Feature list ===== */
.g357-feat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.4rem 0;
}

.g357-feat .g357-feat-item {
  background: var(--g357-card);
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--g357-line);
}

.g357-feat .g357-feat-item .material-icons,
.g357-feat .g357-feat-item i {
  font-size: 2.4rem;
  color: var(--g357-accent);
}

.g357-feat .g357-feat-item b {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.25rem;
  color: #fff;
}

.g357-feat .g357-feat-item small {
  display: block;
  font-size: 1.1rem;
  color: #bbb;
}

/* ===== FAQ ===== */
.g357-faq-item {
  background: var(--g357-card);
  border-radius: 0.8rem;
  margin: 0.5rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--g357-line);
}

.g357-faq-item h3 {
  margin: 0 0 0.3rem 0;
  color: var(--g357-amber);
  font-size: 1.3rem;
}

.g357-faq-item p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 2rem;
  color: #eee;
}

/* ===== Footer ===== */
.g357-footer {
  background: var(--g357-dark);
  padding: 1.6rem 1.2rem 2rem;
  border-top: 2px solid var(--g357-primary);
}

.g357-footer p {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 2rem;
  margin: 0 0 0.8rem;
}

.g357-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.g357-footer-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--g357-card);
  border: 1px solid var(--g357-line);
  border-radius: 0.6rem;
  font-size: 1.15rem;
  color: var(--g357-amber);
}

.g357-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.g357-footer-promo button {
  flex: 1 1 40%;
  min-height: 3.4rem;
  background: linear-gradient(90deg, var(--g357-accent), var(--g357-coral));
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}

.g357-copy {
  font-size: 1.1rem;
  color: #888;
  text-align: center;
  margin-top: 0.6rem;
}

/* ===== Mobile bottom nav ===== */
.g357-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.97);
  border-top: 2px solid var(--g357-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 6rem;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.5);
}

.g357-bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: #cfcfcf;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.g357-bnav-btn:active {
  transform: scale(0.9);
}

.g357-bnav-btn i,
.g357-bnav-btn .material-icons {
  font-size: 2.2rem;
  line-height: 1;
}

.g357-bnav-btn span {
  font-size: 1.05rem;
  font-weight: 600;
}

.g357-bnav-btn.g357-bnav-promo {
  color: var(--g357-accent);
}

.g357-bnav-active {
  color: var(--g357-amber) !important;
}

.g357-bnav-active::after {
  content: "";
  display: block;
  width: 1.8rem;
  height: 3px;
  background: var(--g357-accent);
  border-radius: 2px;
  margin-top: 0.1rem;
}

/* ===== Reveal animation ===== */
.g357-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.g357-reveal.g357-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .g357-bnav {
    display: none;
  }
  main.g357-main {
    padding-bottom: 2rem;
  }
  .g357-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 768px) {
  main.g357-main {
    padding-bottom: 8rem;
  }
}
