Files
s41r4j-throwit/app/globals.css
T

312 lines
17 KiB
CSS

:root {
--bg: #f3f1ec;
--ink: #121210;
--muted: #77736b;
--line: rgba(18, 18, 16, 0.12);
--red: #ff6268;
--green: #25895e;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body {
font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
letter-spacing: -0.02em;
background:
radial-gradient(circle at 50% 47%, #fff 0, rgba(255,255,255,.45) 31rem, transparent 61rem),
var(--bg);
}
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app { min-height: 100vh; }
.nav {
height: 70px;
padding: 0 clamp(22px, 3vw, 48px);
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
border-bottom: 1px solid var(--line);
background: rgba(243, 241, 236, 0.84);
backdrop-filter: blur(18px);
position: relative;
z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 900; letter-spacing: -0.065em; }
.brand img { object-fit: contain; filter: drop-shadow(0 9px 12px rgba(0,0,0,.13)); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; min-width: 0; }
.identity-chip {
padding: 8px 10px;
border: 1px solid rgba(18,18,16,.08);
border-radius: 999px;
background: rgba(255,255,255,.62);
color: var(--ink);
font-size: 10px;
font-weight: 900;
white-space: nowrap;
}
.secure { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.secure i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(37,137,94,.11); }
.secure span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair {
padding: 9px 12px;
border: 1px solid var(--line);
border-radius: 999px;
background: rgba(255,255,255,.72);
color: var(--ink);
font-size: 10px;
font-weight: 900;
white-space: nowrap;
}
.pair:hover, .pair.active { border-color: rgba(255,98,104,.4); background: #fff0f1; color: #d9424b; }
.canvas {
position: relative;
min-height: calc(100vh - 134px);
overflow: hidden;
padding: 32px 34px 130px;
background:
linear-gradient(rgba(18,18,16,.027) 1px, transparent 1px),
linear-gradient(90deg, rgba(18,18,16,.027) 1px, transparent 1px);
background-size: 48px 48px;
}
.intro { position: absolute; top: 35px; left: clamp(22px, 3vw, 48px); z-index: 5; max-width: 460px; }
.intro small { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.intro small::before { content: ""; width: 22px; height: 1px; background: var(--ink); }
h1 { margin: 15px 0 16px; font-size: clamp(48px, 5.1vw, 82px); line-height: .87; letter-spacing: -.085em; }
h1 em { font-style: normal; color: var(--red); }
.intro p { max-width: 370px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.radar { position: relative; width: min(68vw, 720px); aspect-ratio: 1; margin: 72px auto 0; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(18,18,16,.11); border-radius: 50%; animation: orbit-breathe 5.8s ease-in-out infinite; }
.o1 { width: 31%; height: 31%; }
.o2 { width: 64%; height: 64%; animation-delay: -2.1s; }
.o3 { width: 96%; height: 96%; animation-delay: -4.2s; }
@keyframes orbit-breathe { 50% { transform: scale(1.018); opacity: .55; } }
.paper-core {
position: relative;
z-index: 4;
width: 190px;
height: 190px;
border-radius: 50%;
display: grid;
place-items: center;
background: rgba(255,255,255,.5);
border: 1px solid rgba(255,255,255,.92);
box-shadow: 0 25px 80px rgba(36,31,24,.14), inset 0 0 0 1px rgba(18,18,16,.04);
backdrop-filter: blur(15px);
}
.paper-core::before {
content: "";
position: absolute;
inset: 13px;
border: 1px dashed rgba(18,18,16,.17);
border-radius: 50%;
animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.paper-core img { object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0,0,0,.17)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }
.paper-core.launch { animation: release 1.35s cubic-bezier(.18,.76,.16,1); }
@keyframes release {
0%, 100% { transform: scale(1); }
12% { transform: scale(.91) rotate(-3deg); }
28% { transform: scale(1.04) rotate(2deg); }
}
.flight-copy {
--x: 0px;
--y: 0px;
--hx: 0px;
--hy: -120px;
position: absolute;
left: 50%;
top: 50%;
z-index: 12;
width: 92px;
height: 92px;
pointer-events: none;
opacity: 0;
transform: translate(-50%, -50%) scale(.4) rotate(-10deg);
transform-origin: center;
}
.flight-copy img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0,0,0,.2)); }
.flight-copy.go { animation: throw-flight 1.38s cubic-bezier(.16,.72,.14,1) forwards; }
.flight-sparks {
position: absolute;
left: 50%;
top: 56%;
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--red);
box-shadow: -13px 5px 0 rgba(255,98,104,.7), -24px -3px 0 rgba(255,152,112,.55), -35px 9px 0 rgba(255,98,104,.35);
opacity: 0;
}
.flight-copy.go .flight-sparks { animation: spark-trail 1.1s ease-out .12s; }
@keyframes spark-trail {
0% { opacity: 0; transform: translate(-50%,-50%) scale(.6); }
18% { opacity: 1; }
100% { opacity: 0; transform: translate(-90px, 28px) scale(0); }
}
@keyframes throw-flight {
0% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(-12deg); }
12% { opacity: 1; transform: translate(-50%, -64%) scale(.78) rotate(42deg); }
55% { opacity: 1; transform: translate(calc(-50% + var(--hx)), calc(-50% + var(--hy))) scale(1.05) rotate(330deg); }
86% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.46) rotate(610deg); }
100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(.12) rotate(690deg); }
}
.target-1 { --hx: -185px; --hy: -175px; --x: -328px; --y: -198px; }
.target-2 { --hx: 185px; --hy: -180px; --x: 330px; --y: -205px; }
.target-3 { --hx: 190px; --hy: -35px; --x: 330px; --y: 190px; }
.target-4 { --hx: -190px; --hy: -35px; --x: -330px; --y: 188px; }
.target-5 { --hx: 82px; --hy: -205px; --x: 0px; --y: -338px; }
.target-6 { --hx: 88px; --hy: 65px; --x: 0px; --y: 338px; }
.core-copy { position: absolute; z-index: 4; top: calc(50% + 115px); text-align: center; }
.core-copy strong, .core-copy span { display: block; }
.core-copy strong { font-size: 13px; }
.core-copy span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.peers { position: absolute; inset: 0; }
.peer { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; min-width: 166px; padding: 8px; border: 0; background: transparent; text-align: left; }
.device-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.78); box-shadow: 0 9px 25px rgba(0,0,0,.07); font-size: 23px; transition: .2s; }
.peer:hover .device-icon, .peer.active .device-icon { background: var(--ink); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.radar.throwing .peer.active .device-icon { animation: catch-pulse 1.38s cubic-bezier(.16,.72,.14,1); }
@keyframes catch-pulse {
0%, 62% { transform: translateY(-2px) scale(1); }
78% { transform: translateY(-2px) scale(1.17) rotate(-4deg); box-shadow: 0 0 0 12px rgba(255,98,104,.12), 0 16px 36px rgba(0,0,0,.22); }
100% { transform: translateY(-2px) scale(1); }
}
.peer-copy strong, .peer-copy small { display: block; max-width: 138px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peer-copy strong { font-size: 11px; }
.peer-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.peer.active .peer-copy small { color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.p1 { left: -3%; top: 20%; }
.p2 { right: -5%; top: 19%; }
.p3 { right: 0; bottom: 14%; }
.p4 { left: -1%; bottom: 13%; }
.p5 { left: 39%; top: -1%; }
.p6 { left: 39%; bottom: -2%; }
.beam { position: absolute; z-index: 2; left: 50%; top: 50%; width: 35%; height: 1px; background: linear-gradient(90deg, var(--red), rgba(255,98,104,.08)); transform-origin: left center; opacity: .5; }
.selected-1 .beam { transform: rotate(205deg); }
.selected-2 .beam { transform: rotate(-27deg); }
.selected-3 .beam { transform: rotate(28deg); }
.selected-4 .beam { transform: rotate(154deg); }
.selected-5 .beam { transform: rotate(-90deg); }
.selected-6 .beam { transform: rotate(90deg); }
.searching { position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.searching i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(255,98,104,0); } }
.dock { position: absolute; z-index: 12; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(890px, calc(100% - 30px)); min-height: 76px; padding: 10px; display: grid; grid-template-columns: auto 1fr 210px; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: rgba(250,249,245,.9); box-shadow: 0 28px 85px rgba(32,28,22,.16); backdrop-filter: blur(24px); }
.tabs { display: flex; gap: 3px; padding: 4px; border-radius: 15px; background: rgba(18,18,16,.06); }
.tabs button { padding: 11px 15px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 900; }
.tabs button.active { background: white; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.payload { height: 54px; padding: 0 16px; display: flex; align-items: center; gap: 12px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: transparent; text-align: left; min-width: 0; }
.payload:disabled { opacity: .42; }
.payload > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--red); color: #fff; font-weight: 900; }
.payload div { min-width: 0; }
.payload strong, .payload small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.payload strong { font-size: 12px; }
.payload small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.throw { height: 54px; border: 0; border-radius: 17px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 4px 17px 4px 4px; }
.throw:disabled { opacity: .38; }
.throw span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #ff9870, var(--red)); font-size: 20px; }
.throw strong { font-size: 11px; }
.text-open { grid-template-columns: auto 1fr; }
.text-dock { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thread { height: 130px; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 7px; border-left: 1px solid var(--line); }
.thread > p { margin: auto; color: var(--muted); font-size: 10px; text-align: center; }
.thread article { align-self: flex-start; max-width: 85%; padding: 9px 11px; border-radius: 13px 13px 13px 4px; background: #fff; border: 1px solid rgba(18,18,16,.08); font-size: 11px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread article.mine { align-self: flex-end; border-radius: 13px 13px 4px 13px; background: var(--ink); color: white; }
.thread article button { display: block; margin-top: 5px; padding: 0; border: 0; background: transparent; color: inherit; opacity: .5; font-size: 8px; }
.thread .received { width: 100%; max-width: 100%; display: flex; align-items: center; gap: 8px; }
.received > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #ffe4e5; color: var(--red); }
.received div { min-width: 0; flex: 1; }
.received strong, .received small { display: block; }
.received small { color: var(--muted); font-size: 8px; }
.received a { color: inherit; font-size: 9px; font-weight: 900; }
.text-dock form { display: grid; grid-template-columns: 1fr 44px; gap: 7px; border: 1px solid var(--line); border-radius: 16px; padding: 6px; background: white; }
.text-dock textarea { min-height: 70px; padding: 8px; border: 0; resize: none; outline: 0; background: transparent; font-size: 11px; }
.text-dock form button { align-self: end; width: 42px; height: 42px; border: 0; border-radius: 13px; background: var(--ink); color: white; }
.text-dock form button:disabled { opacity: .3; }
footer { height: 64px; padding: 0 clamp(22px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.progress { position: fixed; left: 50%; bottom: 24px; z-index: 30; width: min(390px, calc(100% - 30px)); padding: 16px; border: 1px solid white; border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 20px 60px rgba(0,0,0,.16); backdrop-filter: blur(16px); transform: translateX(-50%); }
.progress div { display: flex; justify-content: space-between; font-size: 11px; }
.progress i { display: block; height: 5px; margin-top: 12px; border-radius: 5px; background: #e8e5df; overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--red); transition: width .2s; }
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(18,18,16,.28); backdrop-filter: blur(10px); }
.modal section { width: min(390px, 100%); padding: 25px; text-align: center; border-radius: 28px; background: #fbfaf6; box-shadow: 0 35px 100px rgba(0,0,0,.25); }
.modal img { object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0,0,0,.15)); }
.modal small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .14em; font-weight: 900; }
.modal h2 { margin: 9px 0 4px; font-size: 24px; overflow-wrap: anywhere; }
.modal p { color: var(--muted); font-size: 11px; }
.modal section > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 19px; }
.modal button, .modal a { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; }
.modal .accept { border-color: var(--ink); background: var(--ink); color: white; }
.caught-modal section { border: 1px solid rgba(37,137,94,.16); }
.toast { position: fixed; right: 22px; top: 86px; z-index: 50; padding: 13px 16px; border-radius: 13px; background: var(--ink); color: white; font-size: 11px; box-shadow: 0 15px 45px rgba(0,0,0,.2); }
@media (max-width: 1040px) {
.identity-chip { display: none; }
}
@media (max-width: 900px) {
.canvas { padding-top: 210px; }
.intro { top: 28px; }
.radar { width: min(92vw, 680px); margin-top: 0; }
.dock { grid-template-columns: auto 1fr; }
.throw { grid-column: 1 / -1; }
.text-open { grid-template-columns: 1fr; }
.text-dock { grid-template-columns: 1fr; }
.thread { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
.nav { height: 66px; padding: 0 14px; }
.brand span { display: none; }
.nav-actions { gap: 8px; }
.secure { max-width: 145px; }
.pair { padding: 8px 10px; }
.canvas { min-height: 760px; padding: 200px 10px 220px; }
.intro { left: 15px; right: 15px; }
.intro h1 { font-size: 47px; }
.intro p { font-size: 12px; max-width: 310px; }
.radar { width: 540px; }
.paper-core { width: 160px; height: 160px; }
.paper-core img { width: 135px; height: 135px; }
.core-copy { top: calc(50% + 98px); }
.peer { min-width: 105px; }
.device-icon { width: 43px; height: 43px; border-radius: 15px; }
.peer-copy { display: none; }
.p1 { left: 12%; top: 20%; }
.p2 { right: 11%; top: 20%; }
.p3 { right: 12%; bottom: 16%; }
.p4 { left: 12%; bottom: 16%; }
.p5 { left: 43%; top: 2%; }
.p6 { left: 43%; bottom: 2%; }
.target-1 { --hx: -135px; --hy: -145px; --x: -235px; --y: -170px; }
.target-2 { --hx: 135px; --hy: -145px; --x: 235px; --y: -170px; }
.target-3 { --hx: 140px; --hy: -20px; --x: 235px; --y: 165px; }
.target-4 { --hx: -140px; --hy: -20px; --x: -235px; --y: 165px; }
.target-5 { --hx: 65px; --hy: -165px; --x: 0px; --y: -250px; }
.target-6 { --hx: 65px; --hy: 55px; --x: 0px; --y: 250px; }
.dock { bottom: 10px; width: calc(100% - 20px); grid-template-columns: 1fr; padding: 8px; border-radius: 22px; }
.tabs { width: max-content; }
.payload { border: 0; }
.throw { grid-column: auto; }
.text-open { grid-template-columns: 1fr; }
.text-dock { grid-template-columns: 1fr; }
.thread { height: 112px; }
footer { height: 62px; flex-direction: column; justify-content: center; gap: 5px; }
.toast { left: 14px; right: 14px; top: 78px; text-align: center; }
}