
/* ==========================================================
   NEWSGAMING2 — COMMUNITY E AREA PERSONALE
   Versione responsive PC / tablet / smartphone
   Mantiene lo stile neon originale del sito.
   ========================================================== */

:root {
  --ng-neon: #56f0ff;
  --ng-violet: #a78bfa;
  --ng-pink: #ff4fd8;
  --ng-bg: #070b13;
  --ng-panel: rgba(13, 23, 38, .94);
  --ng-border: rgba(86, 240, 255, .2);
  --ng-text: #eef7ff;
  --ng-muted: #a9b7c9;
}

/* BASE */

.ng-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 36px 22px 70px;
  box-sizing: border-box;
  color: var(--ng-text);
}

.ng-page *,
.ng-page *::before,
.ng-page *::after {
  box-sizing: border-box;
}

.ng-page h1,
.ng-page h2,
.ng-page h3 {
  color: var(--ng-text);
  text-shadow: 0 0 20px rgba(86,240,255,.08);
  overflow-wrap: anywhere;
}

.ng-page h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 8px 0 12px;
}

.ng-page h2 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  margin-top: 0;
}

.ng-page p {
  line-height: 1.7;
}

.ng-page .muted {
  color: var(--ng-muted);
}

.ng-page a {
  color: #8cf5ff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ng-page a:hover {
  color: #fff;
}

/* BARRA SUPERIORE E LOGO */

.topline {
  position: relative;
  z-index: 20;
}

.topline .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: #eef7ff !important;
  text-decoration: none !important;
  font-weight: 950;
  letter-spacing: .105em;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(86,240,255,.18);
}

.brand span {
  color: var(--ng-neon) !important;
  text-shadow: 0 0 16px rgba(86,240,255,.55);
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-width: 0;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #d9e8f7 !important;
  text-decoration: none !important;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.navlinks a:hover {
  color: var(--ng-neon) !important;
}

/* TITOLI PAGINA */

.ng-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 24px;
  padding-top: 10px;
}

.ng-page-head > div {
  min-width: 0;
}

.ng-page-head h1 {
  margin-bottom: 8px;
}

.ng-kicker {
  color: var(--ng-neon);
  font-size: .68rem;
  letter-spacing: .18em;
  font-weight: 900;
  text-transform: uppercase;
}

/* LAYOUT */

.ng-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 22px;
  align-items: start;
}

.ng-panel {
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--ng-border);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(16,28,45,.97),
    rgba(9,16,28,.97)
  );
  box-shadow:
    0 14px 40px rgba(0,0,0,.22),
    inset 0 1px rgba(255,255,255,.025);
}

.ng-panel h2 {
  margin-top: 0;
}

.ng-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.ng-panel-head h2 {
  margin: 4px 0;
}

/* COMMUNITY HERO / PROGRESSO */

.ng-community-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid rgba(86,240,255,.25);
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse at 85% 20%,
      rgba(167,139,250,.22),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 10% 100%,
      rgba(86,240,255,.13),
      transparent 48%
    ),
    linear-gradient(
      110deg,
      rgba(14,34,50,.96),
      rgba(28,18,47,.96)
    );
  box-shadow:
    0 15px 40px rgba(0,0,0,.2),
    0 0 25px rgba(86,240,255,.05);
}

.ng-community-hero > div:first-child {
  min-width: 0;
}

.ng-community-hero #myProgress {
  margin-top: 8px;
  color: #eaf7ff;
  font-size: 1rem;
  line-height: 1.6;
}

.ng-milestones {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ng-milestones span {
  padding: 8px 11px;
  border: 1px solid rgba(167,139,250,.3);
  border-radius: 999px;
  color: #dce8f7;
  background: rgba(7,12,24,.35);
  font-size: .7rem;
}

/* FORM */

.ng-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.ng-form label {
  display: grid;
  gap: 7px;
  color: #c7d5e6;
  font-size: .84rem;
  font-weight: 700;
}

.ng-form input,
.ng-form textarea,
.ng-form select,
.ng-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #29405a;
  border-radius: 11px;
  background: #091421;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.ng-form input:focus,
.ng-form textarea:focus,
.ng-form select:focus {
  border-color: var(--ng-neon);
  box-shadow: 0 0 0 3px rgba(86,240,255,.1);
}

.ng-form textarea {
  min-height: 125px;
  resize: vertical;
}

.ng-form input::placeholder,
.ng-form textarea::placeholder {
  color: #8193a8;
}

/* RICORDA ACCESSO */

.remember-row {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  color: #b8c8d8 !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
}

.remember-row input {
  width: auto !important;
  min-width: 16px;
}

/* PULSANTI */

.ng-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(86,240,255,.5);
  border-radius: 11px;
  background: linear-gradient(110deg,#56eaf8,#a78bfa);
  color: #07101a;
  font-size: .88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, filter .2s;
}

.ng-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(86,240,255,.18);
  filter: brightness(1.06);
}

