/* 🌌 Groyt Evren (5 Kasım 2026) — evren.html / js/evren.js. Kehribar renkleri. */
:root {
  --ev-bg: #05060a;
  --ev-panel: rgba(14, 15, 22, 0.78);
  --ev-line: rgba(255, 255, 255, 0.09);
  --ev-text: #eef0f6;
  --ev-muted: #9aa0b4;
  --ev-accent: #ffc94d;
  --ev-blue: #6aa2ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body.ev-body { background: var(--ev-bg); color: var(--ev-text); font-family: Onest, system-ui, sans-serif; }
#evCanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
#evCanvas:active { cursor: grabbing; }
#evCanvas.is-hover { cursor: pointer; }

.ev-labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.ev-label { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--ev-text); text-shadow: 0 1px 3px #000, 0 0 8px #000; will-change: transform; }
.ev-label.is-star { color: #fff1c0; font-size: 11px; }
.ev-label.is-off { display: none; }

.ev-top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; pointer-events: none; }
.ev-brand { pointer-events: auto; display: flex; align-items: center; gap: 8px; color: var(--ev-text); text-decoration: none; font-family: Sora, sans-serif; font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.ev-live { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--ev-panel); border: 1px solid var(--ev-line); font-size: 12px; font-weight: 600; }
.ev-live i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 8px #30d158; animation: evPulse 1.6s ease-in-out infinite; }
@keyframes evPulse { 50% { opacity: .35; } }

.ev-panel { position: fixed; left: 16px; bottom: 16px; width: min(340px, calc(100vw - 32px)); background: var(--ev-panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--ev-line); border-radius: 18px; padding: 16px; }
.ev-guild { display: flex; gap: 12px; align-items: center; }
.ev-guild img { border-radius: 14px; flex: none; }
.ev-guild h1 { font-family: Sora, sans-serif; font-size: 18px; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
.ev-guild p { margin: 2px 0 0; color: var(--ev-muted); font-size: 12px; }
.ev-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 10px; }
.ev-stats div { background: rgba(255, 255, 255, .04); border: 1px solid var(--ev-line); border-radius: 12px; padding: 8px 6px; text-align: center; }
.ev-stats b { display: block; font-family: Sora, sans-serif; font-size: 17px; color: var(--ev-accent); }
.ev-stats span { font-size: 10.5px; color: var(--ev-muted); }
.ev-now { font-size: 13px; margin: 6px 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 201, 77, .1); border: 1px solid rgba(255, 201, 77, .25); }
.ev-legend { font-size: 12.5px; color: var(--ev-muted); }
.ev-legend summary { cursor: pointer; color: var(--ev-text); font-weight: 600; margin-bottom: 6px; }
.ev-legend ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ev-legend li { display: flex; gap: 8px; align-items: flex-start; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 3px; }
.ev-dot.is-sun { background: #ffb02e; box-shadow: 0 0 8px #ffb02e; }
.ev-dot.is-text { background: var(--ev-accent); }
.ev-dot.is-voice { background: var(--ev-blue); }
.ev-dot.is-star { background: #fff1c0; box-shadow: 0 0 6px #fff1c0; }
.ev-hint { margin: 10px 0 0; font-size: 11px; color: var(--ev-muted); }

.ev-tip { position: fixed; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 2px; background: var(--ev-panel); backdrop-filter: blur(10px); border: 1px solid var(--ev-line); border-radius: 12px; padding: 8px 12px; font-size: 13px; max-width: 220px; }
.ev-tip span { color: var(--ev-muted); font-size: 12px; }

.ev-state { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; gap: 8px; background: radial-gradient(circle at 50% 45%, rgba(255, 201, 77, .08), transparent 60%); }
.ev-state[hidden] { display: none; }
.ev-state h2 { font-family: Sora, sans-serif; margin: 0; }
.ev-state p { color: var(--ev-muted); margin: 0 0 8px; max-width: 420px; }
.ev-btn { display: inline-flex; padding: 10px 18px; border-radius: 999px; background: var(--ev-accent); color: #1a1406; font-weight: 700; text-decoration: none; }
.ev-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--ev-accent); animation: evSpin 0.9s linear infinite; }
@keyframes evSpin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .ev-panel { left: 16px; right: 16px; width: auto; bottom: 12px; padding: 12px; }
  .ev-legend { display: none; }
  .ev-stats b { font-size: 15px; }
  .ev-hint { display: none; }
}

