/* THE DAILY PIXEL NEWS - formato quotidiano */
:root {
  --ink: #1b1b2f;
  --paper: #f3ead3;
  --paper2: #e4d8b8;
  --desk: #15122a;
  --p: #8b5cf6;
  --g: #16a34a;
  --r: #dc2626;
  --y: #eab308;
  --b: #2563eb;
  --ease: cubic-bezier(.645, .045, .355, 1);
  --dur: 1s;
  --w: 1600px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  color: #fff;
  font-family: 'VT323', monospace;
  background:
    linear-gradient(#ffffff07 2px, transparent 2px) 0 0 / 16px 16px,
    linear-gradient(90deg, #ffffff07 2px, transparent 2px) 0 0 / 16px 16px,
    radial-gradient(ellipse at center, #2a2350 0%, var(--desk) 70%);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.stage { display: flex; justify-content: center; }
.scaler { position: relative; }

/* ───────── GIORNALE + TRANSIZIONI ───────── */
.book {
  position: absolute;
  top: 0; left: 0;
  width: var(--w); height: 900px;
  transform-origin: 0 0;
}
.under {
  position: absolute;
  inset: 0;
  background: var(--paper2);
  box-shadow: 6px 6px 0 #c9bc95, 12px 12px 0 #a99d78, 22px 22px 0 #00000066;
}
.pg {
  position: absolute;
  inset: 0;
  visibility: hidden;
  transform-origin: 50% 50%;
  cursor: pointer;
}
.pg.cur   { visibility: visible; z-index: 2; }
.pg.below { visibility: visible; z-index: 1; }
.pg.top   { visibility: visible; z-index: 3; }

.ear {
  position: absolute;
  right: 0; bottom: 0;
  width: 40px; height: 40px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(315deg, var(--paper2) 50%, #d4c69f 50%, #f7f0de 62%);
  transition: width .2s, height .2s;
}
.pg:hover .ear { width: 60px; height: 60px; }

/* ───────── PAGINA ───────── */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--w); height: 900px;
  padding: 20px 28px 12px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.02;
  background-color: var(--paper);
  background-image: repeating-conic-gradient(#00000009 0 25%, #0000 0 50%);
  background-size: 4px 4px;
}
h2, h3, h4, .tag, .foot, .btn, .ps { font-family: 'Press Start 2P', monospace; font-weight: normal; }
.fit { min-height: 0; overflow: hidden; }

.tag {
  display: inline-block;
  font-size: 7px;
  background: var(--c, var(--ink));
  color: #fff;
  padding: 3px 5px;
  margin-bottom: 6px;
}
.by { font-size: .82em; opacity: .65; margin-top: 4px; }
.spr { image-rendering: pixelated; image-rendering: crisp-edges; height: auto; display: block; }

/* filetti verticali tra colonne, come un vero quotidiano */
.rule-l { border-left: 2px solid var(--ink); padding-left: 16px; }
.rule-r { border-right: 2px solid var(--ink); padding-right: 16px; }

/* ───────── TESTATA (prima pagina) ───────── */
.mast {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 6px solid var(--ink);
}
.mast .t1 {
  font-family: 'Press Start 2P';
  font-size: 54px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 4px 4px 0 var(--p), 8px 8px 0 #eab30899;
}
.mast .motto { text-align: center; font-size: 20px; margin-top: 6px; letter-spacing: 1px; }
.ear-box {
  border: 3px solid var(--ink);
  padding: 8px;
  font-family: 'Press Start 2P';
  font-size: 8px;
  line-height: 1.7;
  text-align: center;
  background: #ffffff66;
}
.ear-box .spr { width: 24px; margin: 0 auto 4px; }
.dateline {
  display: flex; justify-content: space-between;
  font-size: 18px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid var(--ink);
}

/* ultim'ora che scorre */
.ticker {
  display: flex; align-items: stretch;
  margin: 8px 0 12px;
  border: 3px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 19px;
  overflow: hidden;
}
.ticker b {
  font-family: 'Press Start 2P'; font-size: 9px; font-weight: normal;
  background: var(--r); color: #fff;
  padding: 7px 10px;
  display: flex; align-items: center;
  flex-shrink: 0;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { background: #991b1b; } }
.tk { flex: 1; overflow: hidden; display: flex; align-items: center; }
.track { display: inline-block; white-space: nowrap; padding-left: 20px; animation: tick 60s linear infinite; }
.track span::after { content: '  ◆  '; color: var(--y); white-space: pre; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ───────── PRIMA PAGINA ───────── */
.front-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 16px;
}
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.brevi h4, .block-h {
  font-size: 10px;
  padding: 6px 0;
  margin-bottom: 8px;
  border-top: 4px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.brevi { flex: 1.3; }
.brevi li { list-style: none; padding: 5px 0; border-bottom: 1px dashed #1b1b2f66; }
.brevi li b { font-family: 'Press Start 2P'; font-size: 8px; font-weight: normal; margin-right: 4px; }

/* articolo d'apertura */
.lead { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.lead.stack { flex: 1.7; }
.hero-wrap { position: relative; flex-shrink: 0; }
.lead.stack .hero-wrap { height: 210px; }
/* only one big story on the front page */
.lead.solo .hero-wrap { height: 300px; }
.lead.solo h2 { font-size: 30px; line-height: 1.35; margin-bottom: 10px; }
.lead.solo .sub { font-size: 1.35em; }
.lead.solo .lead-txt { font-size: 23px; }
.lead.solo .lead-cols p:first-child::first-letter { font-size: 46px; }
.hero {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  border: 4px solid var(--ink);
}
.cap {
  position: absolute; left: 4px; right: 4px; bottom: 4px;
  background: #1b1b2fcc; color: var(--paper);
  font-size: 16px; padding: 2px 8px;
}
.lead-txt { flex: 1; display: flex; flex-direction: column; }
.lead h2 { font-size: 22px; line-height: 1.4; margin-bottom: 6px; }
.lead .sub { font-size: 1.15em; font-style: italic; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px dashed var(--ink); }
.lead-cols { column-count: 3; column-gap: 18px; column-rule: 1px solid #1b1b2f55; flex: 1; min-height: 0; overflow: hidden; }
.lead-cols p { margin-bottom: 6px; text-indent: 1em; }
.lead-cols p:first-child { text-indent: 0; }
.lead-cols p:first-child::first-letter {
  float: left;
  font-family: 'Press Start 2P'; font-size: 34px; line-height: 1;
  margin: 2px 8px 0 0;
  color: var(--c);
}

.duo { flex: 1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; min-height: 0; border-top: 4px solid var(--ink); padding-top: 10px; }
.duo .item + .item { border-left: 2px solid var(--ink); padding-left: 16px; }

/* notizia singola */
.item { display: flex; flex-direction: column; }
.item h3 { font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
.item h3 .spr {
  float: left;
  width: 40px;
  padding: 5px;
  margin: 2px 10px 2px 0;
  background: var(--c);
  border: 3px solid var(--ink);
  box-sizing: content-box;
}

/* richiami in fondo */
.teasers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 6px solid var(--ink);
}
.teaser {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 8px 10px;
  border: 3px solid var(--c);
  background: #ffffff66;
  color: var(--ink);
  text-decoration: none;
}
.teaser .thumb { grid-row: span 2; width: 48px; height: 48px; background: var(--c); border: 3px solid var(--ink); display: grid; place-items: center; }
.teaser .thumb .spr { width: 30px; }
.teaser b { font-family: 'Press Start 2P'; font-size: 7px; font-weight: normal; color: var(--c); }
.teaser span { font-size: 18px; }
.teaser:hover { background: var(--c); color: #fff; }
.teaser:hover b { color: #fff; }

.stamp {
  position: absolute;
  top: 14px; right: 14px;
  font-family: 'Press Start 2P'; font-size: 10px; line-height: 1.6; text-align: center;
  color: var(--r);
  border: 4px solid var(--r);
  background: var(--paper);
  padding: 6px 10px;
  transform: rotate(8deg);
  z-index: 2;
}

/* ───────── TESTATA PICCOLA (pagine interne) ───────── */
.mast-s {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 6px solid var(--ink);
}
.mast-s .t2 { font-family: 'Press Start 2P'; font-size: 16px; }
.mast-s .secname {
  font-family: 'Press Start 2P'; font-size: 26px;
  background: var(--c); color: #fff;
  padding: 10px 18px;
  box-shadow: 4px 4px 0 var(--ink);
}
.mast-s .info { font-size: 18px; text-transform: uppercase; text-align: right; }

/* ───────── PAGINE DI SEZIONE ───────── */
.sec-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 3.1fr 1fr; column-gap: 18px; }
.main { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.lead.side { flex-direction: row; flex: 0 0 300px; gap: 18px; }
.lead.side .hero-wrap { width: 38%; height: 100%; }
.lead.side .lead-cols { column-count: 2; }
.items {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-top: 4px solid var(--ink);
}
.items .item { padding: 10px 14px 6px; }
.items .item:nth-child(3n+1) { padding-left: 0; }
.items .item:nth-child(3n) { padding-right: 0; }
.items .item:not(:nth-child(3n+1)) { border-left: 2px solid var(--ink); }
.items .item:nth-child(n+4) { border-top: 2px dashed var(--ink); }

.strip {
  display: flex; align-items: stretch;
  border-top: 4px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 6px 0;
  font-size: 17px;
}
.strip > b { font-family: 'Press Start 2P'; font-size: 8px; font-weight: normal; background: var(--c); color: #fff; padding: 6px 8px; display: flex; align-items: center; margin-right: 10px; }
.strip > span { flex: 1; padding: 0 10px; border-left: 1px dashed #1b1b2f88; }
.strip > span i { font-style: normal; font-family: 'Press Start 2P'; font-size: 7px; display: block; margin-bottom: 3px; }
.side-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

/* ───────── RIQUADRI (widget) ───────── */
.widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--ink);
  background: #ffffff66;
  box-shadow: 4px 4px 0 var(--c);
}
.widget h4 {
  font-size: 9px;
  background: var(--c); color: #fff;
  padding: 7px 10px;
  border-bottom: 3px solid var(--ink);
  flex-shrink: 0;
}
.widget .wb { padding: 8px 10px; min-height: 0; }
.wl li, .ann li { list-style: none; padding: 3px 0 3px 16px; position: relative; }
.wl li::before { content: '▸'; position: absolute; left: 0; color: var(--c); }
.ann li { padding-left: 0; border-bottom: 1px dashed #1b1b2f66; }
.ann li::first-line { font-weight: bold; }

.sched li { list-style: none; display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #1b1b2f66; }
.sched b { font-family: 'Press Start 2P'; font-size: 8px; font-weight: normal; background: var(--ink); color: var(--paper); padding: 3px; text-align: center; align-self: start; }

.bars li { list-style: none; margin-bottom: 7px; }
.bars .row { display: flex; justify-content: space-between; }
.bars .bar { height: 12px; border: 2px solid var(--ink); background: #0000000d; margin-top: 2px; }
.bars .bar i { display: block; height: 100%; background: var(--c); }

.widget table { width: 100%; border-collapse: collapse; }
.widget th { font-family: 'Press Start 2P'; font-size: 7px; font-weight: normal; text-align: left; padding: 4px; border-bottom: 2px solid var(--ink); }
.widget td { padding: 3px 4px; border-bottom: 1px dashed #1b1b2f66; }

.meteo li { list-style: none; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px dashed #1b1b2f66; }
.meteo .spr { width: 30px; }
.meteo small { display: block; opacity: .7; }
.meteo em { font-style: normal; font-family: 'Press Start 2P'; font-size: 7px; }

/* section page laid out like the front page */
.sec-front .strip-wrap { grid-column: 1 / -1; margin-top: 12px; }
.sec-front .lead.solo .hero-wrap { height: 330px; }

/* video / clip / creator features */
.feat { display: grid; grid-template-columns: 52px 1fr; column-gap: 10px; align-items: center; margin-bottom: 6px; }
.feat-thumb { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; background: var(--c); border: 3px solid var(--ink); }
.feat-thumb .spr { width: 32px; }
.feat b { font-size: 1.1em; font-weight: normal; }
.feat small { opacity: .7; }
.go {
  display: inline-block; margin-top: 6px;
  font-family: 'Press Start 2P'; font-size: 8px;
  padding: 6px 8px;
  color: var(--ink); text-decoration: none;
  background: var(--c);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.go:active { transform: translate(3px, 3px); box-shadow: none; }
.chatbubble {
  position: relative;
  font-family: 'Press Start 2P'; font-size: 13px; line-height: 1.5;
  padding: 10px 12px;
  margin: 2px 0 12px;
  background: var(--ink); color: #fff;
}
.chatbubble::after { content: ''; position: absolute; left: 16px; bottom: -10px; border: 5px solid transparent; border-top-color: var(--ink); border-left-color: var(--ink); }
.vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vs b { flex: 1; text-align: center; font-family: 'Press Start 2P'; font-size: 8px; font-weight: normal; padding: 8px 4px; border: 3px solid var(--ink); background: #fff; }
.vs span { font-family: 'Press Start 2P'; font-size: 12px; color: var(--r); }

/* free games */
.free li { list-style: none; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #1b1b2f66; }
.free .store { font-family: 'Press Start 2P'; font-size: 7px; text-align: center; padding: 5px 2px; background: var(--ink); color: var(--paper); }
.free b { display: block; font-weight: normal; font-size: 1.1em; }
.free small { opacity: .75; }
.free s { opacity: .7; }
.free-note { margin-top: 6px; font-size: .8em; opacity: .6; }

/* poll */
.poll-q { margin-bottom: 8px; font-size: 1.1em; }
.poll-opt {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  margin-bottom: 6px;
  padding: 6px 8px;
  font-family: 'VT323', monospace; font-size: 1em; text-align: left;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  overflow: hidden;
}
.poll-opt:hover:not(.done) { background: #fef9c3; }
.poll-opt.done { cursor: default; box-shadow: none; }
.poll-opt.mine { border-color: var(--g); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #eab30866; transition: width .6s; }
.poll-opt.mine .poll-bar { background: #16a34a55; }
.poll-t, .poll-p { position: relative; }
.poll-p { font-family: 'Press Start 2P'; font-size: 8px; }
.poll-note { font-size: .75em; opacity: .6; }

blockquote { font-size: 1.2em; line-height: 1.1; }
blockquote cite { display: block; margin-top: 8px; font-size: .75em; opacity: .7; }

.oro div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #1b1b2f66; }
.oro dt { font-family: 'Press Start 2P'; font-size: 7px; padding-top: 3px; color: var(--c); }

.staff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; text-align: center; }
.staff .spr { width: 34px; margin: 0 auto 4px; background: var(--ink); padding: 4px; box-sizing: content-box; }
.staff b { display: block; font-family: 'Press Start 2P'; font-size: 7px; font-weight: normal; }
.staff small { font-size: 16px; opacity: .7; }

.answers { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.answers button, .nl button {
  font-family: 'Press Start 2P'; font-size: 8px;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.answers button:active, .nl button:active { transform: translate(3px, 3px); box-shadow: none; }
.answers button.ok { background: var(--g); color: #fff; }
.answers button.ko { background: var(--r); color: #fff; }
.out { margin-top: 6px; min-height: 1em; }
.nl .row { display: flex; gap: 8px; margin-top: 8px; }
.nl input {
  flex: 1; min-width: 0;
  font-family: 'VT323'; font-size: 20px;
  padding: 4px 8px;
  border: 3px solid var(--ink);
  background: #fff; color: var(--ink);
}
.nl button { background: var(--y); }

/* ───────── ULTIMA PAGINA ───────── */
.last-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 18px; }

/* ───────── PIXEL WORD ───────── */
.wordgame { flex: 1; }
.wordgame .wb { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px; }
.wg-hint { font-size: 19px; text-align: center; }
.wg-hint b { font-family: 'Press Start 2P'; font-size: 9px; font-weight: normal; background: var(--ink); color: var(--paper); padding: 3px 6px; }
.wg-grid { display: grid; grid-template-columns: repeat(5, 50px); gap: 6px; }
.wg-tile {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  font-family: 'Press Start 2P'; font-size: 20px;
  border: 3px solid var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 #0002;
}
.wg-tile.typed { border-color: var(--p); background: #f5f3ff; }
.s-g { background: var(--g) !important; color: #fff !important; }
.s-y { background: var(--y) !important; color: var(--ink) !important; }
.s-x { background: #6b6880 !important; color: #fff !important; }
.wg-msg { min-height: 22px; font-size: 20px; text-align: center; }
.wg-kb { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wg-row { display: flex; gap: 4px; }
.wg-key {
  width: 31px; height: 40px; padding: 0;
  font-family: 'Press Start 2P'; font-size: 10px;
  border: 2px solid var(--ink);
  background: #fff; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.wg-key.wide { width: 54px; font-size: 7px; }
.wg-key:active { transform: translate(2px, 2px); box-shadow: none; }
.wg-share {
  font-family: 'Press Start 2P'; font-size: 8px;
  padding: 8px 10px;
  border: 3px solid var(--ink);
  background: var(--y);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

/* ───────── ARTIST OF THE DAY (hand-drawn: deliberately NOT pixel) ───────── */
.pg-artista {
  --ink2: #2b2118;
  color: var(--ink2);
  background-color: #fbf6ea;
  background-image:
    radial-gradient(circle at 20% 30%, #00000008 0 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, #00000006 0 1px, transparent 2px),
    linear-gradient(180deg, #fffaf0, #f4ecd9);
  background-size: 7px 9px, 11px 13px, 100% 100%;
  font-family: 'Patrick Hand', cursive;
}
.art-strip {
  display: flex; justify-content: space-between;
  font-family: 'Press Start 2P'; font-size: 8px;
  background: var(--ink); color: var(--paper);
  padding: 7px 10px;
  margin-bottom: 14px;
}
.art-grid { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; padding: 4px 10px 0; }
.art-frame {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 0;
  margin: 8px 0 14px;
  padding: 16px 16px 8px;
  background: #fff;
  transform: rotate(-1.2deg);
  box-shadow: 6px 8px 0 #0000001a, 0 14px 34px #0000002e;
}
.art-frame .artwork { flex: 1; min-height: 0; width: 100%; display: block; }
.art-frame figcaption { font-family: 'Caveat', cursive; font-size: 26px; text-align: center; padding-top: 4px; }
.tape { position: absolute; width: 130px; height: 34px; background: #f1e3aecc; box-shadow: 0 1px 3px #0002; z-index: 2; }
.tape.t1 { top: -14px; left: 40px; transform: rotate(-6deg); }
.tape.t2 { top: -12px; right: 50px; transform: rotate(5deg); }
.postit {
  position: absolute;
  bottom: 70px; right: -46px;
  width: 270px;
  padding: 16px 18px;
  font-family: 'Caveat', cursive; font-size: 24px; line-height: 1.05;
  background: #fde68a;
  box-shadow: 3px 8px 14px #0003;
  transform: rotate(4deg);
  z-index: 3;
}
.postit::before { content: ''; position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: #ffffff88; transform: rotate(-3deg); }

.art-side { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; font-size: 22px; }
.hand-title {
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 3.2em; line-height: .9;
  color: #c2410c;
  text-decoration: underline wavy #f59e0b 3px;
  text-underline-offset: 12px;
  transform: rotate(-2deg);
}
.art-week { font-family: 'Caveat', cursive; font-size: 1.25em; line-height: 1; margin-top: 10px; color: #7c2d12; }
.art-name { font-family: 'Caveat', cursive; font-weight: 700; font-size: 2.1em; line-height: 1; }
.art-role { font-size: .9em; opacity: .75; }
.art-bio { line-height: 1.25; }
.art-quote { font-family: 'Caveat', cursive; font-size: 1.5em; line-height: 1; padding-left: 14px; border-left: 4px solid #f59e0b; }
.art-h { font-family: 'Caveat', cursive; font-size: 1.25em; color: #c2410c; }
.sponsor {
  margin-top: auto;
  padding: 10px 12px;
  border: 2.5px dashed var(--ink2);
  border-radius: 20px 6px 24px 8px / 8px 22px 6px 20px;
  background: repeating-linear-gradient(45deg, #0000 0 10px, #00000008 10px 20px);
}
.sp-head { display: flex; flex-direction: column; margin-bottom: 6px; }
.sp-head b { font-family: 'Caveat', cursive; font-size: 1.5em; line-height: 1; }
.sp-head small { font-size: .7em; opacity: .65; letter-spacing: .5px; }
.sp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-opt { display: flex; flex-direction: column; gap: 2px; font-size: .78em; line-height: 1.15; }
.sp-opt b { font-family: 'Caveat', cursive; font-size: 1.45em; line-height: 1; }
.sk-mini { width: 100%; max-height: 80px; }
.art-links { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.sk-btn {
  display: inline-block;
  padding: 5px 14px;
  font-size: .9em;
  color: var(--ink2);
  text-decoration: none;
  background: #fff;
  border: 2.5px solid var(--ink2);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 2px 3px 0 #0000001f;
}
.sk-btn:nth-child(odd) { transform: rotate(-1.5deg); }
.sk-btn:nth-child(even) { transform: rotate(1.2deg); }
.sk-btn small { opacity: .6; }
.sk-btn:hover { background: #fde68a; }
.ads { margin-top: auto; }
.ad-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 14px;
  text-align: center;
  border: 2.5px dashed var(--ink2);
  border-radius: 20px 6px 24px 8px / 8px 22px 6px 20px;
  background: repeating-linear-gradient(45deg, #0000 0 10px, #00000008 10px 20px);
}
.ad-slot small { font-size: 14px; letter-spacing: 2px; opacity: .6; }
.ad-slot b { font-family: 'Caveat', cursive; font-size: 32px; line-height: 1; }
.ad-slot span { font-size: 18px; }

/* piè di pagina */
.foot {
  display: flex; justify-content: space-between;
  font-size: 7px;
  padding-top: 8px;
  margin-top: 10px;
  border-top: 2px solid var(--ink);
}


/* ───────── CONTROLLI ───────── */
.controls { display: flex; align-items: center; gap: 10px; font-family: 'Press Start 2P'; font-size: 9px; }
.tabs { display: flex; gap: 6px; }
.btn {
  font-size: 9px;
  padding: 7px 11px;
  border: none;
  background: var(--y);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset -3px -3px 0 #0000004d, 0 0 0 3px var(--ink);
}
.btn:hover { filter: brightness(1.1); }
.btn:active { box-shadow: inset 3px 3px 0 #0000004d, 0 0 0 3px var(--ink); }
.btn:disabled { opacity: .35; cursor: default; }
.btn-sm { font-size: 8px; background: #cbd5e1; }
.tab { background: #3b3466; color: #fff; }
.tab.on { background: var(--y); color: var(--ink); }
@media (max-width: 700px) {
  .tabs .tab:not(.on) { display: none; }
}

/* ── Gaming page: new boxes ── */
.rec { display: grid; gap: 2px; text-align: center; }
.rec-t { font-family: 'Press Start 2P'; font-size: 20px; color: var(--ink); background: var(--c); border: 3px solid var(--ink); padding: 8px 4px; margin-bottom: 4px; }
.rec b { font-weight: normal; font-size: 1.15em; }
.rec small { opacity: .75; }
.subs .store { font-size: 6px; }
.deb-tema { font-size: .95em; margin-bottom: 6px; }

/* boxes that open bigger */
.has-more { cursor: pointer; position: relative; }
.has-more:hover { box-shadow: 6px 6px 0 var(--c); }
.more-btn {
  align-self: flex-end; margin: auto 8px 8px 0;
  font-family: 'Press Start 2P'; font-size: 7px; cursor: pointer;
  padding: 5px 7px; color: #fff; background: var(--ink);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--c);
}
.more-btn:hover { background: var(--c); color: var(--ink); }

/* the enlarged box */
.more-ov {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
  background: #15122acc;
  animation: more-fade .15s ease-out;
}
.more-ov[hidden] { display: none; }
.more-card {
  position: relative; width: min(640px, 100%); max-height: 88vh; overflow: auto;
  color: var(--ink); background: var(--paper);
  border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--c);
  padding: 26px 28px 22px;
  font-size: 22px; line-height: 1.2;
  animation: more-pop .18s ease-out;
  user-select: text; -webkit-user-select: text;
}
.more-x {
  position: absolute; top: 10px; right: 10px;
  font-family: 'Press Start 2P'; font-size: 11px; cursor: pointer;
  width: 34px; height: 34px; color: #fff; background: var(--ink); border: 0;
}
.more-x:hover { background: var(--c); }
.more-kick { display: inline-block; font-family: 'Press Start 2P'; font-size: 9px; color: #fff; background: var(--c); border: 2px solid var(--ink); padding: 5px 8px; margin-bottom: 12px; }
.more-body h2 { font-family: 'Press Start 2P'; font-size: 20px; line-height: 1.35; font-weight: normal; margin-right: 36px; }
.more-sub { font-style: italic; opacity: .8; margin: 6px 0 12px; }
.more-rows { display: grid; gap: 0; margin: 8px 0 14px; border-top: 3px solid var(--ink); }
.more-rows div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed #1b1b2f66; }
.more-rows dt { font-family: 'Press Start 2P'; font-size: 9px; padding-top: 4px; }
.more-body > p { margin-bottom: 10px; }
.more-body .go { font-size: 9px; margin: 4px 0 10px; }
.more-src { font-size: .8em; opacity: .65; }
@keyframes more-fade { from { opacity: 0; } }
@keyframes more-pop { from { transform: scale(.92); opacity: 0; } }
@media (max-width: 520px) {
  .more-card { font-size: 19px; padding: 20px 16px 16px; }
  .more-body h2 { font-size: 15px; }
  .more-rows div { grid-template-columns: 1fr; gap: 2px; }
}

/* EARLIER THIS WEEK: past daily leads, each one opens bigger */
.arch li { list-style: none; border-bottom: 1px dashed #1b1b2f66; }
.arch button {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  padding: 5px 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: none; border: 0;
}
.arch b { font-family: 'Press Start 2P'; font-size: 7px; font-weight: normal; background: var(--ink); color: var(--paper); padding: 3px 4px; }
.arch i { font-style: normal; font-family: 'Press Start 2P'; font-size: 9px; }
.arch button:hover span { text-decoration: underline; }
.widget:has(.arch) { flex: 0 0 auto; }

/* ── PIXEL WORD streak ── */
.wg-stats { display: flex; gap: 6px; }
.wg-stats span { font-family: 'Press Start 2P'; font-size: 7px; padding: 5px 7px; background: #fff; border: 2px solid var(--ink); }
.wg-stats b { font-weight: normal; font-size: 9px; }
.wg-fire.hot { background: #f97316; color: #fff; }
.wg-fire.hot::before { content: '▲ '; }

/* ── SPOT THE DIFFERENCE ── */
.spotgame { flex: 1; }
.spotgame .wb { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.sd-hint { font-size: 19px; }
.sd-hint b { font-family: 'Press Start 2P'; font-size: 10px; font-weight: normal; }
.sd-pics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.sd-pics canvas {
  width: 100%; height: auto; display: block; cursor: crosshair;
  image-rendering: pixelated; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--c);
}
.sd-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sd-dots { display: flex; gap: 5px; }
.sd-dots i { width: 16px; height: 16px; border: 2px solid var(--ink); background: #fff; }
.sd-dots i.on { background: var(--g); }
.sd-msg { flex: 1; font-size: 20px; }
.sd-show {
  font-family: 'Press Start 2P'; font-size: 7px; cursor: pointer;
  padding: 6px 8px; background: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}

/* ── RENT THIS SPOT ── */
.rent-big {
  display: grid; gap: 4px; text-align: center; padding: 12px 8px; margin-bottom: 10px;
  border: 3px dashed var(--ink); background: repeating-linear-gradient(45deg, #fff8, #fff8 6px, #fde04755 6px, #fde04755 12px);
}
.rent-big b { font-family: 'Press Start 2P'; font-size: 9px; font-weight: normal; }
.rent-big span { font-size: 1.1em; }
.rent-big small, .rent-small small { font-size: .8em; opacity: .65; }
.rent-small li { list-style: none; display: grid; gap: 2px; padding: 7px 8px; margin-bottom: 7px; border: 2px dashed #1b1b2f99; background: #fff9; }
.rent-inv { font-size: .95em; font-style: italic; }
/* rent zone as a strip under the game */
.widget:has(.rent-big) { flex: 0 0 auto; }
.widget:has(.rent-big) .wb { display: grid; grid-template-columns: 1fr 3fr; gap: 10px; align-items: stretch; }
.widget:has(.rent-big) .rent-big { margin: 0; align-content: center; }
.widget:has(.rent-big) .rent-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.widget:has(.rent-big) .rent-small li { margin: 0; }
.widget:has(.rent-big) .rent-inv { grid-column: 1 / -1; }
/* image scenes: keep the pictures from pushing the page over */
.sd-pics canvas { width: auto; max-width: 100%; max-height: 415px; justify-self: center; }

/* ── SPOT THE DIFFERENCE · full screen ── */
.sd-full {
  font-family: 'Press Start 2P'; font-size: 7px; cursor: pointer;
  padding: 6px 8px; color: #fff; background: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--c);
}
.sd-ov {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 18px 18px;
  color: var(--ink); background: var(--paper);
  font-family: 'VT323', monospace; font-size: 22px;
  user-select: none; -webkit-user-select: none;
}
.sd-ov[hidden] { display: none; }
.sd-ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; color: #fff; background: var(--c); border: 3px solid var(--ink); }
.sd-ov-head b { font-family: 'Press Start 2P'; font-size: 11px; font-weight: normal; }
.sd-ov-x { font-family: 'Press Start 2P'; font-size: 12px; width: 36px; height: 36px; cursor: pointer; color: #fff; background: var(--ink); border: 0; }
.sd-ov .wb { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sd-ov .sd-pics { flex: 1; min-height: 0; align-items: center; gap: 18px; }
.sd-ov .sd-pics canvas { max-height: none; height: auto; width: min(100%, calc((100vh - 170px) * var(--ar, 1.34))); }
.sd-ov .sd-msg { font-size: 24px; }
.sd-ov .sd-show, .sd-ov .sd-full { font-size: 9px; padding: 8px 10px; }
@media (max-aspect-ratio: 1/1) {
  /* phone held upright: one picture above the other */
  .sd-ov .sd-pics { grid-template-columns: minmax(0, 1fr); }
  .sd-ov .sd-pics canvas { width: min(100%, calc((50vh - 110px) * var(--ar, 1.34))); }
}
.sd-hint .sd-day { font-family: 'Press Start 2P'; font-size: 8px; font-weight: normal; color: #fff; background: var(--ink); padding: 3px 6px; }
.art-info { align-self: flex-end; margin-top: 2px; font-family: 'Caveat', cursive; font-size: 24px; font-weight: 700; color: #2b2118; text-decoration: underline wavy #dc2626; }