.ng-btn.secondary {
  background: rgba(16,30,47,.95);
  color: #d8e8f8;
}

.ng-btn.danger {
  background: linear-gradient(110deg,#ff7b93,#ff4fd8);
  color: #180816;
}

.ng-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* TOOLBAR */

.ng-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* COMMENTI */

.ng-comment {
  padding: 17px 0;
  border-top: 1px solid rgba(86,240,255,.13);
}

.ng-comment:first-child {
  border-top: 0;
}

.ng-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #8fa4ba;
  font-size: .76rem;
}

.ng-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(86,240,255,.35);
  border-radius: 50%;
  background: linear-gradient(145deg,#142f43,#2b1f4b);
  color: #bff9ff;
  object-fit: cover;
  font-weight: 900;
}

.ng-comment-body {
  margin: 9px 0;
  color: #dce7f3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.ng-comment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ng-mini {
  padding: 7px 10px;
  border: 1px solid #29405a;
  border-radius: 8px;
  background: #0b1624;
  color: #bcd0e4;
  font-size: .74rem;
  cursor: pointer;
}

.ng-mini:hover {
  border-color: var(--ng-neon);
  color: #fff;
}

.ng-reply {
  margin: 10px 0 0 40px;
  padding-left: 14px;
  border-left: 1px solid rgba(167,139,250,.3);
}

.ng-reply-box {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 12px;
  background: rgba(10,18,31,.65);
}

/* AVVISI */

.ng-login-note {
  padding: 13px 15px;
  border: 1px dashed rgba(86,240,255,.3);
  border-radius: 11px;
  background: rgba(10,20,34,.7);
  color: var(--ng-muted);
  line-height: 1.6;
}

.ng-alert {
  margin: 13px 0;
  padding: 13px 15px;
  border: 1px solid rgba(86,240,255,.2);
  border-radius: 11px;
  background: rgba(86,240,255,.08);
  color: #cfe5f5;
  line-height: 1.6;
}

.ng-alert.error {
  border-color: rgba(255,79,216,.28);
  background: rgba(255,79,216,.08);
}

.ng-empty {
  padding: 30px 18px;
  border: 1px dashed rgba(86,240,255,.18);
  border-radius: 13px;
  color: #8fa4ba;
  text-align: center;
}

/* GIOCHI */

.ng-list {
  display: grid;
  gap: 13px;
}

.ng-game-card {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  align-items: center;
  gap: 17px;
  min-height: 120px;
  padding: 14px;
  border: 1px solid rgba(86,240,255,.16);
  border-radius: 15px;
  background: rgba(13,23,38,.82);
  transition: border-color .2s, transform .2s;
}

.ng-game-card:hover {
  border-color: rgba(86,240,255,.5);
  transform: translateY(-2px);
}

.ng-game-card img {
  display: block;
  width: 150px;
  height: 100px;
  border-radius: 11px;
  object-fit: cover;
  object-position: center;
}

.ng-game-card h3 {
  margin: 2px 0 7px;
}

.ng-game-art {
  position: relative;
  min-width: 0;
}

.ng-game-art:after {
  content: "";
  position: absolute;
  inset: auto 8px 8px;
  height: 18px;
  background: linear-gradient(
    90deg,
    rgba(86,240,255,.22),
    rgba(167,139,250,.2)
  );
  filter: blur(16px);
  pointer-events: none;
}

.ng-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  color: #9fb0c3;
  font-size: .73rem;
}

.ng-pill {
  padding: 5px 8px;
  border: 1px solid rgba(86,240,255,.2);
  border-radius: 999px;
}

.ng-game-date {
  color: var(--ng-neon);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ng-source {
  font-size: .78rem;
}

/* CLASSIFICHE E STATISTICHE */

.ng-stat-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 11px;
  margin: 20px 0;
}

.ng-stat {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(86,240,255,.16);
  border-radius: 13px;
  background: rgba(12,23,38,.8);
}

.ng-stat strong {
  display: block;
  color: #8cf5ff;
  font-size: clamp(1.2rem,3vw,1.6rem);
  overflow-wrap: anywhere;
}

.ng-stat span {
  color: #8fa4ba;
  font-size: .65rem;
  letter-spacing: .12em;
}

.ng-stars {
  color: var(--ng-neon);
  letter-spacing: 2px;
}

.ng-rank {
  display: grid;
  grid-template-columns: 55px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(86,240,255,.11);
}

.ng-rank:last-child {
  border-bottom: 0;
}

.ng-rank > span:first-child {
  color: var(--ng-neon);
  font-weight: 900;
}

.ng-rank b {
  color: #e7f3ff;
  overflow-wrap: anywhere;
}

.ng-rank span:last-child {
  color: #9fb0c3;
  font-size: .8rem;
}

.ng-leader-panel {
  margin-top: 22px;
}

/* PANNELLO GIORNALIERO */