/* 🎶 Müzik + ⏪ Zaman makinesi (5 Kasım 2026) */
.ev-dot.is-music { background: #c77dff; box-shadow: 0 0 8px #c77dff; }
.ev-label.is-music { color: #e6c8ff; }
.ev-tm { position: fixed; top: 60px; right: 16px; width: min(360px, calc(100vw - 32px)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 4; }
.ev-tm[hidden], .ev-tm-body[hidden] { display: none; }
.ev-tm-toggle { font: inherit; font-weight: 700; font-size: 13px; color: var(--ev-text); background: var(--ev-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--ev-line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.ev-tm-toggle[aria-expanded="true"] { border-color: rgba(255, 201, 77, .55); color: var(--ev-accent); }
.ev-tm-body { width: 100%; background: var(--ev-panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--ev-line); border-radius: 18px; padding: 14px; }
.ev-tm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ev-tm-head b { font-family: Sora, sans-serif; font-size: 18px; color: var(--ev-accent); }
.ev-tm-head span { font-size: 12.5px; color: var(--ev-muted); text-align: right; }
.ev-tm-bars { display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; gap: 2px; height: 42px; margin: 10px 0 8px; }
.ev-tm-bars i { display: block; background: rgba(255, 201, 77, .28); border-radius: 2px 2px 0 0; min-height: 2px; transition: background .2s; }
.ev-tm-bars i.is-past { background: var(--ev-accent); }
.ev-tm-row { display: flex; align-items: center; gap: 10px; }
.ev-tm-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ev-accent); color: #1a1406; font-size: 14px; font-weight: 800; cursor: pointer; }
.ev-tm-row input { flex: 1; accent-color: #ffc94d; min-width: 0; }
.ev-tm-note { margin: 8px 0 0; font-size: 11px; color: var(--ev-muted); }
@media (max-width: 700px) {
  .ev-tm { top: 54px; right: 16px; left: 16px; width: auto; }
}

/* 🌠 Canlı olaylar, ☄️ çekiliş, 🎬 sinema, 🔎 kendini bul (5 Kasım 2026) */
.ev-actions { pointer-events: auto; display: flex; gap: 8px; margin-left: auto; margin-right: 10px; }
.ev-act { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ev-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--ev-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--ev-line); cursor: pointer; transition: border-color .2s, transform .2s; }
.ev-act:hover { border-color: rgba(255, 201, 77, .55); transform: translateY(-1px); }
.ev-tm { top: 64px; }
.ev-label.is-rocket { color: #ffd9a8; font-size: 13px; transition: opacity .5s; }
.ev-label.is-me { color: #7dffa0; font-size: 13px; }
.ev-label.is-out { opacity: 0 !important; transition: opacity .5s; }

.ev-toasts { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 6; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.ev-toast { padding: 10px 16px; border-radius: 14px; font-size: 14px; background: var(--ev-panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--ev-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: evToastIn .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s; text-align: center; }
.ev-toast.is-nova { border-color: rgba(255, 140, 60, .7); box-shadow: 0 0 30px rgba(255, 120, 40, .45); }
.ev-toast.is-join { border-color: rgba(255, 201, 77, .6); }
.ev-toast.is-ban { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 26px rgba(124, 58, 237, .35); }
.ev-toast.is-out { opacity: 0; transform: translateY(-10px); }
@keyframes evToastIn { from { opacity: 0; transform: translateY(-16px) scale(.92); } }

.ev-gw { position: fixed; right: 16px; bottom: 16px; z-index: 4; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; max-width: min(380px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 16px; color: var(--ev-text); text-decoration: none; background: linear-gradient(135deg, rgba(255, 201, 77, .18), rgba(14, 15, 22, .85)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 201, 77, .5); box-shadow: 0 0 24px rgba(255, 190, 60, .25); font-size: 13px; }
.ev-gw[hidden] { display: none; }
.ev-gw b { grid-column: 2; color: var(--ev-accent); }
.ev-gw span { grid-column: 2; grid-row: 2; color: var(--ev-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-gw i { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 800; color: #1a1406; background: var(--ev-accent); padding: 6px 10px; border-radius: 999px; }

.ev-cine { position: fixed; inset: 0; pointer-events: none; z-index: 7; }
.ev-cine-bar { position: absolute; left: 0; right: 0; height: 12vh; background: #000; transform: scaleY(0); transition: transform .9s cubic-bezier(.7, 0, .2, 1); }
.ev-cine-bar.is-top { top: 0; transform-origin: top; }
.ev-cine-bar.is-bottom { bottom: 0; transform-origin: bottom; }
.is-cinema .ev-cine-bar { transform: scaleY(1); }
.ev-cine-cap { position: absolute; left: 50%; bottom: calc(12vh + 28px); transform: translate(-50%, 16px); text-align: center; opacity: 0; transition: opacity .8s, transform .8s, letter-spacing 1.2s; display: flex; flex-direction: column; gap: 4px; width: min(720px, calc(100vw - 32px)); letter-spacing: .02em; }
.ev-cine-cap.is-in { opacity: 1; transform: translate(-50%, 0); letter-spacing: .04em; }
.ev-cine-cap small { font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ev-accent); }
.ev-cine-cap b { font-family: Sora, sans-serif; font-size: clamp(24px, 4.4vw, 46px); line-height: 1.1; text-shadow: 0 4px 30px rgba(0, 0, 0, .9); overflow-wrap: anywhere; }
.ev-cine-cap span { color: #d7dbe8; font-size: 15px; text-shadow: 0 2px 12px #000; }
.ev-cine-x { position: absolute; top: calc(12vh - 46px); right: 16px; pointer-events: auto; font: inherit; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px; cursor: pointer; opacity: 0; transition: opacity .6s .6s; }
.is-cinema .ev-cine-x { opacity: 1; }
body:not(.is-cinema) .ev-cine-x { pointer-events: none; }
.ev-panel, .ev-top, .ev-tm, .ev-gw, .ev-labels { transition: opacity .7s; }
.is-cinema .ev-panel, .is-cinema .ev-top, .is-cinema .ev-tm, .is-cinema .ev-gw { opacity: 0; pointer-events: none; }
.is-cinema .ev-labels { opacity: .55; }

@media (max-width: 700px) {
  .ev-act span { display: none; }
  .ev-act { padding: 7px 10px; font-size: 15px; }
  .ev-actions { margin-right: 6px; gap: 6px; }
  .ev-gw { right: 16px; left: 16px; bottom: auto; top: 110px; max-width: none; }
  .ev-tm { top: 54px; }
  .ev-cine-cap span { font-size: 13px; }
}
