/* Okishima Games - Common Styles (Neon Arcade Theme) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #07070f;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,211,238,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 110%, rgba(232,121,249,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(74,222,128,0.05) 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #eef2ff;
}

.games-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* === Header === */
.games-header {
  text-align: center;
  padding: 32px 0 24px;
}

.games-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(100deg, #22d3ee 10%, #818cf8 50%, #e879f9 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(34,211,238,0.45));
}

/* === Player Card === */
.player-card {
  background: rgba(13,16,33,0.75);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 0 24px rgba(34,211,238,0.08), inset 0 0 32px rgba(34,211,238,0.04);
}

.player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.player-level-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.player-level-label {
  font-size: 0.85rem;
  color: rgba(34,211,238,0.8);
  font-weight: 600;
  letter-spacing: 3px;
}

.player-level-num {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 12px rgba(34,211,238,0.6);
}

.player-xp-text {
  font-size: 0.85rem;
  color: rgba(238,242,255,0.5);
}

.player-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.player-bar {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #818cf8, #e879f9);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(34,211,238,0.7);
  transition: width 0.5s ease;
}

.player-next-level {
  font-size: 0.8rem;
  color: rgba(238,242,255,0.4);
  text-align: right;
}

/* === Player Summary Chips === */
.player-summary {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.summary-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

.chip-icon {
  font-size: 1.2rem;
}

.chip-value {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.coin-chip .chip-value { color: #fde047; text-shadow: 0 0 8px rgba(253,224,71,0.5); }
.material-chip .chip-value { color: #4ade80; text-shadow: 0 0 8px rgba(74,222,128,0.5); }
.equip-chip .chip-value { color: #22d3ee; text-shadow: 0 0 8px rgba(34,211,238,0.5); }

.chip-label {
  font-size: 0.7rem;
  color: rgba(238,242,255,0.4);
}

/* === Quick Links === */
.quick-links {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.quick-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  background: rgba(13,16,33,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  text-decoration: none;
  color: #eef2ff;
  transition: all 0.2s;
  position: relative;
}

.quick-link:hover {
  border-color: rgba(34,211,238,0.6);
  box-shadow: 0 0 16px rgba(34,211,238,0.25);
  transform: translateY(-2px);
}

.quick-link-icon {
  font-size: 1.5rem;
}

.quick-link-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.quick-link-arrow {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1rem;
  color: rgba(238,242,255,0.3);
}

/* === Game Grid === */
.games-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 4px;
  color: rgba(238,242,255,0.6);
}

.game-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(13,16,33,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  text-decoration: none;
  color: #eef2ff;
  transition: all 0.2s;
}

/* Per-game neon accents */
.game-card .game-card-icon { color: #22d3ee; filter: drop-shadow(0 0 6px rgba(34,211,238,0.5)); }
.game-card:hover { border-color: rgba(34,211,238,0.6); box-shadow: 0 0 18px rgba(34,211,238,0.22); transform: translateY(-2px); }

.accent-magenta .game-card-icon,
.game-card.accent-magenta .game-card-icon { color: #e879f9; filter: drop-shadow(0 0 6px rgba(232,121,249,0.5)); }
.game-card.accent-magenta:hover { border-color: rgba(232,121,249,0.6); box-shadow: 0 0 18px rgba(232,121,249,0.22); }

.accent-green .game-card-icon,
.game-card.accent-green .game-card-icon { color: #4ade80; filter: drop-shadow(0 0 6px rgba(74,222,128,0.5)); }
.game-card.accent-green:hover { border-color: rgba(74,222,128,0.6); box-shadow: 0 0 18px rgba(74,222,128,0.22); }

.game-card-icon {
  font-size: 2rem;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.game-card-info {
  flex: 1;
  min-width: 0;
}

.game-card-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.game-card-desc {
  font-size: 0.8rem;
  color: rgba(238,242,255,0.5);
  margin-top: 2px;
}

.game-card-stats {
  font-size: 0.75rem;
  color: rgba(238,242,255,0.4);
  margin-top: 4px;
}

.game-card-arrow {
  font-size: 1.2rem;
  color: rgba(238,242,255,0.3);
  flex-shrink: 0;
}

/* === Minecraft-style Icons === */
.mc-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border-radius: 4px;
}

/* === Inventory === */
.inventory-section,
.world-section {
  margin-bottom: 32px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.inv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: rgba(13,16,33,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  cursor: default;
  transition: all 0.2s;
}

.inv-item:hover {
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 0 12px rgba(34,211,238,0.18);
}

.inv-icon {
  margin-bottom: 4px;
}

.inv-qty {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fde047;
  text-shadow: 0 0 8px rgba(253,224,71,0.4);
}

.inv-name {
  font-size: 0.65rem;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* === Rarity Tabs === */
.rarity-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rarity-tab {
  padding: 6px 14px;
  background: rgba(13,16,33,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  color: rgba(238,242,255,0.5);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.rarity-tab:hover {
  border-color: rgba(34,211,238,0.4);
  color: rgba(238,242,255,0.8);
}

.rarity-tab--active {
  background: rgba(34,211,238,0.12);
  color: #22d3ee;
  border-color: rgba(34,211,238,0.6);
  text-shadow: 0 0 8px rgba(34,211,238,0.4);
}

/* === World Resources === */
.world-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.world-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(13,16,33,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
}

.world-icon {
  flex-shrink: 0;
}

.world-info {
  flex: 1;
  min-width: 0;
}

.world-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.world-supply {
  font-size: 0.75rem;
  color: rgba(238,242,255,0.4);
  margin-top: 2px;
}

.world-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.world-bar {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #fde047, #fb7185);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
  transition: width 0.5s ease;
}

/* === Ranking === */
.ranking-section {
  margin-bottom: 32px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(13,16,33,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

.ranking-rank {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-rank-1 { color: #fde047; text-shadow: 0 0 10px rgba(253,224,71,0.6); }
.ranking-rank-2 { color: #cbd5e1; text-shadow: 0 0 10px rgba(203,213,225,0.5); }
.ranking-rank-3 { color: #fb923c; text-shadow: 0 0 10px rgba(251,146,60,0.5); }

.ranking-name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-level {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(238,242,255,0.7);
  flex-shrink: 0;
}

.ranking-xp {
  font-size: 0.75rem;
  color: rgba(238,242,255,0.4);
  flex-shrink: 0;
  width: 60px;
  text-align: right;
}

.ranking-empty {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(238,242,255,0.3);
  padding: 16px;
}

/* === Back Link === */
.back-link {
  color: rgba(238,242,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.back-link:hover {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34,211,238,0.5);
}

/* === Coming Soon === */
.coming-soon {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(34,211,238,0.4));
}

.coming-soon-text {
  font-size: 1.1rem;
  color: rgba(238,242,255,0.4);
}

/* === Footer === */
.games-footer {
  text-align: center;
  padding: 16px 0;
}

.games-footer a {
  color: rgba(238,242,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s, text-shadow 0.2s;
}

.games-footer a:hover {
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34,211,238,0.5);
}

/* === Login prompt === */
.login-prompt {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(238,242,255,0.3);
  margin-top: -16px;
  margin-bottom: 16px;
}

.login-prompt a {
  color: rgba(238,242,255,0.5);
  text-decoration: underline;
}