.ng-daily-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid rgba(86,240,255,.25);
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse at 85% 20%,
      rgba(167,139,250,.18),
      transparent 45%
    ),
    linear-gradient(
      110deg,
      rgba(16,40,53,.9),
      rgba(31,20,50,.9)
    );
  box-shadow: 0 0 28px rgba(86,240,255,.06);
}

.ng-daily-panel > div {
  min-width: 0;
}

.ng-daily-panel h2 {
  margin: 5px 0;
}

.ng-reward-track {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ng-reward-track span {
  padding: 6px 9px;
  border: 1px solid rgba(86,240,255,.18);
  border-radius: 999px;
  color: #9fb0c3;
  font-size: .68rem;
}

.ng-db-note {
  margin: 0 0 12px;
  color: #8fa4ba;
  font-size: .78rem;
}

/* PROFILO */

.ng-user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(86,240,255,.25);
  border-radius: 999px;
  background: rgba(10,22,36,.75);
  color: #b9cadc;
}

/* SONDAGGI */

.ng-poll-option {
  width: 100%;
  margin: 5px 0;
  padding: 12px;
  border: 1px solid #29405a;
  border-radius: 10px;
  background: #0b1624;
  color: #d9e7f5;
  text-align: left;
  cursor: pointer;
}

.ng-poll-option:hover {
  border-color: var(--ng-neon);
}

/* TABELLE */

.ng-table {
  width: 100%;
  border-collapse: collapse;
}

.ng-table th,
.ng-table td {
  padding: 11px;
  border-bottom: 1px solid rgba(86,240,255,.12);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.ng-table th {
  color: #8cf5ff;
  font-size: .7rem;
  letter-spacing: .08em;
}

/* NOTIFICHE */

.ng-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  max-width: min(420px,calc(100vw - 36px));
  padding: 13px 17px;
  border: 1px solid rgba(86,240,255,.45);
  border-radius: 12px;
  background: rgba(7,15,25,.97);
  color: #bff9ff;
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
  animation: ngToast .2s ease both;
}

@keyframes ngToast {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ACCESSIBILITÀ */

.ng-page button:focus-visible,
.ng-page a:focus-visible,
.ng-page input:focus-visible,
.ng-page textarea:focus-visible,
.ng-page select:focus-visible {
  outline: 2px solid var(--ng-neon);
  outline-offset: 3px;
}

/* TABLET */

@media (max-width: 900px) {
  .ng-page {
    padding: 30px 18px 55px;
  }

  .ng-grid-2 {
    grid-template-columns: minmax(0,1fr);
  }

  .ng-stat-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .ng-page-head {
    align-items: flex-start;
  }
}

/* SMARTPHONE */

@media (max-width: 600px) {
  .topline .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .brand {
    font-size: 1rem;
  }

  .navlinks {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-content: stretch;
    width: 100%;
    gap: 7px;
  }

  .navlinks a {
    justify-content: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 6px;
    border: 1px solid rgba(86,240,255,.14);
    border-radius: 9px;
    background: rgba(13,24,39,.75);
    font-size: .78rem;
    white-space: normal;
    text-align: center;
  }

  .ng-page {
    padding: 24px 14px 45px;
  }

  .ng-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 19px;
  }

  .ng-page-head h1 {
    font-size: clamp(2rem,9vw,2.7rem);
  }

  .ng-panel {
    padding: 17px;
    border-radius: 15px;
  }

  .ng-community-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 19px;
  }

  .ng-milestones {
    justify-content: flex-start;
  }

  .ng-daily-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .ng-daily-panel .ng-btn {
    width: 100%;
  }

  .ng-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }

  .ng-stat {
    padding: 12px;
  }

  .ng-game-card {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }

  .ng-game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .ng-reply {
    margin-left: 12px;
    padding-left: 10px;
  }

  .ng-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ng-toolbar {
    gap: 8px;
  }

  .ng-btn {
    max-width: 100%;
  }

  .ng-rank {
    grid-template-columns: 38px minmax(0,1fr);
    gap: 8px;
  }

  .ng-rank span:last-child {
    grid-column: 2;
  }

  .ng-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* SCHERMI MOLTO PICCOLI */

@media (max-width: 360px) {
  .ng-page {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ng-panel {
    padding: 14px;
  }

  .navlinks {
    gap: 5px;
  }

  .navlinks a {
    font-size: .72rem;
  }

  .ng-stat-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/* RIDUZIONE ANIMAZIONI */

@media (prefers-reduced-motion: reduce) {
  .ng-toast {
    animation: none;
  }

  .ng-page *,
  .ng-page *::before,
  .ng-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* COPERTINE DEL CALENDARIO GIOCHI */
.ng-game-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 11px;
  background: #101a2a;
}

.ng-game-no-cover {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100px;
  aspect-ratio: 16 / 9;
  padding: 12px;
  border: 1px dashed rgba(86,240,255,.25);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(13,23,38,.95), rgba(31,20,50,.9));
  color: #9fb0c3;
  font-size: .78rem;
  text-align: center;
}
.ng-game-no-cover[hidden] { display: none; }
