/* 操作デモ: 実際の管理画面のような見た目で、サーバーが起動して友達が入ってくる様子を見せる */
.demo { padding: 90px 0 80px; position: relative; }
.demo-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.demo-note { text-align: center; color: rgba(255,255,255,.5); font-size: .8rem; margin-top: 22px; }

.mc-panel { background: #0b1626; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.mc-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #08111e; border-bottom: 1px solid rgba(255,255,255,.08); }
.mc-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a4660; }
.mc-dot:nth-child(1) { background: #ff5f57; } .mc-dot:nth-child(2) { background: #febc2e; } .mc-dot:nth-child(3) { background: #28c840; }
.mc-url { margin-left: 10px; font-size: .75rem; color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); padding: 3px 12px; border-radius: 99px; }
.mc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.mc-name { font-weight: 700; font-size: 1.1rem; }
.mc-ver { font-size: .72rem; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.15); padding: 2px 8px; border-radius: 99px; }
.mc-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.07); color: #aab4c8; }
.mc-status i { width: 8px; height: 8px; border-radius: 50%; background: #7b869c; }
.mc-status[data-state="starting"] { color: #ffcf5c; } .mc-status[data-state="starting"] i { background: #ffcf5c; animation: mcblink .6s infinite; }
.mc-status[data-state="online"] { color: #5ee08a; } .mc-status[data-state="online"] i { background: #5ee08a; box-shadow: 0 0 8px #5ee08a; }
@keyframes mcblink { 50% { opacity: .25; } }
.mc-actions { display: flex; gap: 8px; padding: 8px 18px 14px; }
.mc-btn { font: inherit; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 7px 16px; cursor: pointer; transition: transform .15s, background .2s; }
.mc-btn[hidden] { display: none; }
.mc-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.mc-btn:disabled { opacity: .4; cursor: default; }
.mc-btn.go { background: #1fa855; border-color: #1fa855; }
.mc-btn.go:hover:not(:disabled) { background: #26c264; }
.mc-btn.pulse { animation: mcpulse 1.6s infinite; }
@keyframes mcpulse { 0% { box-shadow: 0 0 0 0 rgba(38,194,100,.6); } 70% { box-shadow: 0 0 0 12px rgba(38,194,100,0); } 100% { box-shadow: 0 0 0 0 rgba(38,194,100,0); } }
.mc-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px 14px; }
.mc-meter { background: rgba(255,255,255,.05); border-radius: 10px; padding: 9px 11px; }
.mc-meter span { display: flex; justify-content: space-between; gap: 6px; font-size: .72rem; color: rgba(255,255,255,.6); }
.mc-meter b { color: #fff; font-weight: 600; white-space: nowrap; }
.mc-meter div { height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 7px; overflow: hidden; }
.mc-meter div i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff6b35, #ffb347); border-radius: 4px; transition: width .6s ease; }
.mc-console { margin: 0 18px 18px; height: 230px; overflow: hidden; background: #050b14; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; font: 12px/1.65 Consolas, "SF Mono", Menlo, monospace; color: #c9d4e6; }
.mc-console .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: mcin .18s ease-out; }
@keyframes mcin { from { opacity: 0; transform: translateY(4px); } }
.ln .t { color: #5d6b85; } .ln .ok { color: #5ee08a; } .ln .wn { color: #ffcf5c; } .ln .jn { color: #ffe27a; } .ln .ch { color: #fff; } .ln .nm { color: #7cc4ff; }
.mc-input { display: flex; gap: 8px; padding: 0 18px 18px; margin-top: -6px; }
.mc-input span { flex: 1; font: 12px Consolas, monospace; color: rgba(255,255,255,.35); background: #050b14; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 8px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 右側: マイクラのサーバー一覧のような表示 */
.demo-side { display: grid; gap: 22px; }
.mc-list { background-color: #1e1e1e; background-image: repeating-linear-gradient(45deg, #232323 0 8px, #1c1c1c 8px 16px); border: 3px solid #000; border-radius: 4px; padding: 10px; font-family: "Courier New", monospace; }
.mc-list-title { text-align: center; color: #fff; font-size: .8rem; margin-bottom: 8px; text-shadow: 2px 2px #333; }
.mc-entry { display: flex; gap: 10px; background: rgba(0,0,0,.55); border: 2px solid transparent; padding: 6px; transition: border-color .2s; }
.mc-entry.hl { border-color: #fff; }
.mc-icon { width: 56px; height: 56px; flex: none; background: #6fb5ff; position: relative; }
.mc-icon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(#5da130 0 22%, #866043 22% 100%); }
.mc-icon::before { content: ""; position: absolute; left: 18px; top: 8px; width: 18px; height: 18px; background: #ffe45e; z-index: 1; box-shadow: 0 0 0 3px rgba(255,228,94,.35); }
.mc-info { flex: 1; min-width: 0; font-size: .78rem; line-height: 1.5; }
.mc-info .l1 { display: flex; justify-content: space-between; color: #fff; gap: 8px; }
.mc-info .cnt { color: #aaa; } .mc-info .cnt.on { color: #5ee08a; }
.mc-info .motd { color: #aaa; } .mc-info .motd b { color: #ffaa00; font-weight: 400; }
.mc-ping { display: inline-block; width: 18px; height: 14px; background: #4f4; clip-path: polygon(0 75%, 20% 75%, 20% 100%, 0 100%, 0 75%, 40% 100%, 40% 50%, 60% 50%, 60% 100%, 80% 100%, 80% 25%, 100% 25%, 100% 100%, 0 100%); vertical-align: middle; opacity: .25; }
.mc-ping.on { opacity: 1; }
.mc-join { margin-top: 8px; width: 100%; font: inherit; font-size: .8rem; color: #fff; background: #6c6c6c; border: 2px solid #000; border-top-color: #aaa; border-left-color: #aaa; padding: 6px; cursor: default; text-shadow: 2px 2px #333; }
.mc-join.on { background: #4a8f2f; }

.mc-players { background: #0b1626; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 18px; }
.mc-players h3 { font-size: .9rem; display: flex; justify-content: space-between; margin-bottom: 12px; }
.mc-players h3 small { color: rgba(255,255,255,.5); font-weight: 400; }
.mc-plist { display: grid; gap: 8px; min-height: 120px; align-content: start; }
.mc-pl { display: flex; align-items: center; gap: 10px; font-size: .85rem; animation: mcin .3s ease-out; }
.mc-head8 { width: 28px; height: 28px; border-radius: 3px; position: relative; flex: none; box-shadow: inset 0 -9px 0 rgba(0,0,0,.18); }
.mc-head8::before { content: ""; position: absolute; left: 5px; top: 11px; width: 4px; height: 4px; background: #fff; box-shadow: 14px 0 #fff; }
.mc-head8::after { content: ""; position: absolute; left: 7px; top: 12px; width: 2px; height: 2px; background: #3a2a8a; box-shadow: 14px 0 #3a2a8a; }
.mc-pl em { margin-left: auto; font-style: normal; font-size: .72rem; color: rgba(255,255,255,.45); }
.mc-empty { color: rgba(255,255,255,.35); font-size: .82rem; }

/* 下部: ブロックの世界 */
.mc-world { margin-top: 36px; height: 120px; border-radius: 14px; overflow: hidden; position: relative; background: linear-gradient(#0d2a52, #1b4f86 70%, #3b7dba); border: 1px solid rgba(255,255,255,.1); }
.mc-world .sun { position: absolute; top: 18px; right: 12%; width: 28px; height: 28px; background: #ffe45e; box-shadow: 0 0 22px 6px rgba(255,228,94,.5); }
.mc-world .cloud { position: absolute; height: 12px; background: rgba(255,255,255,.85); box-shadow: 12px -8px 0 rgba(255,255,255,.85), 24px 0 0 rgba(255,255,255,.85); animation: mccloud 38s linear infinite; }
.mc-world .cloud.c1 { top: 22px; left: -10%; width: 28px; } .mc-world .cloud.c2 { top: 52px; left: -30%; width: 20px; animation-duration: 52s; animation-delay: -20s; opacity: .7; }
@keyframes mccloud { to { transform: translateX(130vw); } }
.mc-world .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(#5da130 0 14px, #866043 14px); }
.mc-world .ground::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 31px, rgba(0,0,0,.18) 31px 32px); }
.mc-world .tree { position: absolute; bottom: 44px; width: 16px; height: 34px; background: #6b4a2b; }
.mc-world .tree::before { content: ""; position: absolute; left: -16px; top: -26px; width: 48px; height: 32px; background: #2f7d2a; box-shadow: inset 0 -8px 0 rgba(0,0,0,.15); }
.mc-world .house { position: absolute; bottom: 44px; width: 64px; height: 38px; background: #b07d4f; box-shadow: inset 0 -8px 0 rgba(0,0,0,.15); }
.mc-world .house::before { content: ""; position: absolute; left: -6px; top: -16px; width: 76px; height: 18px; background: #8a2e2e; }
.mc-world .house::after { content: ""; position: absolute; left: 26px; bottom: 0; width: 12px; height: 22px; background: #4a2f19; }
.mc-world .pl { position: absolute; bottom: 44px; width: 12px; height: 28px; opacity: 0; transition: opacity .4s; background: linear-gradient(#e0b48a 0 11px, #2a8fd6 11px 20px, #3a3a8a 20px); animation: mcwalk 9s ease-in-out infinite alternate; }
.mc-world .pl.show { opacity: 1; }
@keyframes mcwalk { from { transform: translateX(0); } to { transform: translateX(var(--dx, 90px)); } }

@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } .mc-console { height: 200px; } .mc-meter span { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .mc-world .cloud, .mc-world .pl, .mc-btn.pulse { animation: none; } }

/* ヒーロー: 左にコピー、右に大きく、管理画面のようなUI */
.hero-layout { position: relative; z-index: 3; width: 100%; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero-layout .hero-content { max-width: none; text-align: left; }
.hero-layout .hero-description { margin-left: 0; margin-right: 0; }
.hero-layout .hero-buttons { justify-content: flex-start; }
.hero-layout .hero-stats-row { margin: 0; padding: 0.9rem 1rem; flex-wrap: wrap; row-gap: 0.6rem; }
.hero-layout .hero-stat { padding: 0 1rem; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -30px; background: radial-gradient(closest-side, rgba(255,107,53,.28), transparent); filter: blur(30px); z-index: -1; }
.mc-panel--hero { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.mc-panel--hero:hover { transform: none; }
.mc-panel--hero .mc-console { height: 260px; font-size: 12.5px; }
.hero-visual-note { text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 14px; }
.demo-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) {
    .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .hero-layout .hero-content { text-align: center; }
    .hero-layout .hero-description { margin-left: auto; margin-right: auto; }
    .hero-layout .hero-buttons { justify-content: center; }
    .hero-layout .hero-stats-row { margin: 0 auto; justify-content: center; }
    .mc-panel--hero { transform: none; }
}
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mc-panel--hero { transition: none; } }
.mc-panel, .mc-list { text-align: left; }
.hero-visual, .demo-side, .mc-panel { min-width: 0; }

.mc-addr { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 10px; padding: 4px 18px 6px; }
.mc-addr div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 8px 11px; min-width: 0; }
.mc-addr small { display: block; font-size: .68rem; color: rgba(255,255,255,.5); }
.mc-addr b { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-addr div:first-child b { font-family: Consolas, "SF Mono", Menlo, monospace; color: #7cc4ff; }

.mc-status[data-state="stopping"] { color: #ff9b6b; } .mc-status[data-state="stopping"] i { background: #ff9b6b; animation: mcblink .6s infinite; }

.hero-visual-lead { text-align: center; font-size: 1.15rem; font-weight: 700; color: #fff; margin-top: 18px; letter-spacing: .02em; }
.hero-visual-lead + .hero-visual-note { margin-top: 6px; }
