/* ============================================
   MICHUL SELLOR - OFFICIAL STYLESHEET
   EST. 2026 - MADE WITH NOTEPAD.EXE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ---- RESET & BASE ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000000;
  background-image:
    radial-gradient(circle, #F7931A22 1px, transparent 1px),
    radial-gradient(circle, #FFD70011 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  color: #FFD700;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 1.8vw, 14px);
  line-height: 1.6;
  cursor: default;
}

/* Tiled BTC pattern overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext x='10' y='40' font-size='30' fill='%23F7931A' opacity='0.04'%3E%E2%82%BF%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, .press-start {
  font-family: 'Press Start 2P', monospace;
  text-shadow: 3px 3px 0px #000, 5px 5px 0px #F7931A44;
}

h1 {
  font-size: clamp(1em, 5vw, 2.2em);
  color: #F7931A;
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(0.75em, 3vw, 1.4em);
  color: #FFD700;
  margin: 20px 0 10px;
}

h3 {
  font-size: clamp(0.65em, 2.5vw, 1em);
  color: #39FF14;
}

a {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: #F7931A;
  text-decoration: underline;
  text-shadow: 0 0 8px #F7931A;
}

a:visited {
  color: #FFD700;
}

p {
  margin-bottom: 10px;
}

/* ---- BLINK ANIMATION ---- */
@keyframes blink {
  0%   { opacity: 1; }
  49%  { opacity: 1; }
  50%  { opacity: 0; }
  99%  { opacity: 0; }
  100% { opacity: 1; }
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink-fast {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.blink-fast {
  animation: blink-fast 0.4s step-end infinite;
}

/* ---- RAINBOW ANIMATION ---- */
@keyframes rainbow {
  0%   { color: #F7931A; }
  14%  { color: #FFD700; }
  28%  { color: #39FF14; }
  42%  { color: #00FFFF; }
  57%  { color: #FF00FF; }
  71%  { color: #FF3333; }
  85%  { color: #FF8800; }
  100% { color: #F7931A; }
}

.rainbow {
  animation: rainbow 1.5s linear infinite;
}

/* ---- GLOW ANIMATION ---- */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px #F7931A, 0 0 20px #F7931A, 3px 3px 0 #000; }
  50%       { text-shadow: 0 0 30px #FFD700, 0 0 60px #F7931A, 3px 3px 0 #000; }
}

.glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ---- MARQUEE STYLING ---- */
marquee {
  background-color: #F7931A;
  color: #000000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75em;
  padding: 8px 0;
  border-top: 3px solid #FFD700;
  border-bottom: 3px solid #FFD700;
  font-weight: bold;
  letter-spacing: 1px;
}

marquee.bottom-marquee {
  background-color: #000;
  color: #39FF14;
  border-color: #39FF14;
  font-size: 0.65em;
  margin-top: 20px;
}

/* ---- NAV BAR ---- */
.nav-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #000000;
  border: 3px solid #F7931A;
  margin-bottom: 0;
}

.nav-table td {
  text-align: center;
  padding: 0;
}

.nav-table a {
  display: block;
  padding: 10px 16px;
  background-color: #000000;
  color: #F7931A;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6em;
  border-right: 2px solid #F7931A;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.1s;
}

.nav-table td:last-child a {
  border-right: none;
}

.nav-table a:hover {
  background-color: #F7931A;
  color: #000000;
  text-shadow: none;
}

.nav-table a.active {
  background-color: #F7931A22;
  color: #FFD700;
}

/* ---- PAGE WRAPPER ---- */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px 40px;
  position: relative;
  z-index: 1;
}

/* ---- MAIN HEADER AREA ---- */
.site-header {
  text-align: center;
  padding: 30px 0 20px;
  border-bottom: 4px dashed #F7931A;
  margin-bottom: 20px;
}

.site-header h1 {
  font-size: clamp(1.2em, 4vw, 2.8em);
  margin-bottom: 10px;
}

.tagline {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75em;
  color: #39FF14;
  margin-top: 10px;
  text-shadow: 2px 2px 0 #000;
}

/* ---- SECTION BOXES ---- */
.section-box {
  border: 3px solid #F7931A;
  background-color: #0a0a0a;
  padding: 20px;
  margin: 20px 0;
  position: relative;
}

.section-box::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border: 1px dashed #FFD70044;
  pointer-events: none;
}

.section-box h2 {
  border-bottom: 2px solid #F7931A;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* ---- STAT BOX ---- */
.stat-box {
  display: inline-block;
  border: 3px solid #F7931A;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a00 100%);
  padding: 15px 20px;
  margin: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6em;
  color: #FFD700;
  text-align: center;
  min-width: 160px;
  box-shadow: 4px 4px 0 #F7931A44, inset 0 0 20px #F7931A11;
  vertical-align: top;
}

.stat-box .stat-label {
  color: #F7931A;
  font-size: 0.85em;
  margin-bottom: 8px;
  display: block;
}

.stat-box .stat-value {
  color: #FFD700;
  font-size: 1.1em;
  display: block;
  word-break: break-all;
}

.stat-box.red-box {
  border-color: #FF3333;
  color: #FF3333;
  box-shadow: 4px 4px 0 #FF333344;
}

.stat-box.red-box .stat-label {
  color: #FF6666;
}

.stat-box.red-box .stat-value {
  color: #FF3333;
}

.stat-box.green-box {
  border-color: #39FF14;
  color: #39FF14;
  box-shadow: 4px 4px 0 #39FF1444;
}

.stat-box.green-box .stat-label {
  color: #39FF14;
}

/* ---- STAT BOXES CONTAINER ---- */
.stat-boxes-wrap {
  text-align: center;
  padding: 10px 0;
}

/* ---- VISITOR COUNTER ---- */
.visitor-counter {
  border: 4px ridge #F7931A;
  background-color: #000;
  color: #39FF14;
  font-family: 'Courier New', monospace;
  font-size: 1.4em;
  font-weight: bold;
  padding: 8px 20px;
  display: inline-block;
  letter-spacing: 4px;
  text-shadow: 0 0 10px #39FF14;
  margin: 10px auto;
  box-shadow: inset 0 0 10px #39FF1422, 0 0 15px #39FF1444;
}

/* ---- UNDER CONSTRUCTION ---- */
.under-construction {
  text-align: center;
  border: 3px dashed #FFD700;
  padding: 15px;
  margin: 20px 0;
  background: repeating-linear-gradient(
    45deg,
    #000 0px,
    #000 10px,
    #1a1a00 10px,
    #1a1a00 20px
  );
  font-family: 'Press Start 2P', monospace;
  color: #FFD700;
  font-size: 0.65em;
}

/* ---- MEME GRID ---- */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.meme-frame {
  border: 4px ridge #F7931A;
  background-color: #0a0a00;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: #F7931A;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55em;
  position: relative;
  overflow: visible;
}

.meme-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.meme-frame::after {
  content: '₿';
  position: absolute;
  font-size: 5em;
  opacity: 0.05;
  font-family: monospace;
}

.meme-frame:hover {
  border-color: #FFD700;
  background-color: #1a0a00;
  box-shadow: 0 0 20px #F7931A44;
}

.meme-placeholder {
  font-size: 3em;
  margin-bottom: 10px;
  animation: blink 1.5s step-end infinite;
}

/* ---- LINKS PAGE ---- */
.links-section {
  border: 2px solid #F7931A44;
  background: #050505;
  padding: 15px 20px;
  margin: 15px 0;
}

.links-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8em;
  color: #F7931A;
  border-bottom: 1px dotted #F7931A;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.links-section ul {
  list-style: none;
  padding: 0;
}

.links-section ul li {
  padding: 6px 0;
  border-bottom: 1px solid #1a1a1a;
}

.links-section ul li::before {
  content: '★ ';
  color: #F7931A;
  display: inline-block;
  animation: rainbow 2s linear infinite;
}

.links-section ul li a {
  color: #00BFFF;
  font-size: 0.95em;
}

.links-section ul li a:hover {
  color: #FFD700;
}

/* ---- LORE / TEXT BLOCKS ---- */
.lore-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.6em, 1.5vw, 1.1em);
  color: #FFD700;
  line-height: 2;
  padding: 10px;
  border-left: 4px solid #F7931A;
  margin: 10px 0;
}

/* ---- DIVIDERS ---- */
hr.fancy {
  border: none;
  height: 4px;
  background: linear-gradient(90deg, transparent, #F7931A, #FFD700, #F7931A, transparent);
  margin: 20px 0;
}

hr.dotted {
  border: none;
  border-top: 2px dotted #F7931A44;
  margin: 15px 0;
}

/* ---- GUESTBOOK / IFRAME ---- */
.guestbook-wrapper {
  border: 3px solid #F7931A;
  padding: 5px;
  background: #000;
}

/* ---- OLDSCHOOL TABLE LAYOUT ---- */
.layout-table {
  width: 100%;
  border-collapse: collapse;
}

.layout-table td {
  vertical-align: top;
  padding: 10px;
}

.layout-table .sidebar {
  width: 180px;
  border-right: 2px dashed #F7931A44;
}

/* ---- OLDSCHOOL COLORED TABLE ---- */
.oldschool-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid #F7931A;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55em;
}

.oldschool-table th {
  background-color: #F7931A;
  color: #000;
  padding: 8px;
  text-align: center;
}

.oldschool-table td {
  padding: 8px;
  border: 1px solid #F7931A44;
  color: #FFD700;
}

.oldschool-table tr:nth-child(odd) td {
  background-color: #0a0500;
}

.oldschool-table tr:nth-child(even) td {
  background-color: #050500;
}

.oldschool-table tr:hover td {
  background-color: #1a0a00;
}

/* ---- CHART PAGE ---- */
.chart-container {
  background: #0a0500;
  border: 3px solid #F7931A;
  padding: 20px;
  margin: 20px 0;
}

/* ---- COMMENTARY BOX ---- */
.commentary {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65em;
  color: #FF3333;
  text-align: center;
  padding: 15px;
  border: 3px double #FF3333;
  background: #0a0000;
  margin: 20px 0;
  text-shadow: 2px 2px 0 #000;
}

/* ---- SPARKLE PARTICLES ---- */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  font-family: monospace;
  z-index: 9999;
  animation: sparkle-float 1.2s ease-out forwards;
  user-select: none;
}

@keyframes sparkle-float {
  0%   { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3) rotate(360deg); }
}

/* ---- SITE FOOTER ---- */
.site-footer {
  text-align: center;
  border-top: 4px dashed #F7931A;
  padding: 20px;
  margin-top: 30px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5em;
  color: #F7931A44;
}

.site-footer a {
  color: #F7931A44;
}

/* ---- SCROLLBAR STYLING ---- */
::-webkit-scrollbar {
  width: 12px;
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #F7931A;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFD700;
}

/* ---- SELECTION ---- */
::selection {
  background: #F7931A;
  color: #000;
}

/* ---- RESPONSIVE ---- */
/* ---- RESPONSIVE ---- */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .page-wrapper { padding: 0 8px 30px; }
  .stat-boxes-wrap { display: flex; flex-wrap: wrap; justify-content: center; }
  .stat-box { min-width: 130px; flex: 1 1 130px; }
  .sell-event-cards { flex-direction: column; align-items: stretch; }
  .sell-card { max-width: 100%; }
  .two-col { flex-direction: column; }
  .col-left, .col-right { flex: 1; width: 100%; }
  .meme-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Landscape phone / small tablet (≤680px) */
@media (max-width: 680px) {
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-table { display: block; }
  .nav-table tr { display: flex; flex-wrap: wrap; }
  .nav-table td { flex: 1 1 33%; border-bottom: 1px solid #F7931A44; }
  .nav-table a { padding: 8px 4px; border-right: none; }
}

/* Phone portrait (≤480px) */
@media (max-width: 480px) {
  .stat-box { min-width: 100px; flex: 1 1 100px; }
  .section-box { padding: 12px; }
  .meme-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .meme-frame { padding: 4px; }
  .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .price-table { min-width: 320px; }
  .links-section { padding: 12px 14px; }
  .social-buttons { flex-direction: column !important; }
  .social-buttons a { width: 100%; box-sizing: border-box; text-align: center; padding: 10px !important; }
  .ca-address { word-break: break-all; }
}

/* Very small / flip phones (≤390px) */
@media (max-width: 390px) {
  .stat-box { min-width: 80px; flex: 1 1 80px; padding: 8px; }
  .price-table { min-width: 300px; }
  .section-box { padding: 8px 6px; }
  .sell-card { padding: 10px; }
  .chart-area { padding: 8px; }
  .ngmi-stamp { font-size: 1em; padding: 4px 8px; border-width: 3px; }
}

/* Large monitors (≥1440px) */
@media (min-width: 1440px) {
  .page-wrapper { max-width: 1100px; }
  body { font-size: clamp(10px, 1.2vw, 15px); }
}
