/* ============================================
   222WORLD — wide edition
   full-width nostalgia · times new roman body
   impact display · aero pills · spinning world
   ============================================ */

:root {
  --blue: #0022ee;
  --blue-deep: #001199;
  --red: #ee1111;
  --ink: #111111;
  --meta: #777777;
  --line: #cccccc;
  --magenta: #d6187a;
  --pink: #e34fa0;
  --green: #14a800;
  --gold: #ffd84d;
  --babyblue: #6bbfe3;
  --palepink: #fdf0f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: white;
  color: #000000;
  font-family: 'times new roman';
  font-size: 13pt;
  line-height: 1;
}

@font-face {
  font-family: 'Minecraft';
  src: url('/fonts/Minecraft.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'cc';
  src: url('/fonts/ccfont.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Kenney';
  src: url('/fonts/KenneyPixel.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}


@font-face {
  font-family: 'Corsiva Italic';
  src: url('/fonts/Monotype-Corsiva-Regular-Italic.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

a { color: #0000ff; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ============ animations ============ */
@keyframes tick { to { transform: translateX(-100%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes cycle {              /* warm ticket-palette cycling */
  0%   { color: var(--magenta); }
  33%  { color: var(--red); }
  66%  { color: #e8a500; }
  100% { color: var(--magenta); }
}

.blink { animation: blink 1s steps(1) infinite; color: var(--red); }
.spin  { display: inline-block; animation: spin 6s linear infinite; }
.cycle { animation: cycle 8s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .blink, .spin, .cycle, .ticker span, .player .trackname span,
  .worldline, .headline, .headline span, .tw, .pill::before,
  .counter .digits { animation: none !important; }
  .ticker span, .player .trackname span { padding-left: 0; }
}

/* ============ top ticker ============ */
.ticker {
  border-bottom: 1px solid var(--magenta);
  overflow: hidden; white-space: nowrap;
  padding: 3px 0;
  background: #cfeaf7;
}
.ticker span {
  display: inline-block;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 13px;
  padding-left: 100%;
  animation: tick 26s linear infinite, cycle 8s linear infinite;
}
.ticker.rev { border-top: 1px solid var(--magenta); border-bottom: none; }
.ticker.rev span { animation-direction: reverse, normal; }

/* ============ masthead ============ */
.masthead { text-align: center; padding: 44px 16px 8px; position: relative; }

/* twinkling stars */
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.7) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.25) rotate(20deg); }
}
.tw {
  position: absolute;
  font-size: 26px;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(232,165,0,.7);
  animation: twinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.t1 { left: 12%; top: 30%; }
.t2 { right: 13%; top: 22%; color: var(--magenta); text-shadow: 0 0 6px rgba(214,24,122,.6); animation-delay: -.8s; }
.t3 { left: 22%; bottom: 8%; font-size: 18px; animation-delay: -1.5s; }
.t4 { right: 24%; bottom: 14%; font-size: 20px; color: var(--red); text-shadow: 0 0 6px rgba(238,17,17,.6); animation-delay: -2s; }

.headline {
   display: block;
  font-family: 'Corsiva Italic';
  font-size: clamp(64px, 13vw, 170px);
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(90deg, #0022ee, #9911dd, #ee1111, #e88a00, #0022ee);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue 12s linear infinite;
}

/* lottery-numeral letters: warm wave, magenta -> red -> gold */
@keyframes warm {
  0%   { color: var(--magenta); }
  33%  { color: var(--red); }
  66%  { color: #e8a500; }
  100% { color: var(--magenta); }
}

.headline .globe {
  display: inline-block;
  font-size: .62em;
  vertical-align: .06em;
  animation: spin 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .headline span { animation: none; }
}

/* hand-painted-sign script accent */
.script {
  font-family: 'Corsiva Italic';
  font-style: italic;
  font-size: 1.5em;
  color: var(--magenta);
}

/* vertical stacked-letter ribbon, */
.ribbon {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: Impact;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--magenta);
  background: #fff;
  border: 2px solid var(--magenta);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--pink);
  padding: 12px 4px;
  z-index: 5;
}
@media (max-width: 980px) { .ribbon { display: none; } }

.tagline {
  margin: 10px 0 0;
  font-size: 15px;
  font-style: italic;
  color: var(--meta);
}
.tagline b { color: var(--ink); font-style: normal; }

/* thin rainbow rule that slowly shifts hue */
.worldline {
  height: 2px;
  margin: 26px auto 0;
  max-width: 1400px;
  background: #0000ff;
}

/* ============ aero pill nav, horizontal + wide ============ */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px;
}
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 20px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #eaf6ff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.65);
  background: linear-gradient(#79c7f2 0%, #2a86cf 48%, #0f5aa8 52%, #2a86cf 100%);
  border: 1px solid #0b3f77;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 8px rgba(6,40,70,.45);
  overflow: hidden;
}
.pill::after {
  content: '';
  position: absolute; left: 4px; right: 4px; top: 1px; height: 46%;
  border-radius: 14px;
  background: linear-gradient(rgba(255,255,255,.65), rgba(255,255,255,.06));
  pointer-events: none;
}
.pill:hover {
  color: #fff;
  background: linear-gradient(#93dbff 0%, #3fa0e8 48%, #1b6dc0 52%, #3fa0e8 100%);
}
.pill.here {
  background: linear-gradient(#ff8a80 0%, #d92a1e 48%, #a30d05 52%, #d92a1e 100%);
  border-color: #6d0a04;
}

/* ============ wide content grid ============ */
.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 90px 90px;
}
.content { min-width: 0; }

/* top strip under the nav: player + counter */
.widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  margin: 0 0 54px;
}
.widgets .wbox { min-width: 280px; }
.wbox {
  border: 2px solid var(--babyblue);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--magenta), 0 8px 16px rgba(143,11,4,.12);
  padding: 12px 16px;
  min-width: 250px;
  background: #fff;
  margin: 6px;
}
.wbox h3::before { content: '❁ '; color: var(--pink); }
.wbox h3::after  { content: ' ❁'; color: var(--pink); }
.wbox h3 {
  text-align: center;
  margin: 0 0 8px;
  font-family: Impact, 'Arial Narrow Bold', sans-serif;
  font-weight: normal;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wbox h3 .cycle { font-size: 13px; }

/* player */
.player .trackname {
  font-family: Verdana, Arial, sans-serif;
  font-size: 10px;
  color: var(--blue-deep);
  overflow: hidden; white-space: nowrap;
  border: 1px solid var(--line);
  background: #f4f8ff;
  padding: 3px 6px;
  margin-bottom: 8px;
}
.player .trackname span { display: inline-block; padding-left: 100%; animation: tick 12s linear infinite; }
.player .controls { display: flex; gap: 6px; align-items: center; }
.player button {
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.6);
  background: linear-gradient(#79c7f2, #0f5aa8);
  border: 1px solid #0b3f77;
  border-radius: 14px;
  padding: 3px 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.player button:hover { background: linear-gradient(#93dbff, #1b6dc0); }
.player .vol { flex: 1; accent-color: var(--blue); min-width: 80px; }

/* counter -> xổ số lottery ticket */
.counter { text-align: center; }
.ticket {
  background: linear-gradient(160deg, #fff9d6, var(--gold));
  border: 1px solid var(--magenta);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--pink);
  padding: 9px 12px 7px;
  margin: 0 0 6px;
}
.tk-top {
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 4px;
  white-space: nowrap;
}
.tk-badge {
  display: inline-block;
  background: var(--red);
  color: var(--gold);
  font-size: 9px;
  border-radius: 8px;
  padding: 0 6px;
  border: 1px solid #8f0b04;
}
.counter .digits {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 26px;
  letter-spacing: 5px;
  color: var(--magenta);
  text-shadow:
    -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff,
    2px 2px 0 rgba(143,11,4,.35);
  animation: cycle 8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .counter .digits { animation: none; } }
.tk-words {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--red);
  border-top: 1px dashed var(--magenta);
  margin-top: 3px;
  padding-top: 2px;
}
.counter .label { display: block; color: var(--meta); margin-top: 5px; font-style: italic; font-size: 12px; }

/* ============ sections — sparse, wide, times ============ */
section { margin: 0 0 66px; }

h1 {
  font-family: 'Corsiva Italic';
  font-weight: italic;
  font-size: 54px;
  letter-spacing: 1px;
  text-transform: none;
  color: var(--magenta);
  margin: 0 0 6px;
}
h2 {
  font-family: 'Kenney';
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h2 .spin { font-size: 18px; }

.pagemeta { font-style: italic; color: var(--meta); margin: 0 0 30px; font-size: 13px; }

p { margin: 0 0 16px; max-width: 640px; }

/* two-column wide splits */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}
.split > div { flex: 1; min-width: 260px; }

hr {
  border: none;
  height: 2px;
  margin: 56px 0;
  background: #0000ff;
}

/* updates */
.updates { font-size: 14px; margin: 0; max-width: 640px; }
.updates dt {
  font-family: "Minecraft";
  font-size: 10px;
  font-weight: bold;
  color: var(--red);
  float: left; clear: left; width: 80px;
  padding-top: 3px;
}
.updates dd { margin: 0 0 10px 96px; }

/* cool sites 88x31 */
.buttonwall { display: flex; flex-wrap: wrap; gap: 8px; }
.b88 {
  width: 88px; height: 31px;
  display: flex; align-items: center; justify-content: center;
  font-family: Verdana, Arial, sans-serif;
  font-size: 8px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  border: 1px solid #032b52;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  text-align: center; line-height: 1.15;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.b88:hover { filter: brightness(1.15); }
.b88.v1 { background: linear-gradient(#4a9bff, #08498f); }
.b88.v2 { background: linear-gradient(#ff6a5e, #8f0b04); }
.b88.v3 { background: #000; color: #33ff66; }
.b88.v4 { background: linear-gradient(#7de3ff, #076a9e); }

/* listing rows */
.row { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 640px; }
.row:last-of-type { border-bottom: none; }
.row .rt { font-weight: bold; font-size: 16px; }
.row .rm { font-size: 12px; color: var(--meta); font-style: italic; }

.gbframe {
  width: 100%;
  max-width: 700px;
  height: 600px;
  border: 1px solid var(--ink);
}

/* footer */
.foot {
  border-top: 1px solid var(--ink);
  text-align: center;
  padding: 16px;
  font-style: italic;
  font-size: 12px;
  color: var(--meta);
}
.foot .spin { font-style: normal; }

/* ============ mobile ============ */
@media (max-width: 980px) {
  .wrap { padding: 24px 22px 70px; }
}
@media (max-width: 640px) {
  .split { gap: 24px; }
  .wrap { padding: 20px 16px 60px; }
}
